Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Arkady Grudzinsky <agrudzinsky@gmail.com>
To: info-gnus-english@gnu.org
Subject: Re: Dynamically switching gnus-message-archive-group?
Date: Fri, 23 Sep 2016 14:12:39 -0700	[thread overview]
Message-ID: <s5oponutj5k.fsf@avnera.com> (raw)
In-Reply-To: <877fa3m7fi.fsf@hornfels.zedat.fu-berlin.de>

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.

-- 
Arkady



  parent reply	other threads:[~2016-09-23 21:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-23  6:55 Loris Bennett
2016-09-23  9:03 ` Rasmus
2016-09-23 21:12 ` Arkady Grudzinsky [this message]
     [not found] ` <mailman.2924.1474665188.22741.info-gnus-english@gnu.org>
2016-09-27  8:04   ` Loris Bennett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5oponutj5k.fsf@avnera.com \
    --to=agrudzinsky@gmail.com \
    --cc=info-gnus-english@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).