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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -