From kmail-devel Mon Dec 30 23:20:09 2002 From: Frank Dekervel Date: Mon, 30 Dec 2002 23:20:09 +0000 To: kmail-devel Subject: Re: kmail's fileter execute command parameters X-MARC-Message: https://marc.info/?l=kmail-devel&m=104129052407782 op Monday 30 December 2002 12:39 , schreef Chris in <200212300532.15760.cbruner@crystal-software-canada-inc.com> : > > I'm using the kmail's filter to move incomming mail to various inbox's and > for the important messages, I have speech synthasis telling me, that ebay > was confirmed or out bid (or whatever), using the "execute command" filter > action. > > It would be nice to be able to send the subject line of the incomming > message to the speech synthasizer. > > In the documentation it talks about using %0 for the body, %1 for the > first attachement and so on. Is there a flag for the subject line, or any > of the other parts of the message? i am doing the same, and i use 'pipe thru' to pipe the message thru a shellscript, that does something like this cat > tempfile FROM=$(cat tempfile | egrep ^From\: | cut --fields="2-" --delimiter=" " | head -1) TO=$(cat tempfile | egrep ^To\: | cut --fields="2-" --delimiter=" ") SUBJECT=$(cat tempfile | egrep ^Subject\: | cut --fields="2-" --delimiter=" ") cat tempfile its not ideal, but it works with current released kmail ... greetings, frank -- Frank Dekervel Mechelsestraat 88 3000 Leuven kervel@drie.kotnet.org _______________________________________________ KMail Developers mailing list kmail@mail.kde.org http://mail.kde.org/mailman/listinfo/kmail