You are not logged in.
Hello,
I am using mutt with offlineimap, and I want a cronjob that automates it every five minutes. Right now, I type gm and it gets my mail. My crontab -e is as follow:
*/5 * * * * /home/soupy/.bin/mailrun.sh
mailrun.sh is as follows:
#!/bin/sh
PID=`pgrep offlineimap`
[ -n "$PID" ] && exit 1
offlineimap &
exit 0
It's executable and everything.
It doesn't sync sync it at all.
Last edited by Soupstuffs (2010-03-01 21:29:33)
Offline
If you run offlineimap manually it runs fine? Maybe it's a problem with your configuration file.
(lambda ())
Offline
I figured it out. I needed to put -u Noninteractive.Basic & after offlineimap in the mailrun file. Thanks!2
Offline