Hi Mathias,
Remember to also detect for looping. I created an extended header called
X-MM-Flags,
if this exists on an incoming I delete the message if the header is my own
- looks for the email address too :)
:0 H
* ^X-MM-Flags:.*F\(lara(_at_)mighty(_dot_)co(_dot_)za\).*
/dev/null
I now do the receipy using formail and adding the extended header :)
The headers Precedence and X-Precendence I added in because mailing lists
add these, and
you don't want to auto-reply to mailing lists (they'll bomb you back :))
:0 Hc
* ^Subject:.*replymessage.*
* !FROM_DAEMON
* !^Precedence:.*
* !^X-Precedence:.*
| (echo "From: lara(_at_)mighty(_dot_)co(_dot_)za"; formail -A "X-MM-Flags:
F(lara(_at_)mighty(_dot_)co(_dot_)za)" -r; cat /tmp/OutOfOffice) |
/var/qmail/bin/qmail-inject -flara(_at_)mighty(_dot_)co(_dot_)za
Hope this helps :)
lara
At 04:12 PM 2/19/99 +0800, you wrote:
On building an autoreply facility with procmail/formail, I
am wondering how to generate a subject line which
includes the original subject using (was: old subject) or similar?
ie, to a mail with
Subject: Hello
I want to reply with:
Subject: Thanks (was: Hello)
Does anyone have an idea how to do this using formail?
If not I'll have to fall back to perl...
Any help is appreciated
Mathias Koerber | Tel: +65 / 471 9820 |
mathias(_at_)staff(_dot_)singnet(_dot_)com(_dot_)sg
SingNet NOC | Fax: +65 / 475 3273 |
mathias(_at_)koerber(_dot_)org
Q'town Tel. Exch. | PGP: Keyid: 768/25E082BD, finger
mathias(_at_)singnet(_dot_)com(_dot_)sg
2 Stirling Rd | 1A 8B FC D4 93 F1 9A FC BD 98 A3 1A 0E 73 01 65
S'pore 148943 | Disclaimer: I speak only for myself
* Eifersucht ist eine Leidenschaft, die mit Eifer sucht, was Leiden schafft *
________________________________________________________________________
Lara Marques
mailto:lara(_at_)mailgate(_dot_)net
Software Developer work: +27 11 402 4116
fax: +27 11 402 4118
http://www.mighty.co.za cellular: 082 656 4665
________________________________________________________________________