[Users] linux: cron/at based fetch
Andrzej A. Filip
andrzej.filip at gmail.com
Tue Jan 3 19:50:28 CET 2017
Nick Koretsky <nick_koretsky at ukr.net> wrote:
> 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.
I use IMAP based email accounts. fetchmail is very good for POP3 accounts.
>> 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