Page 1 of 1

formail, procmail, Subject an eine E-Mail Adresse schicken

Posted: 2005-12-22 22:17
by alexander newald
Kann man, und wenn ja, wie, aus Procmail heraus mit formail das Betreff einer eingehenden E-Mail herausnehmen und an eine andere E-Mail Adresse (möglichst als Body) versenden? Zur Verfügung stehen eben nur formail, sendmail und procmail.

Re: formail, procmail, Subject an eine E-Mail Adresse schicken

Posted: 2005-12-24 01:25
by squize
Hallo

Google Suche, dann extract Subject: for auto reply aufgerufen und schon haben wir:

Code: Select all

I'm sure there is a fancier/shorter way to do it but I do this:

# Capture the subject and put it in $SUBJECT
:0
* ^Subject:(.*<)/[^  ].*
{ SUBJECT=$MATCH }

# Add in the text before the original subject line
:0 hfw
| /opt/local/bin/formail -i "Subject: Out of Office Autoreply RE: $SUBJECT"
-Chris

Hier noch eine nette Seite zu procmail auf Deutsch

Procmail FAQ

Gruss

Marc