-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, August 26 at 05:41 PM, quoth Marianne Promberger:
> Is it possible to extract a specific message header from mutt and pass
> it on to a shell command?
Not really, but there are ways of getting around that.
> maybe by passing the current message to formail
Exactly!
> (but then, what would I write for "the current message" on mutt's
> shell command prompt that comes up when I press "!" ?)
Don't use "!"; use "|".
> I'd like to be able to "ignore" threads that are of no interest to
> me (on mailing lists), and I'm currently thinking about this:
>
> (a) bind a key to delete the current message and also extract the
> message ID and append it to a textfile (this is where I'm stuck)
macro index,pager D '<pipe-message>formail -c -x Message-ID: >
~/.killfile<enter><delete-message>'
> (b) set up a folder hook to delete-pattern messages that are "In reply
> to:" messages with IDs that are in the textfile from (a) (I think I've
> got that part sorted)
A folder-hook? Hmmm...
source "awk '{print \"folder-hook . \\\"<delete-pattern>~h References:
\\\",$1}'|"
Just a thought, anyway. Seems a bit excessive, though. Much easier to
just have your MDA delete those messages, rather than have mutt do it
(that file will get big *fast*).
~Kyle
- --
Where all men think alike, no one thinks very much.
-- Walter Lippmann
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAki0QvIACgkQBkIOoMqOI16QQQCg0HITnQKcHgddvCHSGEQ7BiKp
qagAoLOgdIRZjB6bHBAUt7i7wQuD5UhS
=MmoF
-----END PGP SIGNATURE-----