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 --- smeserver-zarafa-0.9/root/etc/e-smith/templates-user/.qmail-junkmail/00deliver_to_Zarafa 1969-12-31 18:00:00.000000000 -0600 +++ 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 @@ -0,0 +1,13 @@ +{ + # vim: ft=perl: + die "USERNAME not set." unless defined ($USERNAME); + + use esmith::AccountsDB; + $adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB"; + + $user = $adb->get($USERNAME) or die "No user $USERNAME in AccountsDB"; + + my $zarafa = $user->prop('zarafa') || 'disabled'; + return "| /usr/bin/zarafa-dagent -qj $USERNAME ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;" + if ($zarafa eq 'enabled'); +}