From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18385 Path: news.gmane.org!.POSTED!not-for-mail From: "Loris Bennett" Newsgroups: gmane.emacs.gnus.user Subject: Re: Dynamically switching gnus-message-archive-group? Date: Tue, 27 Sep 2016 10:04:27 +0200 Organization: Freie Universitaet Berlin Message-ID: <87oa39rcok.fsf@hornfels.zedat.fu-berlin.de> References: <877fa3m7fi.fsf@hornfels.zedat.fu-berlin.de> 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 1474963518 26873 195.159.176.226 (27 Sep 2016 08:05:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 08:05:18 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (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 Sep 27 10:05:14 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 1bonO6-0006QN-2A for gegu-info-gnus-english@m.gmane.org; Tue, 27 Sep 2016 10:05:14 +0200 Original-Received: from localhost ([::1]:48630 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bonO4-0001UU-FV for gegu-info-gnus-english@m.gmane.org; Tue, 27 Sep 2016 04:05:12 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 52 Original-X-Trace: news.uni-berlin.de nn0MsuYDiXCmF1o4nrc9sguA85biJKmwA8wICZdj6njifU Cancel-Lock: sha1:pErhfOGJ6OPvQGUf2/jA1hwlHC4= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:89498 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:18385 Archived-At: Arkady Grudzinsky writes: > On Fri, Sep 23 2016, Loris Bennett wrote: > >> Hi, >> >> If I have two IMAP accounts, each on a different server, is there a way >> to switch >> >> gnus-message-archive-group >> >> such that it depends on, say, the 'from'-address of the current >> gnus-posting-style? > > Whatever you specify under your imap account pertains to that > account only: > > (setq gnus-secondary-select-methods > '( > (nnimap "imap1" > (nnimap-address "imaps.server1.com") > ... > (gnus-message-archive-group "Archive") > ... > ) > (nnimap "imap2" > (nnimap-address "imaps.server2.com") > ... > (gnus-message-archive-group "Archive") > ) > > In this example, mail sent from the first account will go to > nnimap+imap1:Archive and mail sent from the second account will > go to nnimap+imap2:Archive. This worked for me when I used Gnus > with two remote imap servers. > > Gcc also controls where your sent mail is saved. This can be > sent per group or globally in your .gnus > > https://www.emacswiki.org/emacs/SentMail > > gcc-self can be of interest. Thanks for the information. I have gone for the solution using gnus-message-archive-group, which works well for me. Cheers, Loris -- This signature is currently under construction.