Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Vebjorn Ljosa <vebjorn@ljosa.com>
To: info-gnus-english@gnu.org
Subject: Re: nnmaildir fails to show new messages
Date: Fri, 09 Nov 2007 13:27:19 -0500	[thread overview]
Message-ID: <nq5ode3ff5k.fsf@gm3b6-dd5.broad.mit.edu> (raw)
In-Reply-To: <nq5ve8bpomo.fsf@gm3b6-dd5.broad.mit.edu>

Vebjorn Ljosa <vebjorn@ljosa.com> writes:
> The problem I am having is that gnus-group-get-new-news (g in the
> group buffer) does not cause new nnmaildir messages to appear in the
> summary buffer or to be included in the count in the group buffer.

I didn't find a direct solution, but I found a workaround: Instead of
having fetchmail and maildrop download, split, and deliver to the
maildirs, I now let Gnus handle it.  Gnus-group-get-new-news now works
as expected: Gnus contacts the IMAP server and downloads any new
messages.  (I simply use the IMAP server as a glorified POP server.)

In case it can be of use to anyone, here are the relevant parts of my
.gnus.el:

(setq gnus-select-method '(nnnil)
      gnus-secondary-select-methods
      '((nnmaildir "" 
	 (directory "~/.nnmaildir/")
	 (target-prefix "../maildirs/")
	 (expire-age never)
	 (get-new-mail t))
	(nntp "news.mit.edu"))
      gnus-message-archive-method "nnmaildir"
      gnus-message-archive-group "mail.sent"
      sendmail-program "/opt/local/bin/msmtp")

(setq mail-sources '((file)
		     (imap :server "imap.gmail.com" :port 993
		      :stream ssl
		      :user "vebjorn@ljosa.com"
		      :predicate "1:*"
		      :fetchflag "\\Seen \\Deleted")))

The only downside to this setup is that the message is not actually
deleted from Gmail, but put in the "All mail" folder.  Gmail would
actually delete it (which is what I want) if I moved it to Gmail's
"Trash" folder and then marked it as Deleted, but I don't know how to
make Gnus do that.

Vebjorn

      reply	other threads:[~2007-11-09 18:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-09 12:52 Vebjorn Ljosa
2007-11-09 18:27 ` Vebjorn Ljosa [this message]

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=nq5ode3ff5k.fsf@gm3b6-dd5.broad.mit.edu \
    --to=vebjorn@ljosa.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).