|
Simon Campese |
|
|
Dear Community,
I've got my own domain and when registering or shopping at some website, I always use email addresses of the form "[hidden email]", so for example I use "[hidden email]" when shopping at amazon. The reason for this is categorizing incoming mail on the one hand, and immediately being able to spot the source of spam on the other hand. I would like to implement the following behaviour: When replying to a mail that has "[hidden email]" in the "To"-header, I would like to have the "From"-header of the reply to be automatically set to this address. Is there some kind of reply-hook in notmuch where one could put an appropriate function? Thank you very much for your help, Simon _______________________________________________ notmuch mailing list [hidden email] http://notmuchmail.org/mailman/listinfo/notmuch |
|
Jani Nikula |
|
|
On Sat, 21 Jan 2012 16:35:10 +0100, Simon Campese <[hidden email]> wrote:
> Dear Community, > > I've got my own domain and when registering or shopping at some website, > I always use email addresses of the form "[hidden email]", so > for example I use "[hidden email]" when shopping at amazon. The > reason for this is categorizing incoming mail on the one hand, and > immediately being able to spot the source of spam on the other hand. > > I would like to implement the following behaviour: When replying to a > mail that has "[hidden email]" in the "To"-header, I would like > to have the "From"-header of the reply to be automatically set to this > address. > > Is there some kind of reply-hook in notmuch where one could put an > appropriate function? Do you have all those email addresses in the user.other_email configuration option in your ~/.notmuch-config? It should do the trick, though I can see that it might get a bit tedious if you use plenty of email addresses like above. BR, Jani. _______________________________________________ notmuch mailing list [hidden email] http://notmuchmail.org/mailman/listinfo/notmuch |
|
Jameson Graef Rollins |
|
|
On Thu, 02 Feb 2012 19:26:53 +0200, Jani Nikula <[hidden email]> wrote:
> Do you have all those email addresses in the user.other_email > configuration option in your ~/.notmuch-config? It should do the trick, > though I can see that it might get a bit tedious if you use plenty of > email addresses like above. Yeah, I think this is the point: you want "*@mydomain.org" to be one of the user.other_email. I don't see why that couldn't be done with a little work in notmuch-reply.c. I wouldn't mind seeing this functionality as well, actually. jamie. _______________________________________________ notmuch mailing list [hidden email] http://notmuchmail.org/mailman/listinfo/notmuch |
|
Tomi Ollila-2 |
|
|
In reply to this post by Simon Campese
On Sat, 21 Jan 2012 16:35:10 +0100, Simon Campese <[hidden email]> wrote:
> Dear Community, > > I've got my own domain and when registering or shopping at some website, > I always use email addresses of the form "[hidden email]", so > for example I use "[hidden email]" when shopping at amazon. The > reason for this is categorizing incoming mail on the one hand, and > immediately being able to spot the source of spam on the other hand. > > I would like to implement the following behaviour: When replying to a > mail that has "[hidden email]" in the "To"-header, I would like > to have the "From"-header of the reply to be automatically set to this > address. > > Is there some kind of reply-hook in notmuch where one could put an > appropriate function? You could (also) check this (or some other with same name) https://github.com/altruizine/gnus-alias/blob/master/gnus-alias.el ( should not be gnus-spesific ) I've planned to take a look and write a wiki page but I don't promise doing any of that soon... > Thank you very much for your help, > > Simon Tomi _______________________________________________ notmuch mailing list [hidden email] http://notmuchmail.org/mailman/listinfo/notmuch |
|
Simon Campese |
|
|
On Fri, 03 Feb 2012 13:54:07 +0200, Tomi Ollila <[hidden email]> wrote:
> You could (also) check this (or some other with same name) > > https://github.com/altruizine/gnus-alias/blob/master/gnus-alias.el Thanks for the link, but this method is interactive. I want something automatic. Nevertheless a nice thing to have when composing emails. Best, Simon _______________________________________________ notmuch mailing list [hidden email] http://notmuchmail.org/mailman/listinfo/notmuch |
|
Istvan Marko |
|
|
In reply to this post by Simon Campese
Simon Campese <notmuchmail_org-W/[hidden email]>
writes: > I would like to implement the following behaviour: When replying to a > mail that has "[hidden email]" in the "To"-header, I would like > to have the "From"-header of the reply to be automatically set to this > address. message-alternative-emails and message-dont-reply-to-names might help to handle this. -- Istvan _______________________________________________ notmuch mailing list [hidden email] http://notmuchmail.org/mailman/listinfo/notmuch |
|
Simon Campese |
|
|
In reply to this post by Jameson Graef Rollins
> Yeah, I think this is the point: you want "*@mydomain.org" to be one of
> the user.other_email. I don't see why that couldn't be done with a > little work in notmuch-reply.c. I wouldn't mind seeing this > functionality as well, actually. So here's my shabby solution (pasted from my .emacs): ;;automatically take From: from To: if mail was sent to .*@mydomain.org (defun notmuch-show-reply-sender-mod () (interactive) (if (string-match ".*@campese.de" (notmuch-show-get-header :To)) (notmuch-mua-reply (notmuch-show-get-message-id) (notmuch-show-get-header :To) nil) (notmuch-show-reply-sender))) (defun notmuch-show-reply-mod () (interactive) (if (string-match ".*@campese.de" (notmuch-show-get-header :To)) (notmuch-mua-reply (notmuch-show-get-message-id) (notmuch-show-get-header :To) t) (notmuch-show-reply))) (define-key notmuch-show-mode-map "r" 'notmuch-show-reply-sender-mod) (define-key notmuch-show-mode-map "R" 'notmuch-show-reply-mod) If it sees "@mydomain.org" in the 'To'-header, it copies the whole "To:"-header to the "From:" header when replying. This works as long as I'm the only one in the "To:"-header, which usually is the case (I only use this "special" email addreses when registering at online-shops, forums, etc. to be able to easily track where spammers got my email from. I totally agree that a clean solution would be regular expressions in the primary_email and other_email fields in notmuch-config. Anyone up for implementing this? :-) Best, Simon _______________________________________________ notmuch mailing list [hidden email] http://notmuchmail.org/mailman/listinfo/notmuch |
| Powered by Nabble | See how NAML generates this page |