1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-zarafa-0.9/root/etc/e-smith/templates-user/.qmail-junkmail/00deliver_to_Zarafa mezzanine_patched_smeserver-zarafa-0.9/root/etc/e-smith/templates-user/.qmail-junkmail/00deliver_to_Zarafa |
2 |
--- smeserver-zarafa-0.9/root/etc/e-smith/templates-user/.qmail-junkmail/00deliver_to_Zarafa 1969-12-31 18:00:00.000000000 -0600 |
3 |
+++ mezzanine_patched_smeserver-zarafa-0.9/root/etc/e-smith/templates-user/.qmail-junkmail/00deliver_to_Zarafa 2008-10-22 11:22:21.000000000 -0500 |
4 |
@@ -0,0 +1,13 @@ |
5 |
+{ |
6 |
+ # vim: ft=perl: |
7 |
+ die "USERNAME not set." unless defined ($USERNAME); |
8 |
+ |
9 |
+ use esmith::AccountsDB; |
10 |
+ $adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB"; |
11 |
+ |
12 |
+ $user = $adb->get($USERNAME) or die "No user $USERNAME in AccountsDB"; |
13 |
+ |
14 |
+ my $zarafa = $user->prop('zarafa') || 'disabled'; |
15 |
+ return "| /usr/bin/zarafa-dagent -qj $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;" |
16 |
+ if ($zarafa eq 'enabled'); |
17 |
+} |