5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] How do I append the o...
FromSent OnAttachments
Doc WalkerFeb 16, 2005 7:58 pm 
Thorsten HaudeFeb 16, 2005 10:52 pm 
Ron JohnsonFeb 17, 2005 5:40 am 
Doc WalkerFeb 17, 2005 7:34 am 
Doc WalkerFeb 17, 2005 7:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] How do I append the output from a shell command to the end of a messageActions...
From:Thorsten Haude (list@thorstenhau.de)
Date:Feb 16, 2005 10:52:56 pm
List:net.sourceforge.lists.courier-maildrop

Hi,

* Doc Walker wrote (2005-02-17 04:58):

This replaces my message with the result of uptime:

if ( /^Subject: uptime/ ) { xfilter '/usr/bin/uptime' to "$DEFAULT" }

How do I append the result?

Try to print the mail first, then the uptime. Untested: if (/^Subject: uptime/) { xfilter 'cat && uptime' to "$DEFAULT" }

Thorsten