[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Agent in batch mode for imap
From: |
Julien Cubizolles |
Subject: |
Agent in batch mode for imap |
Date: |
Fri, 04 Jan 2013 10:08:26 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) |
I'm thinking of using the following setup, so that emacs isn't stuck
while gnus checks for new mail.
start gnus in unplugged mode
have a cron job run
--8<---------------cut here---------------start------------->8---
emacs -batch -l ~/.emacs -l ~/.gnus.el -f gnus-agent-batch >/dev/null 2>&1
--8<---------------cut here---------------end--------------->8---
Will a line like
--8<---------------cut here---------------start------------->8---
(gnus-demon-add-handler 'gnus-group-get-new-news 10 nil)
--8<---------------cut here---------------end--------------->8---
refresh the group buffer ?
I'm not sure about how moving and deleting messages from an imap server
with this setup. These aren't operations you can make while
unplugged and I will certainly have to plug the agent from time to
time. Won't there be a conflict between the moving/copying operations
and the fetch from the agent in batch mode ?
How are you using gnus-agent-batch with imap ?