procmail
[Top] [All Lists]

Re: MAILDIR as test -d

2004-03-21 04:44:14
On Mon, 15 Mar 2004, 20:26 GMT+01 Ruud H.G. van Tol wrote:

If you set MAILDIR to a non-existing directory name,
the value of MAILDIR becomes dot.

  MAILDIR
  LOG = "$MAILDIR"   # dot

as a late follow-up, this is not only useful for a pure-procmail
replacement for 'test -d' - it can also be used to ensure the procmail
version the current recipe runs under is at least 3.20. Since my
Softlabs AntiVirus filter requires at least procmail v3.20, I am now
(as of SoftlabsAV 0.6) using that for checking it, as some can see
here:

http://antivirus.softlabs.info/SoftlabsAV/etc/procmailrcs/softlabs/inc/av_v320.inc

For those who are using or want to try the SoftlabsAV package, it is
available at its Homepage

http://softlabsav.sourceforge.net/

The new release includes enhancements, fixes a bug and adds greater
robustness. The current ChangeLog is:

____________________________________________________________________________
 v0.6           (2004 03 20) (spring edition)

 + all variables defined by Softlabs AntiVirus now begin with "av_" (except 
   those intended to be useable globally: TRASHDIR, TEST, TRUE, FALSE and 
   FIELD). This also affects all configurable variables - thus, replacing 
   the Configuration file is recommended when you are updating from a 
   previous version. The new uniform naming scheme minimizes the risk to 
   conflict with procmail's built-in variables that may be introduced in a 
   future procmail version and it makes our source code even more cleaner 
   and easier to understand. 

 + the "viruses.log" file is now more beautiful formatted to be easier 
   human readable: the file size (in column 4) is right aligned; the file 
   type description is less verbose. 

 + moving an EZIP virus into its final location is now no longer done via 
   TRAP (as intoduced in v0.5.5) since we need all viruses in their final 
   directories *before* exiting the recipe. Otherwise, EZIP viruses would 
   not have been logged in the Viruses log file. 

 + Softlabs AntiVirus now first checks if it runs under a supported 
   procmail version (>= 3.20). If it doesn't, that will be written into 
   the log file, and all mails will be deliverd unfiltered. 

 + before mails will be filtered, Softlabs AntiVirus now also checks if 
   the required constants defined in section 2 of the shipped 
   '/etc/procmailrc' file have been provided. If not, it quits without 
   filtering (but writing the reason of quitting into the log file). 

 + a new .inc file has been added, with a routine used to concatenate a 
   string multiple times 

 + the routine used to to determine the length of a variable's value has 
   been outsourced into an own .inc file 

best,
rob.




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>