From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18452 Path: news.gmane.org!.POSTED!not-for-mail From: Dan Christensen Newsgroups: gmane.emacs.gnus.user Subject: Re: Define "Group" of mail recipients in Gnus? Date: Tue, 08 Nov 2016 16:58:30 -0500 Message-ID: <87vavxk515.fsf@uwo.ca> References: <87lgwukzub.fsf@ram.bvr.dp.lan> <87bmxqm6p8.fsf@uwo.ca> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1478642386 19519 195.159.176.226 (8 Nov 2016 21:59:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 8 Nov 2016 21:59:46 +0000 (UTC) User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.3 (gnu/linux) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Nov 08 22:59:42 2016 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c4EQP-0002I2-80 for gegu-info-gnus-english@m.gmane.org; Tue, 08 Nov 2016 22:59:25 +0100 Original-Received: from localhost ([::1]:35722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4EQS-0006V3-50 for gegu-info-gnus-english@m.gmane.org; Tue, 08 Nov 2016 16:59:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35471) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4EQP-0006Ux-88 for info-gnus-english@gnu.org; Tue, 08 Nov 2016 16:59:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4EQM-0003ji-6u for info-gnus-english@gnu.org; Tue, 08 Nov 2016 16:59:25 -0500 Original-Received: from [195.159.176.226] (port=59615 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4EQL-0003jY-WB for info-gnus-english@gnu.org; Tue, 08 Nov 2016 16:59:22 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1c4EPu-00077K-Br for info-gnus-english@gnu.org; Tue, 08 Nov 2016 22:58:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: info-gnus-english@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@blaine.gmane.org Mail-Copies-To: never Cancel-Lock: sha1:wqXUbCOqn0bHa394jWi1vur93SQ= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18452 Archived-At: 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 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 writes: > >> Gnus can parse a ~/.mailrc file containing mail aliases such as: >> >> alias groupname "Person One , Person Two " >> >> 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