Re: pipe headers to a file on send from compose window -> solution

2012-11-08 Thread Jeremy Kitchen
On Thu, Nov 08, 2012 at 09:47:26PM +0100, Eric Smith wrote: > Jeremy > > This is how I did it: > > set sendmail = "/home/eric/bin/get_subject_and_send.sh" > > $ cat /home/eric/bin/get_subject_and_send.sh > > #!/bin/bash cat /dev/stdin| tee >(SUBJECT=`formail -z -x Subject`;echo > "^Subject:.*$S

Re: pipe headers to a file on send from compose window -> solution

2012-11-08 Thread Eric Smith
Jeremy This is how I did it: set sendmail = "/home/eric/bin/get_subject_and_send.sh" $ cat /home/eric/bin/get_subject_and_send.sh #!/bin/bash cat /dev/stdin| tee >(SUBJECT=`formail -z -x Subject`;echo "^Subject:.*$SUBJECT">>/home/eric/serialised_subjects;echo perl -ni -e \"print if not /$SUBJ

Re: pipe headers to a file on send from compose window

2012-11-08 Thread Jeremy Kitchen
On Thu, Nov 08, 2012 at 10:15:45AM +0100, Eric Smith wrote: > Thanks Jeremy > > Task is to create a serialised list of Subject lines for mails posted to > lists. > > Why? So that procmail can filter any incoming list mail by using > `egrep -f' on this serialised Subject list and these (presumed)

Re: pipe headers to a file on send from compose window

2012-11-08 Thread Eric Smith
Thanks Jeremy Task is to create a serialised list of Subject lines for mails posted to lists. Why? So that procmail can filter any incoming list mail by using `egrep -f' on this serialised Subject list and these (presumed) replies to my posting may then be dropped in my main inbox. I only want

Re: pipe headers to a file on send from compose window

2012-11-07 Thread Jeremy Kitchen
On Thu, Nov 08, 2012 at 12:37:27AM +0100, Eric Smith wrote: > When piping a message from the compose menu, I receive only the > body of the mail and not its headers. > > I want to capture the headers before sending the mail and am > using this macro. > > macro compose ,y "/home/eric/bin/get_subje