info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using local dovecot nnimap, gnus Group shows wrong counts and mail


From: myles
Subject: using local dovecot nnimap, gnus Group shows wrong counts and mail
Date: Fri, 22 Jun 2012 18:39:36 -0700 (PDT)
User-agent: G2/1.0

Hi,

I have been using emacs23 and gnus with a local dovecot server but there are
problems with emacs24.1, both with the built-in and git gnus.

On the dovecot server I have gmailOne, anotherGmail, and one another.  I am
trying to use gmailOne and anotherGmail from gnus using this set up:

(setq debug-on-error t)
;; we are only using email
(setq gnus-nntp-server nil
      gnus-read-active-file nil
      gnus-save-newsrc-file nil
      gnus-read-newsrc-file nil
      gnus-check-new-newsgroups nil)

(setq nnimap-record-commands t)

(setq gnus-select-method '(nntp "news.gnus.org"))

(setq gnus-secondary-select-methods
      '((nnimap "gmailOne"
                (nnimap-address "localhost")
                (nnimap-user gmailOne)
                (nnimap-stream network)
;;              (nnimap-authinfo-file "/home/myles/.authinfoGMAILONE")
                ;;(nnimap-authenticator login)
                (nnimap-shell-program 
"MAIL=maildir:/home/myles/Maildir/gmailOne /usr/lib/dovecot/imap"))
        (nnimap "anotherGmail"
                (nnimap-address "localhost")
                (nnimap-user anotherGmail)
                (nnimap-stream network)
;;              (nnimap-authinfo-file "/home/myles/.authinfoANOTHERGMAIL")
                ;;(nnimap-authenticator login)
                (nnimap-shell-program 
"MAIL=maildir:/home/myles/Maildir/anotherGmail /usr/lib/dovecot/imap"))))

The problem is that when a group is selected in *Group* buffer, the INBOX
changes to be that of one of the other dovecot accounts

The steps I do are:

$ rm ~/.newsr* ~/.authinfo
- start emacs
- M-x gnus
- prompts for "IMAP password for gmailOne@localhost:"
- I enter the password
- the dovecot log shows that it connects ok including 
mail=maildir:/home/myles/Maildir/gmailOne
- prompts for "IMAP password for anotherGmail@localhost:"
- I enter the password
- the dovecot log shows that it connects ok including 
mail=maildir:/home/myles/Maildir/anotherGmail
- in the *Group* buffer
- press g
- Shows:       1: nndraft:drafts   (which is correct)
- press A A
- scrolldown to "   *: nnimap+gmailOne:INBOX " and press u
- shows     3437: nnimap+gmailOne:INBOX (which is correct)
- scrolldown to "   *: nnimap+anotherGmail:INBOX " and press u
- shows     12: nnimap+anotherGmail:INBOX             (which is correct)
- press g
- shows:
       1: nndraft:drafts
    3857: nnimap+gmailOne:INBOX
    3416: nnimap+anotherGmail:INBOX

Which is wrong number of messages.

Going up to *Gnus Browse Server* (pressing ^) and then into the servers
individually, initially shows the correct number of messages, e.g. in
"{nnimap:anotherGmail} (opened) (agent)"

K      0: Drafts
      12: INBOX
K      0: Queue
K      0: Sent
K      0: Trash

But then pressing RTN on the INBOX gives the prompt:

How many articles from INBOX (3416 default), which is wrong again.

Looking in these groups with the wrong article counts show messages that
should be in other groups (i.e. in the other gmail [and non gmail] accounts).

The buffer *imap log* shows this (where the mailbox with the orgmode mailing 
list folder
is the gmailOne acc.):

02:02:08 [localhost] (inhibited)
02:02:08 [localhost] 2 ENABLE QRESYNC
02:02:08 [localhost] 3 LIST "" "*"
02:02:08 [localhost] 4 EXAMINE "Trash"
02:02:08 [localhost] 5 EXAMINE "dolfin"
02:02:08 [localhost] 6 EXAMINE "Sent"
02:02:08 [localhost] 7 EXAMINE "Queue"
02:02:08 [localhost] 8 EXAMINE "aur-general"
02:02:08 [localhost] 9 EXAMINE "Drafts"
02:02:08 [localhost] 10 EXAMINE "orgmode"
02:02:08 [localhost] 11 EXAMINE "INBOX"
02:02:11 [localhost] (inhibited)
02:02:11 [localhost] 13 ENABLE QRESYNC
02:02:11 [localhost] 14 LIST "" "*"
02:02:11 [localhost] 15 EXAMINE "Trash"
02:02:11 [localhost] 16 EXAMINE "Sent"
02:02:11 [localhost] 17 EXAMINE "Queue"
02:02:11 [localhost] 18 EXAMINE "Drafts"
02:02:11 [localhost] 19 EXAMINE "INBOX"
02:03:15 [localhost] 20 LIST "" "*"
02:03:15 [localhost] 21 EXAMINE "Trash"
02:03:15 [localhost] 22 EXAMINE "dolfin"
02:03:15 [localhost] 23 EXAMINE "Sent"
02:03:15 [localhost] 24 EXAMINE "Queue"
02:03:15 [localhost] 25 EXAMINE "aur-general"
02:03:15 [localhost] 26 EXAMINE "Drafts"
02:03:15 [localhost] 27 EXAMINE "orgmode"
02:03:15 [localhost] 28 EXAMINE "INBOX"
02:03:15 [localhost] 29 LIST "" "*"
02:03:15 [localhost] 30 EXAMINE "Trash"
02:03:15 [localhost] 31 EXAMINE "Sent"
02:03:15 [localhost] 32 EXAMINE "Queue"
02:03:15 [localhost] 33 EXAMINE "Drafts"
02:03:15 [localhost] 34 EXAMINE "INBOX"
02:05:55 [localhost] 35 SELECT "INBOX"
02:05:55 [localhost] 36 UID FETCH 1:* FLAGS
02:05:55 [localhost] 37 SELECT "INBOX"
02:05:55 [localhost] 38 UID FETCH 1:* FLAGS
02:16:52 [localhost] 39 NOOP
02:16:52 [localhost] 40 NOOP
02:30:35 [localhost] 41 LIST "" "*"
02:30:35 [localhost] 42 EXAMINE "Trash"
02:30:35 [localhost] 43 EXAMINE "Sent"
02:30:35 [localhost] 44 EXAMINE "Queue"
02:30:35 [localhost] 45 EXAMINE "Drafts"
02:30:35 [localhost] 46 EXAMINE "INBOX"
02:30:45 [localhost] 47 SELECT "INBOX"
02:31:52 [localhost] 48 NOOP

How can I get gnus to behave as expected, with the correct mailbox contents?  
Connecting to dovecot works fine with claws-mail but gnus is embedded in my 
daily work and I can't do without it.

Thanks,
Myles


reply via email to

[Prev in Thread] Current Thread [Next in Thread]