formail, procmail, Subject an eine E-Mail Adresse schicken
-
alexander newald
- Posts: 1117
- Joined: 2002-09-27 00:54
- Location: Hannover
- Contact:
formail, procmail, Subject an eine E-Mail Adresse schicken
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
Hallo
Google Suche, dann extract Subject: for auto reply aufgerufen und schon haben wir:
Hier noch eine nette Seite zu procmail auf Deutsch
Procmail FAQ
Gruss
Marc
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
Procmail FAQ
Gruss
Marc
