[horde] How to cron the fetch mail function in imp ?

Luis Felipe Marzagao lfbm.andamentos at gmail.com
Fri Nov 14 12:12:15 UTC 2008


Sure, that's what I do.

First of all, I strongly recommend getmail instead of fetchmail. Way better.

The getmail configuration is quite simple, you simply create a file 
called getmailrc under the user home folder /home/user/.getmail/ and 
edit this file, for example:

[retriever]
type = SimplePOP3SSLRetriever
server = pop.gmail.com
port = 995
username = user at mydomain.com.br
password = blablabla

[destination]
type = Maildir
path = ~/Maildir/

[options]
verbose = 2
message_log = ~/.getmail/gmail.log
read_all = false
delete_after = 2

Then, with a simple "crontab -e" (while logged as the regular user), you 
will be able to create the cron job, for example:

*/5 8-23 * * * /usr/bin/getmail --quiet

This will download messages every 5 minutes, every day, from 8 to 23hs.

Cheers


Christian Leicht escreveu:
> Hello Luis,
>
> sorry for me very late response.
> I still have no solution to grab/fetch an external pop account to my 
> horde/imap installation.
>
> In horde i can setup a Fetch Mail function in the Mail options dialog. 
> Then it should download on every Login on horde the mail from this 
> externel pop account to a Folder of my Imap account. But it doesent 
> work. I like to do this function via a crontab every 10 minutes, that 
> a can use this fetchmail function without login to horde.
>
> Is there any chance to do this?
>
> Thanks for help, an best regards
>
> Christian
>
> Link to a Screenshot: http://www.leicht.info/fileadmin/horde-fetch.jpg
>
> Luis Felipe Marzagao/Andamentos schrieb:
>> What function, you mean the Fetchmail function? I think it only works 
>> when you actually click on "Fetch Mail". But I´m not sure.
>>
>> schani escreveu:
>>> Then the horde integraded function is a dummy?
>>>
>>> Luis Felipe Marzagao/Andamentos schrieb:
>>>> No, getmail is purely text configurated. But it´s really easy. Just 
>>>> read the FAQ in their page and off you go. All I can say is that I 
>>>> was really disapointed with fetchmail and getmail is being used in 
>>>> my production environment very well.
>>>>
>>>> schani escreveu:
>>>>> If i use getmail, can i set it up in horde webinterface?
>>>>>
>>>>> Christian
>>>>>
>>>>> Luis Felipe Marzagao/Andamentos schrieb:
>>>>>> I think you would have to use either fetchmail or getmail (which 
>>>>>> is better) along with a cron set.
>>>>>>
>>>>>> Christian Leicht escreveu:
>>>>>>> Hello, i have to do a fetch function in a imp IMAP account. I 
>>>>>>> can set it up in horde but no mail is downloaded from a externel 
>>>>>>> pop server.
>>>>>>> Can i use a crontab to do this ever 5 Minutes?
>>>>>>>
>>>>>>> Thanks for help
>>>>>>>
>>>>>>> Christian
>>>>>>> -- 
>>>>>>> Horde mailing list - Join the hunt: 
>>>>>>> http://horde.org/bounties/#horde
>>>>>>> Frequently Asked Questions: http://horde.org/faq/
>>>>>>> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>>>>>
>>>
>



More information about the horde mailing list