<<< Date Index >>>     <<< Thread Index >>>

Re: running fetchmail from mutt in the background



Thus spake Farhan Ahmed on Mon, May 01, 2006 at 10:13:41AM +0530 or 
thereabouts: <farhanahmed06@xxxxxxxxx> [2006-05-01 01:47]:
> cga2000 wrote:
> > (snip)
> > 
> > I got rid of the '&' and everything works fine but I was wondering if
> > there was any way I could run fetchmail on demand in the background.
> > 
> 
> the daemon option of fetchmail?
> 

I was thinking that. I believe I read somewhere (likely in the fetchmail
man page) that if you issue a fetchmail command from a shell this wakes 
up any daemon instance of fetchmail that might be running in the 
background and cause it to fetch your mail immediately.

iow, I could set the daemon to poll my pop servers every 10 minutes, for
instance, and whenever I need fetchmail to do his thing immediately w/o
waiting for his timer to expire, I could cause mutt to run a simple
fetchmail command.

The difficulty might be that I don't know if the fetchmail daemon can
be made to invoke procmail directly the way I currently do it via my
.muttrc command.

I wonder if anyone has done this on a debian system via the fetchmail
script in /etc/init.d/..? 

I had a look at the script the other day and for someone not all that 
familiar with the debian bootup scripts it's unclear what it does 
and how you're supposed to modify it. 

Naturally, I could setup a cron job but I'd much rather use the
runlevel job, if I can. 

Thanks, confirms my impression I probably need to go the daemon way..

cga