From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William G. Gardella Newsgroups: gmane.emacs.help Subject: Re: Gnus does not see new mail in Maildirs Date: Fri, 29 Nov 2013 21:09:43 +0000 Message-ID: <87iovac3u0.fsf@motoko.kusanagi> References: <5b6911644bf8063cf44102cc440f08fd@mailoo.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385759433 21036 80.91.229.3 (29 Nov 2013 21:10:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Nov 2013 21:10:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 29 22:10:38 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VmVKg-0000q3-27 for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Nov 2013 22:10:38 +0100 Original-Received: from localhost ([::1]:49452 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmVKf-00019O-Ie for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Nov 2013 16:10:37 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmVKF-000195-Hl for help-gnu-emacs@gnu.org; Fri, 29 Nov 2013 16:10:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmVK9-0004nh-Bu for help-gnu-emacs@gnu.org; Fri, 29 Nov 2013 16:10:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:52153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmVK9-0004ma-5Z for help-gnu-emacs@gnu.org; Fri, 29 Nov 2013 16:10:05 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VmVK8-0000M0-A7 for help-gnu-emacs@gnu.org; Fri, 29 Nov 2013 22:10:04 +0100 Original-Received: from wannabe.torservers.net ([96.47.226.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Nov 2013 22:10:04 +0100 Original-Received: from wgg2 by wannabe.torservers.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Nov 2013 22:10:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: wannabe.torservers.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:5R6No5C649ejCO5jCaeOcjkJq9A= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94726 Archived-At: Alexis Praga writes: > Hi, > > When fetching new mails with 'g', Gnus does not see the new mail in my > inbox and I have to restart it in order to show them. > New mail arrive in ~/Mail/inbox/new and Gnus moves it automatically to > ~/Mail/inbox/cur. > Also, the 'inbox' group disappears when fetch new mail ! > Here's my config : > > (setq > gnus-select-method '(nnmaildir "" (directory "~/Mail/")) > mail-sources '((maildir :path "~/Mail/inbox/" :subdirs ("cur" > "new"))) > ) > If your MTA is delivering mail directly to your maildir, you should not also be using the same Maildir as `mail-sources'. This will cause Gnus to process the mail twice, with potentially inconsistent results. As noted in the Info documentation: > Do _not_ use the same maildir both in `mail-sources' and as an > `nnmaildir' group. The results might happen to be useful, but that > would be by chance, not by design, and the results might be different > in the future. (info "(gnus) Maildir") If the MTA is delivering mail directly to the maildir at ~/Mail/, you only need the following: (setq gnus-select-method '(nnmaildir "" (directory "~/Maildir/") (get-new-mail nil))) `mail-sources' should also be nil. This variable is only useful when you want Gnus to "pull" the mail from some location, such as an mbox, pop server, or Maildir at a remote site or elsewhere on the system; it should not be used when the mail is "pushed" directly to the very same location where Gnus is storing it. > (setq gnus-message-archive-group "nnmaildir+inbox:Sent/cur") is also a bit odd. You're telling it to use the nnmaildir server "inbox", which in your config doesn't exist, and you're also telling it to use a specific subdir inside the maildir, rather than the maildir itself. I would rewrite this part of your config as (setq gnus-message-archive-method gnus-select-method gnus-message-archive-group "Sent") This is very close to the config I use myself and I love it, so I hope this advice helps.