[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Agent in batch mode for imap
From: |
Julien Cubizolles |
Subject: |
Re: Agent in batch mode for imap |
Date: |
Fri, 04 Jan 2013 15:41:25 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
Julien Cubizolles <j.cubizolles@free.fr> writes:
> start gnus in unplugged mode
> have a cron job run
>
> emacs -batch -l ~/.emacs -l ~/.gnus.el -f gnus-agent-batch >/dev/null 2>&1
A previous problem of mine comes in full force when using this setupĀ :
every unread mail gets a *new* duplicate in the nnimap summary buffer
every time the agent fetchs. With gnus-agent-batch running every 15
minutes, I had 8 copies of each unread message appearing in 2
hours... Plugging the agent and running M-g removes all those duplicates
but gnus-agent-batch can't really be a solution as long as this problem
remains.
Here are the methods definitions in .gnus.el
--8<---------------cut here---------------start------------->8---
(setq gnus-select-method
'(nnml "local"))
(setq gnus-secondary-select-methods
'(
(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-stream ssl)
(nnir-search-engine imap))
(nnimap "free"
(nnimap-address "imap.free.fr")
(nnimap-unsplittable-articles (%Deleted %Seen))
(nnir-search-engine imap)
(nnimap-split-methods default)
(nnimap-inbox "INBOX")
)
(nntp "news.free.fr")
(nntp "news.gwene.org"
(nnir-search-engine gmane))
(nntp "news.gmane.org"
(nnir-search-engine gmane))
)
)
--8<---------------cut here---------------end--------------->8---
Could anyone happy with gnus-agent-batch with an imap server post his
configurationĀ ?
Julien.