On 30-Mar-2003/17:35 +0900, Tsuyoshi Takada <[EMAIL PROTECTED]> wrote:
>
>Is there anyone who advise me...? (;_;)

Create a procmail filter file that looks like this:

##########################################################
DEFAULT=/dev/null
:0fw
* ^From:.*example.com
| formail -x To: | sed -e 's/^ //'  >> $HOME/tolines.txt
##########################################################


Then use this command:

  cat messagefile | formail -s procmail filterfile


The file 'tolines.txt' will contain the To: header addresses for every
message that was sent from example.com.

Tony
-- 
Anthony E. Greene <mailto:[EMAIL PROTECTED]>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to