Re: More quick questions
Philip Rhoades <[email protected]> Tue, 25 Apr 2017 16:30:23 +1000
| Newsgroups | gmane.mail.maildrop |
|---|---|
| Message-ID | <[email protected]> |
Sam, On 2017-04-24 20:30, Sam Varshavchik wrote: > Philip Rhoades writes: > >>> You can always explicitly execute the "log" statement, before "to", >>> to >>> add something to the log file prior to what gets written by defualt. >> >> >> Not sure what you mean by that - could you elaborate? > > See the "log" command in the maildropfilter man page. > > Before the "to" statement that delivers the mail and logs the delivery > in the log file, just execute the "log" statement, to prepend your > own message to the log file. You can extract the contents of the To: > header yourself, and include it in the message. > > /^To:(.*)/ > log "To: $MATCH" > to "Maildir" > > or something like that. > > If you want the message to appear after the default log entry, use > "cc" instead of "to", followed by "log", followed by an explicit > "exit". Excellent! Thanks for that - BTW you don't need the "To:" in: log "To: $MATCH" Regards, Phil. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Courier-maildrop mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/courier-maildrop -- Philip Rhoades PO Box 896 Cowra NSW 2794 Australia E-mail: [email protected] ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot