/[smeserver]/rpms/e-smith-email/sme7/e-smith-email-4.16.0-purge-junkmail.patch
ViewVC logotype

Contents of /rpms/e-smith-email/sme7/e-smith-email-4.16.0-purge-junkmail.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Fri Dec 28 03:24:07 2007 UTC (16 years, 10 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
Error occurred while calculating annotation data.
FILE REMOVED
Import on branch sme7 of package e-smith-email-4.17.0-3.el4.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' e-smith-email-4.16.0/root/etc/e-smith/events/actions/purge-junkmail-folders mezzanine_patched_e-smith-email-4.16.0/root/etc/e-smith/events/actions/purge-junkmail-folders
2 --- e-smith-email-4.16.0/root/etc/e-smith/events/actions/purge-junkmail-folders 2007-06-25 17:12:39.000000000 -0400
3 +++ mezzanine_patched_e-smith-email-4.16.0/root/etc/e-smith/events/actions/purge-junkmail-folders 2007-06-25 17:12:06.000000000 -0400
4 @@ -1,6 +1,6 @@
5 #!/usr/bin/perl -w
6 #----------------------------------------------------------------------
7 -# copyright (C) 1999-2006 Mitel Networks Corporation
8 +# copyright (C) 1999-2007 Mitel Networks Corporation
9 #----------------------------------------------------------------------
10
11 use strict;
12 @@ -38,9 +38,17 @@
13 warn("Couldn't chdir to junkmail folder of user $user: $!\n");
14 next;
15 }
16 - purgedir("new", $age);
17 - purgedir("tmp", $age);
18 - purgedir("cur", $age);
19 + foreach my $dir (qw(new tmp cur))
20 + {
21 + if (-d $dir)
22 + {
23 + purgedir($dir, $age);
24 + }
25 + else
26 + {
27 + warn("Somebody has been fiddling - ~$user/Maildir/.junkmail/$dir is missing\n");
28 + }
29 + }
30 }
31 exit 0;
32

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed