unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Deus Max <deusmax@gmx.com>
Cc: "Basil L. Contovounesios" <contovob@tcd.ie>, 35270@debbugs.gnu.org
Subject: bug#35270: 27.0.50; gnus nnimap weird interaction between select methods
Date: Sun, 28 Apr 2019 09:17:53 -0700	[thread overview]
Message-ID: <87zhoahzny.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87o94tgfn9.fsf@aia00054aia.gr> (Deus Max's message of "Fri, 26 Apr 2019 14:38:50 +0300")

Deus Max <deusmax@gmx.com> writes:

> On Wed, Apr 24 2019, Deus Max wrote:
>
>> On Tue, Apr 23 2019, Eric Abrahamsen wrote:
>>
>>>
>>> You might as well get rid of this too, as it's no longer used.
>>>
>>> The only other thing I can think of is setting `gnus-verbose' to 10 and
>>> showing us all the messages: that will at least tell you a little bit
>>> more about what Gnus thinks it's doing.
>>>
>>> Eric
>>
>> Great advice, thank you. I'll get rid of all the unnecessary stuff, as
>> you suggest and re-run with gnus-verbose 10 !
>> I'm curious to see the outcome !
>
> Well that was interesting !
>
> The first surprise was when setting setting gnus-verbose and
> gnus-verbose-backend, then running "M-x gnus", barely made a difference
> to the amount of messages displayed !
>
>
> After a few trials of tinkering with the customize variables, where
> sometimes everything just worked and others back to square 1, the
> culprit was identified as variable gnus-message-archive-method set to
> '(nnimap "gmx").
>
> Probably, having the gmx as the "primary" imap selection
> (gnus-select-method) resulted in some interaction making the gmx groups
> appear both as nnimap+gmx:Group and as plain Group (default).

Right -- I think Gnus was trying to make a *new* server out of '(nnimap
"gmx"), which then sort of conflicts with your existing nnimap+gmx
server.

> Apparently, I don't understand well enough how the variables
> gnus-message-archive-group and gnus-message-archive-method are supposed
> to work.
> Basically, since I use nnimap, when composing a new
> message I don't want to see Gcc set to a nnfolder+archive group, but set
> the current imap group. The following values now seem to work:
>     : '(gnus-message-archive-group '(lambda (grp) (if grp gnus-newsgroup-name "Send-Mail")))
>     : '(gnus-message-archive-method "nnimap")

Here's my understanding:

You can use archive-method and archive-group together, in which case
archive-group is understood to return a group name that exists on
archive-method. _Alternately_, archive-group can return a fully
qualified group name, in your case "nnimap+gmx:Send-Mail", in which case
archive-method will be completely ignored, and you don't need to set it
at all.

In your case, that's the easiest solution. If you really want to set
both options, I think you'd have to try harder to make sure that
archive-method matched your "real" nnimap+gmx server, ie they should
pass `gnus-server-equal'.

But like I said, that's unnecessary if archive-group returns a full
group name.

Eric





  reply	other threads:[~2019-04-28 16:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-14 13:09 bug#35270: 27.0.50; gnus nnimap weird interaction between select methods Deus Max
2019-04-14 15:34 ` Basil L. Contovounesios
2019-04-14 20:34   ` Deus Max
2019-04-22 16:38     ` Eric Abrahamsen
2019-04-22 20:20       ` Deus Max
2019-04-23 22:38         ` Eric Abrahamsen
2019-04-24 18:09           ` Deus Max
2019-04-26 11:38             ` Deus Max
2019-04-28 16:17               ` Eric Abrahamsen [this message]
2019-04-29 21:57                 ` Deus Max
2019-04-30 20:48                   ` Eric Abrahamsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87zhoahzny.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=35270@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    --cc=deusmax@gmx.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).