Home User CP Donate Chat Register Today!  
  Get New posts Faq / Help?
   


Go Back   Hackint0sh > Projects and Hacks > iPhone > General > General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-07-2007, 10:16 PM
iphonejoe
Status: Offline
Junior Member
 
Join Date: Jul 2007
Posts: 10
Rep Power: 0
iphonejoe is on a distinguished road
Default Exchange "push" mail to iPhone - works!

Like many of us, my corporate Exchange email server doesn't have IMAP enabled. So i couldn't get to my work mail from the iPhone.

Luckily, Exchange servers by default, have OWA and WebDAV enabled, so there turns out to be a way to get the mail to the phone. I wrote a little python deamon that gets new mail from Exchange via WebDAV and sends it to Yahoo, which will then "push" the mail onto the phone. The mail is not actually forwarded, it is copied, read below!

This works like so:

0. Login to Exchange via OWA
1. Issue WebDAV/SQL query to search for new mail since last poll - only mail without iPhone tag
2. If there is any mail, it is fetched from the exchange server in raw .EML format using WebDAV
3. The raw mail is then sent to the Inbox of your Yahoo account.
4. The mail is the tagged 'iphone' via WebDav to prevent repeated forwarding.
5. Yahoo will now signal a new mail has arrived to the iPhone via a cellular OMA call (not part of this script)
6. The iphone will receive the OMA call and go to yahoo's imap and get the new mail
7. Because we sent the raw .EML to yahoo, all original headers are still intact, so the mail will look as if it was sent to the iPhone by the original author, so you can reply, or reply all and the mail will go to the original author and/or rcipiants. Unfortunately, the "From" in your reply, will still say you@yahoo.com, this script will not fix that :-)

usage:
python WebDAV-Poller.py <exchange-url> <exchange-username> <yahoo-username> <password> <poll-intervall>

example:
python WebDAV-Poller.py https://webmail.somecompany.com me meyahoo fakepwd 60

this requires that your exchange and yahoo passwd are the same!

if you are interested, you can get the script here:
http://www.megaupload.com/?d=9WHTFLIE

please note that this only works with python 2.3 or 2.4, i am still working on getting this to work with 2.5

have fun!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 07-07-2007, 11:03 PM
yoshi
Status: Offline
Junior Member
 
Join Date: Jul 2007
Posts: 3
Rep Power: 0
yoshi is on a distinguished road
Default

Forwarding your corporate e-mail account to an external e-mail provider like yahoo is against most company's policies. I would suggest not doing this. Especially if you valid your job.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-08-2007, 04:57 AM
bmetz
Status: Offline
Junior Member
 
Join Date: Jul 2007
Posts: 1
Rep Power: 0
bmetz is on a distinguished road
Default

Forgetting the security aspect, is this really 'push' if you are polling your exchange server on a set interval? You'd have to be polling every 5 seconds or so for this to be a push experience.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

  #4 (permalink)  
Old 07-09-2007, 12:13 AM
moralpanic
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 31
Rep Power: 0
moralpanic is on a distinguished road
Default

Quote:
Originally Posted by yoshi View Post
Forwarding your corporate e-mail account to an external e-mail provider like yahoo is against most company's policies. I would suggest not doing this. Especially if you valid your job.
What? If it's good enough for the White House administration, it's good enough for me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 07-09-2007, 03:09 AM
jnajera
Status: Offline
Member
 
Join Date: Jul 2007
Posts: 41
Rep Power: 0
jnajera is on a distinguished road
Default

Couldn't you just access Exchange Webmail and setup a forward copy rule to your yahoo account? Then you would not have to use this python script.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 07-09-2007, 08:04 AM
ftg888
Status: Offline
Junior Member
 
Join Date: Jul 2007
Location: Shanghai, Edinburgh, Toronto
Posts: 9
Rep Power: 0
ftg888 is on a distinguished road
Default This free email solution works for me.

I am testing this email solution.

http://www.cortado.com/index.php?s=241&lc=61

They offer free push email accounts.

Sorry for the link. But i figure on if i can save people from using the awful
yahoo email and gmail it might be worth it.

thanks
a.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Remove advertisements
Advertisement
Advertisement Sponsored links

  #7 (permalink)  
Old 08-22-2007, 11:16 PM
RVN84
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 445
Rep Power: 26
RVN84 is on a distinguished road
Default

Hey m8,

can you post the source somewhere else? I can't download....

or if you could email it to me roy [@] roy . com . br that would be great... I'm trying to do something for it run on the iphone itself and update the mail db on its own, so it gets real push....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 08-29-2007, 04:46 AM
kupan787
Status: Offline
Junior Member
 
Join Date: Aug 2007
Posts: 18
Rep Power: 0
kupan787 is on a distinguished road
Default

Is there python 2.3 or 2.4 for the iPhone available anywhere?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 08-29-2007, 05:07 AM
RVN84
Status: Offline
Senior Member
 
Join Date: Jul 2007
Posts: 445
Rep Power: 26
RVN84 is on a distinguished road
Default

Quote:
Originally Posted by kupan787 View Post
Is there python 2.3 or 2.4 for the iPhone available anywhere?
Are you planning on modifiyng the script, or running like this on the iphone?

This isn't efficient to be run on the iphone... best would be to run it somewhere on the local server network, as it would be able to poll the server quickly and send it to yahoo...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Sponsored links Remove advertisements
Advertisement
Advertisement

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[1.1.2 OTB] > 1.1.3 HW Unlock, up and running: GSM.VN ; Geohot; Imth; and hackin0sh Number_41 Older Software Unlock Solution 132 01-18-2008 12:18 PM
(mac)First ultimate guide to fully unlock iPhone 1.1.2 for free *tested* eddy123 Older Software Unlock Solution 0 11-16-2007 10:40 PM
The EASY guide to jailbreaking, activating, and unlocking on a PC CherePashka Older Software Unlock Solution 0 10-28-2007 09:22 PM



All times are GMT +2. The time now is 04:57 AM.



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2 Ad Management by RedTyger
follow us on Twitter!

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105