Tweak to Config.pm for Debian distro's and CustomFunctions.
Resending
James A. Pattie
james at SUDORA.COM
Mon Feb 21 19:08:23 GMT 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi guys,
Resending since it doesn't seem Julian saw this and the change is still needed
for Debian based distros.
I just recently updated a CustomFunction application I've debianized
and was wondering why the old code was still being run. Turns out that
even though I said to replace the
/etc/MailScanner/CustomFunctions/customfunction.pm file (not really the
real name) with the new one, dpkg left a customfunction.pm.dpkg-old file
around which MailScanner was happily sourcing in and running, instead of
the newer code.
I updated the exclusion check in Config.pm to ignore the
.dpkg-{old,new,dist} extensions so this doesn't happen in the future.
Please review and apply the attached patch.
- --
James A. Pattie
james at sudora.com
Linux -- SysAdmin / Programmer
Sudora, LLC
http://www.sudora.com/
GPG Key Available at https://services.sudora.com/gpgkeys/james.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCGjGmSl+1j6z8MycRAqC4AJ9h7MsWCuxvipC+D0WtzNW74OarnACfShCi
UFF8Xq84WAmukrSLY+8Xs1s=
=FTJO
-----END PGP SIGNATURE-----
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
[ Part 2: "Attached Text" ]
--- Config.pm 2004-10-21 14:03:00.000000000 -0500
+++ Config.pm.new 2004-12-06 15:12:02.000000000 -0600
@@ -544,7 +544,7 @@
while(defined($filename = $dirh->read)) {
# Skip all dot files and rpmnew files
- next if $filename =~ /^\./ || $filename =~ /\.rpmnew$/i;
+ next if $filename =~ /^\./ || $filename =~ /\.(rpmnew|dpkg-dist|dpkg-new|dpkg-old)$/i;
$fullfile = "$dir/$filename";
next unless -f $fullfile and -s $fullfile;
eval { require $fullfile; };
More information about the MailScanner
mailing list