[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [vps-mail] procmail : about reading info from ASCII files



SW> INCLUDERC has to be either a standalone line in an rc file, or the
SW> action line (enclosed by braces). The INCLUDERC file itself also
SW> should be a valid procmailrc-style file (i.e., valid, complete
SW> syntax):

SW>     INCLUDERC=blocklist.rc

SW> or

SW>     :0
SW>     * H ?? ^TO_me@mydomain\.com
SW>     { INCLUDERC=blocklist.rc }

SW> would work.

Thanks for setting me straight. I use the INCLUDERC as a
standalone myself, as I simply hand edit those files, and
for my purposes it is a lot easier to work with individual
files that are correctly formatted.

But it had occurred to me that if you could include the list
mid-recipe, you would be able to set up a separate program
to write to the file. For example, you could have a simple
Perl form-based program that would allow a user (client) to
enter in a whitelist or blacklist domain, which would simply
write to the end of the client_whitelist.rc file in
appropriate syntax.

Am I correct in assuming that this could still be done with
the  { INCLUDERC=blocklist.rc } syntax above would be
followed by a delivery line (i.e.:

:0
* H ?? ^TO_me@mydomain\.com
{ INCLUDERC=blocklist.rc }
/path/to/clients_spam_mbox

-Abigail

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
======================================================================


Main Index | Thread Index
Match: Format: Sort by:
Search: