-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Wednesday, August  5 at 08:06 AM, quoth ed:
> Mainly this is so that I can inspect the headers of the original 
> before generating the headers of the reply. I know it's a lot of 
> senselses work but I want to set the From: header to match the fist 
> Delivered-To header of the original...

Ahhh, well, you may be able to work around that too.

I would do it something like this: create a "reply" macro, so that 
when you hit "r" (or whatever you use to reply to messages), it pipes 
the message to a script, sources a file (generated by that script), 
and then replies to the message. Like this:

     macro pager,index r 
'<pipe-message>~/.myfilter.sh<enter><enter-command>source 
~/.myfilter.out<enter><reply>'

Then your filter script can look something like this:

     #!/bin/sh
     lastdt=`awk '/^$/{print lastdt;exit}/^Delivered-To: /{lastdt=$2}'`
     echo "my_hdr 'From: $lastdt'" > ~/.myfilter.out

Thus, when you reply, your filter script creates a file full of all 
the commands and/or settings you want to make mutt do. The macro then 
sources that file, which runs all those commands, and THEN issues the 
reply.

~Kyle
- -- 
It is not bigotry to be certain we are right; but it is bigotry to be 
unable to imagine how we might possibly be wrong.
                                                  -- Gilbert Chesterton
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJKeX27AAoJECuveozR/AWepmUP/iN2LUsEei4/QRyB1BgjhzsV
UuzX5zDXP3Niu0yIvmVZAtLKkmC4IDejV/CJYcMLjJ9JdxS2ik3htYF6cKv03k3j
eZMBDVigk0w1CRiEHZRoCzbRVWjdxMFDseAmNSuK+JsqjqnyY9Iqzgrg9rURKht8
8b+cSt49+X3hIqN6JjmIxUSaarT/Are6gCIadz4mBkX2Qr4Hvh1L3cfiaZty/97F
aGTXS57owqVwQUAx4/OfG1pPkYWEjuZHar0CXuhXDz4zLm/YoRBwZfjX6obcg4sH
1QiqCMXE4jsaYAFhm7aU+WBI4eOOLnx5rpw+zVAlH/01le/NssqsSBRV/72Xxt4T
MJfpbkjHMHIdML8lOfARzbzzikRMKEYtTBBJR5ntgJ9A5dy1ahbdnTMnkrGPfb2D
l4K7CA/H/BXjjMex49U7ag8XSSHKy5XZEDlEzFU996qhbnBB38D+3jzKWzlMFP9u
Eb3VPKVab6VOSoUb+Gu/8vtlRHTNq8+dgFTcEx9z1+aCBE65RCu5V0TIZkQDR3Yr
obewQc1xhTT5WXX2f9vu3uhL/WTrnPaW1zjuuZv6wCveIrWseu8XlOTpnWlvEfD0
5WzoNhi5Bcx+oLnZgJArfRzEEdwKew1MeQHZ4rbBQMPB5g0mdIxM9md6J3G8p2sK
ngF4Xbch9sMT+yxUDJ8W
=ZwtQ
-----END PGP SIGNATURE-----

Reply via email to