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 to extract the Subject lines mails to lists,
so I will have send-hook rules for mail to these known lists.
I would need to define this macro only for mails to these lists
(and then define "y" back to send-message).

(The script to which the headers are piped will also schedule an
at job to strip the Subject line from the file in n days).

I do something like this with postfix alwaysbcc and procmail,
but would prefer something more specific and efficient. Best
place to do it is at the time of send-message when the Subject
line is definitive.

-- 
Eric Smith

Jeremy Kitchen wrote on Thu-08-Nov 12  2:53AM
> 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 
> > "<pipe-entry>/home/eric/bin/get_subject<enter><send-message>"
> > 
> > The headers are not being passed to the script get_subject.
> > What would be the solution?
> 
> I really want to say that this is because you're only piping the
> attachment you currently have highlighted. Now, I'm not sure how to do
> what you're asking for, but I think that's what's going on underneath.
> 
> One question though, what are you attempting to do with this? Perhaps we
> can help you find a better way to do it.
> 
> It seems to me you're trying to capture outgoing subject lines with
> a script? (just judging by the name of your script)
> 
> -Jeremy


Reply via email to