From: mailinglists@nawaz.org
To: notmuch@notmuchmail.org
Subject: Modify message after send...?
Date: Sat, 18 Jul 2015 21:59:45 -0700 [thread overview]
Message-ID: <878uacpwse.fsf@fester.com> (raw)
Hi,
I use notmuch via Emacs.
Here's what I want:
When I hit C-c C-c to send a message, I'd like it to be passed to a
script (likely a Python one, although I may consider an Elisp function
if an external script is not possible) for modification of headers,
before it is sent to the MTA (Postfix in my case). A bonus would be to
have the modified message stored in the FCC location, instead of the
original one.
Is this possible? An alternative may be to modify the message /before/
it goes to message-send-and-exit. I'm inexperienced in Elisp - would
this be via what's called "advising"?
BTW, all I really want to do is modify the From: field based on the
recipients (for every email, with no default From). I'll welcome
suggestions for existing ways to do that. I Googled a little, but didn't
find a clear good solution. Furthermore, I expect over time the rules by
which I pick the From: field will get more complex than my knowledge of
Elisp.
Thanks.
--
My sister opened a computer store in Hawaii. She sells C shells down by
the seashore.
/\ /\ /\ /
/ \/ \ u e e n / \/ a w a z
>>>>>>mueen@nawaz.org<<<<<<
anl
next reply other threads:[~2015-07-19 5:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-19 4:59 mailinglists [this message]
2015-07-19 7:59 ` Modify message after send...? David Bremner
2015-07-19 8:22 ` Mark Walters
2015-07-19 16:57 ` MN
2015-07-22 0:21 ` David Mazieres
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878uacpwse.fsf@fester.com \
--to=mailinglists@nawaz.org \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).