* Pascal Brugier <[EMAIL PROTECTED]> [2002-10-06 09:51]:
> For system administration we install a script on every station
> we have to administrate. This script control if Debian packages
> installed on the station are always up to date. If no the
> script send us a mail which is always of the same format:
>
>    From: admin@FQDN_station_name
>    To: admin@**** #(always the same address here)
>    Subject: "Eepdate: FQDN_station_name"
>
> The body of the mail tells us which packages must be updated
> I have a mail box for this kind of  messages (Procmail of course)
> What I want to do is: [when] Replying to this mail..

well, your original request was about "forward" - not "reply".
so this is why you should have described your problem in
the first place as this turns out to be quite different.

> (when upgrade is done :-)) with:
>   To: admin@**** #(always the same address here)
>   Subject: "Eepdate: FQDN_station_name DONE"

you'll get the "admin@" address if there were an
appropriate Reply-To: line with this kind of email, right?
so i suggest you will instruct procmail to add such
a line before storing it in your special folder.

oyutline of procmail settings and rule:

  FQDN=easter-eggs.com
  REPLYADDRESS=admin@whatever

  :0 hfw
  * ^From:.*admin@$FQDN
  |formail -a "Reply-To: $REPLYADDRESS"

note: untested.  but you'll get the idea.

> And the "reply body" is made with a part which is the body of
> the message I received and a part I add, this last part well
> be always the same. Something Like: "The upgrade is done"

this changes the message - and therefore you should use the power
of your editor to apply it.  ("set editor=vi" and ":r filename").

> The real question is how to do this by a forward..

please forget about the "forward" and think in terms of "reply".

Sven

Reply via email to