[Users] linux: cron/at based fetch

Andrzej A. Filip andrzej.filip at gmail.com
Tue Jan 3 10:53:05 CET 2017


Colin Leroy <colin at colino.net> wrote:
> On Tue, 03 Jan 2017 09:22:17 +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).

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

-- 
A. Filip



More information about the Users mailing list