airsyncDownload

Email

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Available as/for:
Description:
This little tool downloads your emails from
an Exchange Server and stores them in a local mbox file.
Optionally the mails can be kept on the server.

It uses the Exchange ActiveSync protocol.
See http://en.wikipedia.org/wiki/Airsync

configuration: see airsyncDownload --help
Last changelog:

17.06.2018: 1.5

Ported to Qt5 and wbxml 0.11.5


Ratings & Comments

9 Comments

jerome127

My linux distro upgraded libwbxml from 0.9.2 to 0.11.2 and airsyndownload stopped compiling (complaining about class WBXMLTree). If course I locally compiled the old version of the lib so that I can still use airsyncdownload, but if could find some time it would be great if you could update your code to compile against current version of the lib. Thanks!

jerome127

I use airsyndownload in a script that I run in the terminal. What still prevents me to add it in crontab is that the connection sometimes hangs (for unknown reasons ; it's not frequent so hard to test). I do not usually run airsyncdownload in --debug so I just face a hanged xterm with two options: either press ctrl-C (but the longer process time might be legitimate if it was slowly downloading an unusually large number of sizable attachments) or wait for a bit longer and face the same dilemma. What I could see until now is that after pressing ctrl-C, the next instance that I run manually works very fast as usual. So to me this means some packet got lost on the network and airsyncdownload would wait for it infinitely. The possibility of a hanged process (with an opened or locked mbox file on the disk which might cause problems at the next automatic execution) refrains me from executing airsyndownload without human supervision, which would be my goal -- automatically checking for emails as I do for regular POP/IMAP servers using getmail/procmail. Therefore I would like to know if there is a timeout that guarantees that airsyncdownload will actually terminate on connection problems (so I can set MAILCHECK or cron periodicity to a value strictly larger than the timeout), or if there could be a timeout in a future version. Thanks for your attention.

mkoller

When it blocks/hangs - does it ever come back with any error ? I've now added an additional handling when Qt sends me an error signal but without a finished() signal (but I don't know if that is even possible)...please test with the latest version 1.3 I've now uploaded. If that still does not solve your issue, then I might need to implement a timer which forces an abort of the communication.

jerome127

I don't remember of specific errors, I think I always I stopped it after 5 min of inactivity. I'll use version 1.3 from now on, however it can take days before this problem appears again (if it ever does). If I see anything I'll let you know. Thanks for the very fast support.

jerome127

Hello, thanks for this tool, it works great for me, or at least it worked great until recently :-( One day the IT team at my place added one server for redundancy and when the second server is enabled then airsyncdownload does not work. This is reproducible. I had the IT guy just next to me, switching on and off the additional server from the web administration page of their Exchange 2013 setup. When the additional server is active, here is an example output : $ airsyncDownload --allFolders --debug [... I removed the long query ... ] sent ... received ... HTTP result code: 0 ERROR:SSL handshake failed https://webmail.XXXXXXX/Microsoft-Server-ActiveSync?User=YYYYYYYYYYYYYYY&DeviceId=8adff2aa57c5419ea93a5ba1e4a7bfa2&DeviceType=SP&Cmd=Provision ERROR: could not parse XML data (XXXX and YYYY edited by me) Meanwhile ExQuilla (proprietary Thunderbird extension) on the same linux computer works without trouble in all cases. Do you have suggestions for this? I'm available for tests if needed.

mkoller

The error tells you that the connection could not be established because of SSL errors, e.g. illegal certificates, etc. I've uploaded a newer version where I dump the SSL errors in detail (always the first and with -debug all of them) but also in addition I always ignore SSL errors so the download should continue but you should really check the SSL errors.

jerome127

Thanks for the update, airsyndownload 1.2 works for me. Just for your information the SLL error follows. (in --debug) Quote:

sent ... SSL Error:%sThe issuer certificate of a locally looked up certificate could not be found SSL Error:%sThe root CA certificate is not trusted for this purpose SSL Error:%sNo certificates could be verified received ...

acidrums4

Got this when compiling: Session.cxx:21:19: error fatal: wbxml.h: File or directory not found What package I'm missing? I'm trying under Gentoo GNU/Linux.

mkoller

The READE tells you you'll need libwbxml2 http://libwbxml.opensync.org/ You normally need to install the development package of it, e.g. here on my openSuse it is libwbxml2-devel

Pling
0 Affiliates
Details
license GPLv3
version 1.5
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

Other Email:

Gemini
intellegit
last update date: 20 years ago

Score 4.4

ExMailChecker
haymant
last update date: 21 years ago

Score 5.0

LHMail
iwaszlefthand
last update date: 20 years ago

Score 5.0

KMailApplet
ichigo663
last update date: 9 years ago

Score 5.0

E-mail Notifier
ymget
last update date: 14 years ago

Score 5.7

FastMail
sophyn
last update date: 19 years ago

Score 5.0



System Tags