* [Q]: function `message-insert-disposition-notificatio-to` @ 2004-01-04 17:58 Xavier Maillard 2004-01-04 20:46 ` Lars Magne Ingebrigtsen 0 siblings, 1 reply; 5+ messages in thread From: Xavier Maillard @ 2004-01-04 17:58 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 1321 bytes --] Hi, When I want someone to send me a return receipt, I am used to press `C-c M-n`. All is right for me but now I am trying to obfuscate my 'From' header so instead of a real address, I have a '+something' (ie +mail for mails) or other mark to obfuscate my mail (depending of the mailing list software manager). So taking message-insert-disposition-notification-to function: ,---- [ message.el ] | (defun message-insert-disposition-notification-to () | "Request a disposition notification (return receipt) to this message. | Note that this should not be used in newsgroups." | (interactive) | (save-excursion | (save-restriction | (message-narrow-to-headers) | (message-remove-header "Disposition-Notification-To")) | (message-goto-eoh) | (insert (format "Disposition-Notification-To: %s\n" | (or (message-field-value "Reply-to") | (message-field-value "From") | (message-make-from)))))) `---- I always have to manually remove the '+' part from my 'From' headers. Is there a simple way to advice this function such like it de-obfuscate automatically the 'From' header and so get a good and real email address ? I am not really familiar with advice so maybe can one help me ? :) Thanx zeDek -- In Gruuik we trust [-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Q]: function `message-insert-disposition-notificatio-to` 2004-01-04 17:58 [Q]: function `message-insert-disposition-notificatio-to` Xavier Maillard @ 2004-01-04 20:46 ` Lars Magne Ingebrigtsen 2004-01-04 21:02 ` Xavier Maillard 0 siblings, 1 reply; 5+ messages in thread From: Lars Magne Ingebrigtsen @ 2004-01-04 20:46 UTC (permalink / raw) Xavier Maillard <zedek+mail@gnu-rox.org> writes: > I always have to manually remove the '+' part from my 'From' headers. What I would have done is define a command that first does `message-insert-disposition-notification-to', and then goes through the buffer and strips the "+whatever" from the From header. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Q]: function `message-insert-disposition-notificatio-to` 2004-01-04 20:46 ` Lars Magne Ingebrigtsen @ 2004-01-04 21:02 ` Xavier Maillard 2004-01-04 21:07 ` Lars Magne Ingebrigtsen 0 siblings, 1 reply; 5+ messages in thread From: Xavier Maillard @ 2004-01-04 21:02 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 780 bytes --] On 4 Jan 2004, Lars Magne Ingebrigtsen<larsi@gnus.org> verbalized: > Xavier Maillard <zedek+mail@gnu-rox.org> writes: > >> I always have to manually remove the '+' part from my 'From' headers. > > What I would have done is define a command that first does > `message-insert-disposition-notification-to', and then goes through > the buffer and strips the "+whatever" from the From header. Do you mean duplicate the function ? If so, I just did one function that does this. My problem is not solved though :( I really need to know how I can advice m-i-d-n-t function so it does it directly. Thanx anyway, zeDek -- GNUSFR.ORG http://gnusfr.org/ EMACSFR.ORG http://emacsfr.org/ Xavier Maillard Tel: +33 6 62 59 68 62 [-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Q]: function `message-insert-disposition-notificatio-to` 2004-01-04 21:02 ` Xavier Maillard @ 2004-01-04 21:07 ` Lars Magne Ingebrigtsen 2004-01-04 22:55 ` Xavier Maillard 0 siblings, 1 reply; 5+ messages in thread From: Lars Magne Ingebrigtsen @ 2004-01-04 21:07 UTC (permalink / raw) Xavier Maillard <zedek@gnu-rox.org> writes: > Do you mean duplicate the function ? No. Define a new function that calls that other function, and then massage the buffer afterwards. -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Q]: function `message-insert-disposition-notificatio-to` 2004-01-04 21:07 ` Lars Magne Ingebrigtsen @ 2004-01-04 22:55 ` Xavier Maillard 0 siblings, 0 replies; 5+ messages in thread From: Xavier Maillard @ 2004-01-04 22:55 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 546 bytes --] * Quoting Lars Magne Ingebrigtsen <larsi@gnus.org>: > Xavier Maillard <zedek@gnu-rox.org> writes: > >> Do you mean duplicate the function ? > > No. Define a new function that calls that other function, and then > massage the buffer afterwards. Yes it is a solution but I *really* want to enhance my Emacs Lisp practice and so even if I will do your solution first, I secondly will try the advice thing (which is killing me :)). zeDek -- GnusFR (http://www.gnusfr.org) EmacsFR (http://www.emacsfr.org) .emacs: Because customisation is fun! [-- Attachment #2: Type: application/pgp-signature, Size: 188 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-01-04 22:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-01-04 17:58 [Q]: function `message-insert-disposition-notificatio-to` Xavier Maillard 2004-01-04 20:46 ` Lars Magne Ingebrigtsen 2004-01-04 21:02 ` Xavier Maillard 2004-01-04 21:07 ` Lars Magne Ingebrigtsen 2004-01-04 22:55 ` Xavier Maillard
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 NNTP newsgroup(s).