[Users] linux: cron/at based fetch

Nick Koretsky nick_koretsky at ukr.net
Tue Jan 3 18:38:48 CET 2017


On Tue, 03 Jan 2017 10:53:05 +0100 
 "Andrzej A. Filip" <andrzej.filip at gmail.com> wrote:

> >> Is it possible to use claws-mail for cron/at scheduled fetches?
> >> 
> >> "claws-mail --receive" executed by "at" produced "cannot open
> >> display" error.  
> >
> > It should not need $DISPLAY if it is already running. If it is not,
> > running claws-mail --receive would start it.
> >
> > What you could do is something like
> >
> > pidof claws-mail > /dev/null && claws-mail --receive  
> 
> I need to download new  mail even if claws-mail is not started.
> I _would like_ it to work even if user isn't logged-in (X/graphic
> session).

Why? It seems you are trying to use the wrong tool... 99.9% chance that a
correct tool you should use is fetchmail.

> 
> As the last resort the solutions may start claws-mail in existing
> X-windows session of the user.
> 




-- 
  Nick Koretsky (nick.koretsky at gmail.com)
  



More information about the Users mailing list