<<< Date Index >>>     <<< Thread Index >>>

Re: filtering messages not always recognized



Am 2005-04-06 14:17:11, schrieb Eugene:

> I use formail as well.  Here's the script for ~/bin/appendmessage:
> 
> ============================== snip here ==============================
> #!/bin/sh
> 
> mesg_file="/tmp/message-id"
> mesg_id=`cat $mesg_file`
> tmp_file="/tmp/mutt_$$_$PPID.tmp"
> formail -A "$mesg_id" < $1 > $tmp_file
> mv $tmp_file $1
> sleep 1
> ============================== snip here ==============================

Why not try:

============================== snip here ==============================
#!/bin/sh

mesg_file=/tmp/message-id
tmp_file=`tempfile`
cat $1 |formail -A `cat $mesg_file` > $tmp_file
mv $tmp_file $1
============================== snip here ==============================

Tried and it works.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack Apt. 917                ICQ #328449886
                 50, rue de Soultz       MSM LinuxMichi
0033/3/88452356  67100 Strasbourg/France IRC #Debian 
(irc.icq.com)

Attachment: signature.pgp
Description: Digital signature