How to setup procmail to send all incoming mail to two, three or more scripts and leave a copy in mailbox?

StackOverflow https://stackoverflow.com/questions/11231558

  •  17-06-2021
  •  | 
  •  

How can I force .procmailrc for each incoming email:

  1. leave this email in my mailbox as if nothing happened.
  2. Give mail to script1.sh through stdin
  3. Give mail to script2.sh through stdin
  4. Give mail to script3.sh through stdin
  5. Give mail to script4.sh through stdin and so on

how can I do it?

有帮助吗?

解决方案

Just use a bunch of non-delivering pipe actions

:0 c
|script1.sh

:0 c
|script2.sh

:0 c
|script3.sh

etc. When it falls through all the recipes without having delivered it will deliver to the system standard inbox.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top