Page 5 of 7 FirstFirst 1234567 LastLast
Results 41 to 50 of 65
Discuss Microsoft Exchange email access without IMAP through Python...help needed! at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; orion007: I am working on it, but the going is slow. The POP server is ...
  1. #41
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    orion007: I am working on it, but the going is slow. The POP server is still pretty unstable on its own, so I've been targeting that primarily. The Forms version is a lower, but important, priority. If anyone out there wants to contribute to getting Forms working, I'd be happy to incorporate the code into the next release.

    Most of my effort has actually been put on getting away from POP all together in favor of IMAP. POP's just a pain, but IMAP's much more difficult to implement. I have a working version on my Mac, but it requires the Twisted libraries which I can't get compiled for the iPhone.


  2. #42
    Newbie Array

    Join Date
    Sep 2007
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default ActiveSync support

    Hey all,

    I thought I'd have a go at adding full AirSync (ActiveSync) support to this project. The protocol is far more efficient than scraping OWA, and pretty straighforward to understand/parse, but I've decided not to continue for now mainly due to the wbxml issue. However here's what I've discovered so far:

    - You can get a log of the request and responses travelling between a Windows mobile device and a server by turning ActiveSync logging to verbose on the device. You can see a bunch of samples of this if you go to:
    http://www.google.com/search?hl=en&q....ms-sync.wbxml

    If you need any more of these mail me and I'll grab a full one.

    - This log does not include the user agent header, which is required: User-Agent: MSFT-SPhone/5.1.2000

    - There's a bunch of other info on the protocol at:
    http://support.microsoft.com/kb/836024
    (grab the presentation and transcript)

    - In the log the xml requests and responses as plain text. In fact they are sent as wbxml (compressed xml), see the following urls. To solve this would probably require compiling libwbxml to run on the iphone (though as Apple uses libwbxml for iSync, it may already be on the phone ...).
    http://en.wikipedia.org/wiki/WBXML
    http://libwbxml.aymerick.com/
    http://benlast.livejournal.com/26007.html
    http://libwbxml.aymerick.com/changeset/27

    - It also uses gzip to minimise what'what goes out over the wire.

    - I'm not sure if it's possible to send uncompressed xml - I've not had it working, but it may be possible with the correct content type. I expect a quick peek using 'Reflector' inside Microsoft.Exchange.AirSync.dll or Microsoft.Exchange.AirSync.Handler.dll, which sit on the Exchange server would indicate whether it is possible or not.

    - IMAP is definately the way to go - it's close enough in philosophy to ActiveSync that I'd think you'd be able to end up with something pretty close to what you get on an MS phone.

    - If you want to be really ambitious, there's a bunch of tech info on DirectPush (ie push e-mail) at the following url. This would be dependant on the iPhone being able to keep an http connection open for a long period without an adverse affect on battery life:
    http://msexchangeteam.com/archive/20...03/424028.aspx
    http://www.microsoft.com/technet/sol....mspx?mfr=true

    Best of luck!
    Mark.
    Last edited by mark9white; 09-23-2007 at 10:09 AM.

  3. #43
    Newbie Array

    Join Date
    Sep 2007
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by lh99 View Post
    tobin00: Which version are you running? Assuming it's 0.0.4, you need to add your web address to your username:

    https://mail.yourserver.com/exchange domain\username
    Oooh, looks like I'm getting closer!

    Unfortunately, now I'm getting a cookie error. Any ideas?

    POP Server running
    ('127.0.0.1', 49248)
    Sent welcome message
    error 2: CAPA
    ['https://mail.domainchanged.com/exchange', 'northamerica\\tobinc']
    User Name sent, asking for password
    error: uncaptured python exception, closing channel <__main__.POPChannel connected 127.0.0.1:49248 at 0x363ccc> (<class 'Cookie.CookieError'>:Illegal key value: ISAWPLB{9E343A80-AF30-410E-8754-4EEC0A32FF73} [/usr/lib/python2.5/asyncore.py|read|68] [/usr/lib/python2.5/asyncore.py|handle_read_event|390] [/usr/lib/python2.5/asynchat.py|handle_read|137] [/usr/share/Outlook/popdaemon.py|found_terminator|105] [/usr/share/Outlook/popdaemon.py|pop_PASS|124] [/usr/share/Outlook/scraper.py|login|125] [/usr/share/Outlook/scraper.py|get_page|100] [/usr/lib/python2.5/Cookie.py|load|619] [/usr/lib/python2.5/Cookie.py|__ParseString|650] [/usr/lib/python2.5/Cookie.py|__set|572] [/usr/lib/python2.5/Cookie.py|set|451])
    Last edited by tobin00; 09-23-2007 at 10:47 AM.

  4. #44
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default 0.1.0 Released!

    This is a working FORMS version!

    See the Google Code Wikis for specific information. File upload doesn't seem to be working there for the moment, so the download is here for now:

    http://www.megaupload.com/?d=IDKA2RD0

  5. #45
    Professional Array

    Join Date
    Aug 2007
    Posts
    54
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    10

    Default

    tobin: Not sure what could cause this. I was just digging around in the Cookie manager to get the FORMS version working, but didn't find a 'smoking gun.' I'm pretty sure that Cookies are actually not needed for HTTP authentication, so commenting out the cookie lines may do it. Or, if your OWA supports FORMS, I'd bet that using 0.1.0 would resolve the issue.


  6. #46
    Advanced Array

    Join Date
    Aug 2007
    Posts
    46
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Is anyone still working on this? Or even better, is the current solution working reliably?

  7. #47
    Newbie Array

    Join Date
    Oct 2007
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I've tested it and it works as advertised.
    I did have to change some of the python code with the correct directory locations.

    now if there was only a way to make this script start with a button.

  8. #48
    Professional Array

    Join Date
    Sep 2007
    Posts
    56
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Would anyone be interested in writing a plug-in to enable true IMAP Idle support via the iPhone's mail.app? Such a plugin already exists on the desktop side for mail.app (http://www.rothwell.us/imapidle/index.html), so the majority of the work would likely entail changing the code to support the ARM processor.
    Last edited by davpel; 10-15-2007 at 01:29 AM.

  9. #49
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    445
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    30

    Default

    Hey guys, just an update... I've sorta dropped the ball on this... Since we opened up IMAP on the exchange, and I put the 5mins hack for e-mail checking, my iphone is much better than my previous push-capable devices, so I lost interest...

    I'm still loosely dabbling into contact/calendar syncing, but it is very difficult... It would be easy to put/get contacts and calendar entries, to phone and to exchange, but syncing is no simple task and I really dont have any good ideas about how to do this efficiently...

    There is a "last modified" timestamp on entries on the iphone, but I havent seen this on the exchange side of things... I also dont know if there is a way to pull only "modified/new" entries after XX date from exchange (which would be necessary to not have to pull all contacts and all appointments at every sync...)

    There is definitely a way, but since activesync isnt publicly documented as a protocol, afaik, I havent found a way yet...

    I can definitely code the iphone part, including getting stuff and adding it to the appropriate DBs on the iphone. if someone has a clever idea about how to mark stuff and get only new/modded items I'll gladly whip it up together, but for now I dont think it will work well enough...

    I did some tests and I'd switch from python (which I dont know), to PHP which I know well, and the iphone side should be easy to take care of... I also dont know well enough how the ldap stuff thats available...

    EDIT: just saw mark's post above... it seems like lot of what was keeping me back may be there... Lemme go re-look at everything. I'm definitely looking at something more active-syncish, than IMAP... It should be pretty straight forward to just stuff the iphone's mail DB (in fact I've done it semi-succesfully before giving up)...

  10. #50
    Advanced Array

    Join Date
    Sep 2007
    Posts
    40
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    please keep up the good work... This is the only thing I really miss from my Windows Mobile phone.


 

 
Page 5 of 7 FirstFirst 1234567 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 02-19-2008, 05:25 PM
  2. Email Imap attachments
    By Nelson0000 in forum General
    Replies: 0
    Last Post: 02-19-2008, 04:35 PM
  3. Mail auto-check doesnt work on IMAP Exchange
    By bence8810 in forum General
    Replies: 24
    Last Post: 01-10-2008, 07:37 PM
  4. mailstreet and imap email
    By Globalm3 in forum General
    Replies: 0
    Last Post: 09-21-2007, 01:24 AM
  5. IMAP & Exchange 2003 poroblems
    By kelkin in forum General
    Replies: 2
    Last Post: 08-26-2007, 05:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 06:55 AM.
twitter, follow us!