Ben Fitzgerald
2018-08-21 01:24:40 UTC
Hi
I'm looking to integrate mutt with org-mode.
I can use pipe-message to "capture" an email into emacs by piping to an external
script which then dumps it into emacs with the Message-ID header tag. Works
great.
I can then use the Message-ID to have mutt pull out the given mail.
So far so good.
My problem is when I file an email into a subfolder.
Searching say my INBOX with "~i {message-id}" won't find anything
if I moved my email into another folder.
My idea for solving this would be to save both the Message-ID *and* the folder
the message resides in. Then I could, from emacs:
1. have mutt change to the correct folder
2. then search my "~i {message-id}"
To achieve this I'd need to do more than "<pipe-message>". Is there any way
to have mutt either add a temporary header named X-Folder *or* output one line
with the folder then the rest of the message?
I know this won't work if I subsequently move the email to another folder
after capturing this metadata, but I generally don't do this.
Hopefully my question is clear and there is a path forward.
Regards,
Ben Fitzgerald.
I'm looking to integrate mutt with org-mode.
I can use pipe-message to "capture" an email into emacs by piping to an external
script which then dumps it into emacs with the Message-ID header tag. Works
great.
I can then use the Message-ID to have mutt pull out the given mail.
So far so good.
My problem is when I file an email into a subfolder.
Searching say my INBOX with "~i {message-id}" won't find anything
if I moved my email into another folder.
My idea for solving this would be to save both the Message-ID *and* the folder
the message resides in. Then I could, from emacs:
1. have mutt change to the correct folder
2. then search my "~i {message-id}"
To achieve this I'd need to do more than "<pipe-message>". Is there any way
to have mutt either add a temporary header named X-Folder *or* output one line
with the folder then the rest of the message?
I know this won't work if I subsequently move the email to another folder
after capturing this metadata, but I generally don't do this.
Hopefully my question is clear and there is a path forward.
Regards,
Ben Fitzgerald.