From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/15556 Path: news.gmane.org!not-for-mail From: coroa@online.de (Jonas =?utf-8?Q?H=C3=B6rsch?=) Newsgroups: gmane.emacs.gnus.user Subject: Re: using local dovecot nnimap, gnus Group shows wrong counts and mail Date: Tue, 26 Jun 2012 12:04:00 +0200 Message-ID: <87ipeepey7.fsf@online.de> References: <311e5ada-6cd5-4cac-8042-4318cc8dc5a3@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340705081 30328 80.91.229.3 (26 Jun 2012 10:04:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2012 10:04:41 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Tue Jun 26 12:04:38 2012 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SjSdQ-0004ZB-0I for gegu-info-gnus-english@m.gmane.org; Tue, 26 Jun 2012 12:04:36 +0200 Original-Received: from localhost ([::1]:57467 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjSdP-0003ME-Gm for gegu-info-gnus-english@m.gmane.org; Tue, 26 Jun 2012 06:04:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjSdE-0003M3-Mc for info-gnus-english@gnu.org; Tue, 26 Jun 2012 06:04:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SjSd9-0000u2-Je for info-gnus-english@gnu.org; Tue, 26 Jun 2012 06:04:24 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:52227) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SjSd9-0000ts-Cb for info-gnus-english@gnu.org; Tue, 26 Jun 2012 06:04:19 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SjSd5-00048u-83 for info-gnus-english@gnu.org; Tue, 26 Jun 2012 12:04:15 +0200 Original-Received: from dslb-178-008-134-217.pools.arcor-ip.net ([178.8.134.217]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Jun 2012 12:04:15 +0200 Original-Received: from coroa by dslb-178-008-134-217.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Jun 2012 12:04:15 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 55 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: dslb-178-008-134-217.pools.arcor-ip.net User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:56NFbRH6KogNFqAORpf34MOYgxk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 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-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:15556 Archived-At: On Sat, Jun 23 2012, myles wrote: > (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")) i guess, in your setup the nnimap-shell-program specification is not used at all, because you're telling gnus to connect via the network to the listening dovecot server instead of starting it by shell. (if it was connecting by shell/pipe, you would not be asked for authentication, as you're starting it by yourself) to do what you meant to do, you might try to use: (setq gnus-secondary-select-methods '((nnimap "gmailOne" (nnimap-stream shell) (nnimap-shell-program "MAIL=maildir:/home/myles/Maildir/gmailOne /usr/lib/dovecot/imap")))) the only remaining problem is, that dovecot 2.x doesn't pay respect to the MAIL environment variable anymore, but rather just uses the setting mail_location in its configuration (at least in my install), which you can test f.ex. by python the only remaining problem is, that dovecot 2.x doesn't pay respect to the MAIL environment variable anymore, but rather just uses the setting mail_location in its configuration (at least in my install), which you can test f.ex. by python import imaplib print("\n".join(imaplib.IMAP4_stream("MAIL=maildir:/home/myles/Maildir/gmailOne /usr/lib/dovecot/imap").list()[1])) will list the directories which imap shows. perhaps there is another environment variable which does what you want, i don't know. alternatively you could just use one global maildir and have you're different accounts as subdirectories. judging by [1], this might be possible by just renaming them to .gmailOne and .gmailTwo . well, good luck, jonas Footnotes: [1] http://wiki2.dovecot.org/MailLocation