For me, it works even if I have an existing message buffer open. You can even put the following at the end of your .mailrc, to make the rebuilding happen automatically when you save the file.
# Local Variables: # mode: fundamental # comment-start: "# " # local-write-file-hooks: (list (lambda () (rebuild-mail-abbrevs (concat (getenv "HOME") "/.mailrc")) nil)) # End: Dan On Nov 8, 2016, Rainer M Krug <[email protected]> wrote: > Thanks. > > Works perfectly. For testing purposes: if the message buffer is open, > the aliases seem to have been read already, and changes in .mailrc with > followed reloading don't seem to have any impact. So: after reloading, > one has to open a new message to test the alias. > > Thanks a lot, > > Rainer > > Dan Christensen <[email protected]> writes: > >> Gnus can parse a ~/.mailrc file containing mail aliases such as: >> >> alias groupname "Person One <p1@address>, Person Two <p2@address>" >> >> Then, if you type groupname in a header, followed by a space or >> punctuation character, it should complete. >> >> You need to restart Gnus or run >> >> (rebuild-mail-abbrevs (concat (getenv "HOME") "/.mailrc") >> >> after editing .mailrc in order for Gnus to know about your changes. >> >> Dan _______________________________________________ info-gnus-english mailing list [email protected] https://lists.gnu.org/mailman/listinfo/info-gnus-english
