Re: More quick questions

Sam Varshavchik <[email protected]> Mon, 24 Apr 2017 06:30:40 -0400
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
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".

------------------------------------------------------------------------------
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
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAABAgAGBQJY/dPQAAoJEGs6Yr4nnb8l4zcP/iPBDKencyWX8fOSSWY5h1zD
lbDUhnhZn3tulRUciBbZ2HkEiWv6OgrZ4xR2wICc77t3oElhZI/g7uHbRYPEJMMh
G2gz/27RyVy4jyylgoAbDL1Olqhxz5T+6LOvwBHo0RKBYXSsoVAJQHAS9DeK6IcF
2bdonvhjCN7rjQzRUvLV5MG4DjESjdDHdVZWBlDvELQDcLmHIL/9OHJBR9N2E5lJ
14j8gploIFTyj0OYMwTKE+VoE0F90tUkvvCLvIqdMygD7W8xLbTp8KZugdfbPl/o
dT5nDcIJTdp3Z7zJKjV09+iHzpDzzR3wDOXFnn0gwEqi3jMPkFQ2LoqUwtgjnUfg
mgWCqaB+jnLYRqDh3GsMZZA3PmTsFSMk+q1rFPOxK68xH/Dicb+zQ/0e+02mlT/e
EePiwsZtbsGAxtmW+kyKBimQ/HjcabmhVmn/yUJzqQA/dugbWBrdh7jUewR9kO6F
HuBm7hAG+TVS4pfBwoVA2TiYwQNo9/8cdI6ejsMzhZT39JeDQd/dT6dUa9x8Ah4q
2LzINaTHuM8mgraD8weXDTaU6rMxDEuNgeFlI8FvM3rGhiaUvzs0ghcXM18JNJ96
tIsVsISXOf28qaBcXf2COs6yxJWHT7CM/1dsQ60qYlTOUu3CHH7GwyryzIsn1/Jm
jQkI2Y8qPOm8M71GPlvI
=O3XK
-----END PGP SIGNATURE-----