]> git.cworth.org Git - notmuch-wiki/blobdiff - emacstips.mdwn
Show the defadvice to overwrite the sender address.
[notmuch-wiki] / emacstips.mdwn
index 7724e0bd13e1fa5ac938830b2c517321120690e6..c290192b7d2e8bd1ebd00f0a253a77d8ff8c9b51 100644 (file)
@@ -133,6 +133,16 @@ to your .emacs file.
 
 # Advanced tips and tweaks
 
+## Overwriting the sender address
+
+If you want to always use the same sender address, then the following
+defadvice can help you.
+
+       (defadvice notmuch-mua-reply (around notmuch-fix-sender)
+         (let ((sender "Max Monster <max.monster@example.com>"))
+           ad-do-it))
+       (ad-activate 'notmuch-mua-reply)
+
 ## Initial cursor position in notmuch 0.15 hello window
 
 In notmuch version 0.15 emacs client the handling of cursor position in