email - Procmail mail to file -
i want configure procmail. right i've got code redirect mails selected topic server mail mail. it's code:
:0 c *subject.*exampletopic example@mail.com
i want copy mail content selected .txt file on server. how can it?
your current code saves copy folder named example@mail.com
. save file different name, change string. (to forward each matching message email address, syntax ! email@example.com
exclamation mark action "verb".)
the default saving action appends flat text file in berkeley mbox format. includes both headers , body. b
flag can save email body, still raw mime transport format, want.
:0b * condition, perhaps bodyfile.txt
procmail regrettably knows nothing mime, if getting particular body part need, you'll want pipe message script understands mime , can implement extraction policy.
:0 * condition, maybe | extracttool >>bodyfile.txt
the vague wording of question implies not familiar details of email formatting in general , mime in particular. you'll want post question more detailed requirements once have proper idea of challenges are. start, source of message want mainpulate might you.
Comments
Post a Comment