Re: save only mail body into a file
Erik Christiansen <[email protected]> Sat, 11 Nov 2017 16:40:30 +1100
| Newsgroups | gmane.mail.procmail |
|---|---|
| Message-ID | <20171111054029.GC3357@ratatosk> |
On 10.11.17 08:52, Zhiliang Hu wrote: > For one of my specific purposes I used to pass certain mails to a perl > script in order to save/process ONLY the mail body. > = > It can simplify the process if I can directly drop a mail body into a fil= e. > I tried ':0 b' to save mailbody, = That works for me: :0b: * ^Subject: *furdlesnurk /tmp/snurdlefurk erik@ratatosk:~$ mail erik Subject: furdlesnurk Only the body should be saved to file. Cc: = erik@ratatosk:~$ cat /tmp/snurdlefurk = Only the body should be saved to file. > 'formail -I' to remove mail headers, > without success. I also fail to find useful hints by onine searches. Any > advice/hint? :) More coffee. That sometimes helps. ;-) Erik