Running offlineimap from cron job – which environment variables are needed?

Profpatsch mail at profpatsch.de
Fri Feb 1 14:09:56 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again,

I’m still trying to run offlineimap from cron (better: fcron), but
since cron doesn’t set any environment variables except for HOME and
SHELL.
I get error messages without any clues what error occured, and it has
to be because of unset environment varibles because running it from
shell with the same options works just fine.

Try %env -i offlineimap -u ttyui for yourself and see if it works (env
- -i unsets the env varibles for that command).
It produces the same errors as the cronjob.

Errorlog:

OfflineIMAP 6.5.4
  Licensed under the GNU GPL v2+ (v2 or any later version)
Account sync Stuff:
 *** Processing account Stuff
 Establishing connection to sslmailpool.ispgateway.de:993
Account sync Privat:
 *** Processing account Privat
 Establishing connection to sslmailpool.ispgateway.de:993
Account sync Mail:
 *** Processing account Mail
 Establishing connection to sslmailpool.ispgateway.de:993
Account sync Stuff:
 ERROR: While attempting to sync account 'Stuff'

 *** Finished account 'Stuff' in 0:00
Account sync Privat:
 ERROR: While attempting to sync account 'Privat'

 *** Finished account 'Privat' in 0:00
Account sync Mail:
 ERROR: While attempting to sync account 'Mail'

 *** Finished account 'Mail' in 0:00
ERROR: Exceptions occurred during the run!
ERROR: While attempting to sync account 'Stuff'

ERROR: While attempting to sync account 'Privat'

ERROR: While attempting to sync account 'Mail'

~Profpatsch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRC8yyAAoJEMXP0IsiJHzfWkAP/2+dLfflVOSrqtU28/Wow9QC
cyrFkk0cpjdNhVWgAE/PZNQzJOwPZmudggU0Ud1t+inkkScpVjqjQgKBIzsTKIZ/
34QlmoNunoucrsVuT8OpKUBAXIiA6fSUGE3aqb1/1rLBLe8zwtgtlC+vQiJw20l9
kufdUm6u3OLprGX4y41CRXkwNUfxX7/GJHKJw8yCvi456EJwJB+hgo5iL1JwzNnr
gNVmcgcwllPw0AeoPUSymU9kqw/aPe2g1vE7UJQg7cORscyjAVhZRlFVNOwWTeau
EOVN2LWZlmW9drSsIzvelpsMp2AHBN2uUklu0vp0ErmFlt8lqEyTWJcYWmIrNzCD
WbY3Pe1vyb89XPJwFFRRmJuKfbIfOy7MVS2pzWAKjV9o6IMqTMQ2hpeYamloH4yW
AFGmhCBj+G8nqi8MW1VXvVHwmgSn9AEi7ZguCGVjeu+dX/FyMHMdnv0vRdkdfu2t
vOitlrxvcSEMc7f4/T+Drv0Lev2I09J5YT9YaBb4OA/S/o/lUucfKnZbUy3POWjN
qXZOJWs8ghITOyclgDLIbyeoePttz67SAxUPpaCBm/fkHBUuLGlxxtru5ns9fSYa
ErDkhzMuEi/ydxCBRYFIBKzlsxEzKgGNeJrbiL6WWiZlqaNzQ4ZS8BGE/kYyiXwq
aFlxfwzHowy3atlETXJK
=DoKt
-----END PGP SIGNATURE-----



More information about the OfflineIMAP-project mailing list