yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] camro:
well, at first..

for me the big question is:

is IMAP Pusher the correct project for imap idle support ?

and about this i talked last night with some other developers, how we can proceed....in Imap Pusher a lot of things would be to rewrite complete: ex: thread handling, error handling, connection handling, normal imap support, TLS support, thread handling for suspend mode + battery drain, connection handling in different time zones (so that user can control in which time spin imap idle should check and when it should only check ex: all 2hrs...)

-> so there are a lot of things to do or .....

a different thing: "Microsoft Direct Push" is a complete different protocol,

and have nothing to do with an "imap mail-server" and which was written for MS Exchange Server (MS want that the users give pressure to the IT-administration, to investigate money to an exchange server -> my opinium -> exchange server has no future, because it is not worth the money ...

and MS is also not interessted to force to use this interface for other solution, because in theory it would be possible to make a converter to use the "MS Direct Push for imap idle or for EGW, but forget it - MS is bu**sh**.

But there are other "Groupware solutions" - like EGroupWare (EGW), therefore are the sync tools like funambol, which are working fine...

But let us think about normal handling for email request tools for poutlook with IMAP IDLE or polled requests.

############################

i talked with developer of "Email Scheduler", and i think that there is the future and maybe i spend time to help to go on with the project "Email Scheduler", because there are only few things to do, and it can quickly reach "release status"

what i'm missing there:

.) bugfixing on better IMAP IDLE support (now only "IMAP IDLE gmail" is supported -> will be easy to fix

.) more debug log detail, to see better what is the response from mail-server, and whats going on -> will be easy to add

.) configuring an account how to handle the email request with imap idle.

Therefore the "IMAP IDLE support for multiple accounts" is neccesary

ex: on weekdays from 7:00 - 20:00 -> imap idle checking

ex: on weekdays from 20:00 - 7:00 -> checking email every 60 minutes

ex: on weekend from 10:00 - 18:00 -> checking email every 30 minutes

ex: on weekend from 20:00 - 7:00 -> checking email every 120 minutes

and then it would be amost perfect and have all features....

but please give email scheduler now time ~ 2 weeks, then there will be some good news for you :)

you can see the email scheduler project on: http://xdaforums.com/showthread.php?t=438970

@all

or what do you think ?

br Camel
[Windows Mobile Software Development] leaskovski:
Exchange, er, sorry i mean ActiveSync (because that is the protocol that "Microsoft Push" uses) is dead??? Bwahahaha! Im sorry, but I dont think that is the case when you have companies such as Apple & Google implementing versions of it.

Anyway, Im glad that this project has been picked up for development again as POutlook implementation of IMAP sucks.
[Windows Mobile Software Development] NickTabick:
Offer to Test

If you're looking for beta testers, feel free to stick my username in front of @gmail.com. I have an unlocked GSM Treo Pro to test with.
[Windows Mobile Software Development] camro:
thanks for beta test support, but i'm thinking now, if it would be maybe better to investigate more time to help on this:

email scheduler - this tool have more potential ... or ?

what are you thinking ?

in ~10 day the deveoper is back from a travel, and then ... ;-) the show must go on ..

see: http://xdaforums.com/showthread.php?p=3850925#post3850925
[Windows Mobile Software Development] cupcake:
For some reason Email Scheduler seems to crash on my Blackstone (Generic ROM) but your program does the trcik! :D PLEASE do not discontinue development!!! Emansio crashes on it too, so this seems to be the only way to get IMAP Idle for me, as I don't like Flexmail much!
[Windows Mobile Software Development] camro:
email scheduler and emanso give you a problem ?

please post exactly the error message.

but as i wrote in email scheduler thread .... why you don't want to install a "good" ROM like laurentius ?
[Windows Mobile Software Development] dadarkmcse:
Know I'm late to the thread, however I'm still around and willing to implement quick fixes or custom builds of my fork if anyone needs them. Hopefully we can see this product continue to improve.

Jon.
[Windows Mobile Software Development] Mr_Q:
Same here, will you fix this in the future? Jon Westerfall's versions worked fine, although it showed a 'busy'-icon when the connection is lost.

@dadarkmcse:

Jon, could you post the source code of your version, please?
[Windows Mobile Software Development] camro:
but the question is - can email scheduler handle all your wishes better ?

(there are only few bugs which will be solved shortly, and have a lot of other favorites inside...)

please give me til middle of june time elping finishing email scheduler, and i'm sure that in 14 days no bugs and no wishes left in email scheduler....

if there is no alternative - i will help to go on with project and would implement code the necc. things to imap pusher ...

please standby ... news are coming ....
[Windows Mobile Software Development] Daved+:
Great app. I only wish it would keep my phone connected. Thanks.
[Windows Mobile Software Development] xhozt:
I love your fork only reason i had to stop using it it causes eratic screen behavor on my inciite after a while ,,, any chance of a fix for that ?
[Windows Mobile Software Development] trjons:
Anyone else using this version?

http://jonwestfall.com/2009/04/download-imappusherservice-unofficial-06-release/
[Windows Mobile Software Development] starbase64:
Hi,

Pocket Outlook can checked also be every 5 minutes for new messages.

Why then do I need this tool?

with friendly greet

starbase64
[Windows Mobile Software Development] shinma6980:
As has been brought up before, lots of checking involves heavy data usage - so unless you have an unlimited data plan, this is not an option. Secondly, and most importantly IMO, it will absolutely kill your battery fast.
[Windows Mobile Software Development] camro:
yes, this base is also using from gudy for IMAP IDLE service, but it's buggy

and i don't think, that it makes sense..
[Windows Mobile Software Development] camro:
with the tool of gudy:

the idea is to use a scheduler service, which makes only polling on wanted time ranges:

ex:

on weekdays:

09:00 til 17:00 polling every 5Minutes

from 17:00 til 9:00 -> only manually

on weekend:

10:00 til 15:00 polling every 15Minutes

from 17:00 til 9:00 -> only manually

so you save a lot of battery.

this is working fine.

now - the idea was: supporting IMAP IDLE service, because it doesn't check like polling (requesting the server and asking if new mails arrives...)

IMA IDLE hold a connection to server, and if the server get a new mail, then the server send to client: "new mail on server". then IMAP IDLE service, tell pocketoutlook to request the mail server and so a lot of traffic will be save.

now - the last ideas are:

1.) BUG FIXING: time range should work over midnight

for now only ex: 09:00 to 23:59 is working

2.) BUG FIXING: IMAP IDLE service must check that the connection to mailserver is still alive

3.) NEW FEATURE: time range handling with IMAP IDLE + multiple time ranges

on weekdays:

02:00 til 09:00 -> only manually

09:00 til 16:00 -> do IMAP IDLE (connection to mailserver all the time)

16:00 til 02:00 -> do POLLING all 15 Minutes

(and the same would be possibel to handle for weekenddays)

4.) NEW FEATURE: support for multiple email accounts for IMAP IDLE service

and really i would honor this !!!! - if gudy would can finish this parts - it would be great.

but gudy concentrate now for other tools -and this is bad.

so - the future for IMAP Scheduler is unclear ....
[Windows Mobile Software Development] MJNewton:
Hi Camro,

Having recently moved on to an unlimited data tarif I awoke this morning with the thought 'push e-mail - that's what I want'. Of course, when I was paying for data I didn't need it, but now that's it's free I obviously can't live without it! :)

So, I looked around to see what was on offer and found a multitude of options - mostly convoluted man-in-the-middle offerings from 3rd parties or, worse still, apps requiring an MS Exchange backend. Now, as I run my own Linux server with Dovecot providing an IMAP service for my (and others) domains the decision was made that the simple IMAP-IDLE function would suffice. I am reasonably content with Pocket Outlook - as basic as it is I prefer it to the over-the-top Flexmail (I got rid of it months ago but still keep finding remnants of it on my Diamond!).

I found Emansio (VGSMail) which seemed pretty good - it seems to work well but I've found two problems (that's one per hour so maybe that's not great):

- No scheduling. Sure, I'm on unlimited data but whilst battery usage should be low (given the inherent functionality of IMAP-IDLE) I still don't need it doing anything overnight (that includes its 6 minute hearbeat)

- No support for STARTTLS. My SMTP server is configured to force TLS prior to authentication - fairly standard stuff - but the only method Emansio seems to support is implicit TLS on port 465 i.e. set up TLS tunnel then start SMTP, not start SMTP then setup TLS. I have temporarily configured Postfix to offer this but I'd rather not - this is a long obsolete way of doing things.

So, to cut a long story short (too late?!) I'm looking for alternatives - indeed I'd like to find an OSS/freeware option which I'd donate to (Emansio is only £15/3yrs but that's beside the point).

I got excited at IMAP Pusher and followed your enthusiasm towards Email Scheduler but having caught up with both threads my hopes are somewhat dashed! So, I thought I'd post this just to show my interest and willingness to support whatever direction you're looking at going in!

Must dash... I've just this second received an e-mail! ;)

Mathew
[Windows Mobile Software Development] eranyanay:
Is it possible to make gmail account on my mobile to search for new emails in shorter time than 5 minutes?

Till now, i've been using push mail because i use my emails also for smsing with my girlfriend, it saves alot of money of sms..

but with my gmail account, it checks the mails for every 5mins, while in the push mail every few seconds
[Windows Mobile Software Development] MJNewton:
I've found another couple of faults with Emansio:

- Copies of sent items are marked as unread. Unread?! I wrote them! Not a showstopper, but a niggly oversight nevertheless.

- Folders. It doesn't appear possible to access other folders in the IMAP store. I don't usually need to access my other folders whilst mobile but I do require the ability to move selected messages from the Inbox into them.

- Timezone. Despite the device set to Daylight Saving Time I noticed the log timestamp is an hour behind... Worse than that though all outgoing messages are an hour behind too!

Despite being fundamental oversights these are probably easy fixes but I can't help feel that suggesting there resolution will fall on deaf ears. That's why I want to support an OSS/freeware product - ideally something run by a developer here - as good ideas tend to get absorbed and adopted quite quickly.

Incidentally I was looking through the registry and it looks like Emansio can support scheduled synchronisation i.e. choosing which days and what times it should be enabled. Perhaps it's just the demo version that doesn't allow this to be configured in the GUI setup?

I might give IMAP Pusher a go but the issues discussed in the thread make me think I might be swapping one set of problems for another! :)

Mathew
[Windows Mobile Software Development] MJNewton:
What a difference a day makes...

Emansio's bugs and faults are so fundamental I've removed it entirely. I didn't hear anything back from them either which was a shame.

It's actually made me question whether I really do need push-email or was is it just a nice-to-have now that I'm not paying for data? For me I'm wondering if it offers me any real advantage over and above manually checking my account as and when I need to.

Will certainly keep an eye on any developments in the field though...

Mathew
[Windows Mobile Software Development] camro:
i know.

i spend amount 2 month for syncing scheduling, imap idle, etc....

for now - to 99% working perfect -> the funambol solution is a good one (calendar, tasks, contacts)

for email -> email scheduler forpolling ... and if you think about. polling all 15 minutes should be enough.

of course - on some of my projcts i need checking all the time -> then i use email scheduler -> imap IDLE service with a alltime GPRS connection. and a script, which restart imapidleservice if a "ping" doesn't work.

but this is very complicated for a normal user.

for email -> i'm sure, that email scheduler can handle all our wishes in short time.

for syncing the rest to diff. clients (ex: EGW, outlook, thunderbird) -> funambol
[Windows Mobile Software Development] littlescott:
Hi, I was using Jon's version that does auto-restarts if the connection fails but got annoyed with the wait thing popping up on the screen and not going away.

I've grabbed the sourcecode from codeplex but the version numbers start at 1, how different is the version you have compared to the one on codeplex? Is it just the bug fixes you've listed in the first post or is there more than that?

Cheers,

Scott
[Windows Mobile Software Development] camro:
on error call/start the programm once again ... hmm - a very dirty solution.

maybe we should think about - how to handle the error handling on a normal way - or ?

PLS: the source code from EMAIL SCHEDULER will be soon availible and i think, there is more future ....

what do you think ?

i'm also interessing to go on with devel on a good IMA IDLE service for PDA's.

let us discuss this before - or ?
[Windows Mobile Software Development] littlescott:
Depends on what error happens and why, I haven't debugged the code yet to see what goes on but I'll give it a go either shortly or tomorrow (it's 10:30 at night here, so most likely tomorrow sometime).

I haven't tried the email scheduler mainly because imap pusher does what I want, gives me push email with gmail and it's nice and simple to use. The only thing for me that is missing is someway to turn it off at night so I don't get email alerts, but as there's sourcecode it shouldn't be too difficult to add :)

I don't really intend on continuing either of the projects as I only want to add small changes to make my life easier. If I can solve it's current issue easily then I'd be more than happy to release it back here so others can enjoy it too :)
[Windows Mobile Software Development] :
Would it be possible for someone to compile this for WinMo Standard?
[Windows Mobile Software Development] fowen:
If you could do this that would be great. I was using Seven but now I have consolidated all my email accounts to one Google apps account and I would like to get IMAP IDLE working. Emansio and Flex both suck. I just want something simple that works.
[Windows Mobile Software Development] littlescott:
I've been using build 0.61 for almost a day now and haven't yet encountered any error on the phone. I've had a look through the log file and found a couple of exceptions but it appears it's righted itself ok without crashing or anything. What's the error that I'm looking for? The only one I've come across is when imap pusher boots before my phone has a connection.
[Windows Mobile Software Development] regression06:
Hi, I just started using this app myself. And so far it has worked great. A quick question I didn't see (or missed) in the thread.

If I have multiple accounts setup, does the start / stop service work globally, or do I need to start / stop the service for each account individually?

Thanks for the great product!
[Windows Mobile Software Development] regression06:
One more thing, the Status button doesn't seem to do anything. I highlight the account and click status, and nothing happens.....
[Windows Mobile Software Development] chalid:
I'm using the program attached to the first post for a few weeks. I encountered some problems, mainly when internet connection was lost. Mortscript is a good workaround.

Note, that I'm not a programer nor a mortscript expert ... ;)

I'm launching IMAP-Idle with this mortscript:

start.mscr

If(ProcExists("ImapPusherService.exe"))
Message ("IMAP Idle is running already.")
Else
Run("\IMAPIdle\ImapPusherService.exe")
SetMessageFont( 16, Tahoma )
SleepMessage 5, Launching IMAP Idle, IMAP Idle
Run "\IMAPIdle\idle_start.mscr"
endif

... which starts the following script to check if the exe didn't crash or the connection was lost. Restarting the service in both cases to prevent any problems.

idle_start.mscr

Sleep(30000)
While(1)

If(ProcExists("ImapPusherService.exe")=False)
Run("\IMAPIdle\ImapPusherService.exe")
Sleep(10000)
RedrawToday
Message ("IMAP Idle restarted.")
Else
EndIf

If (not InternetConnected( "http://www.google.com"))
Kill("\IMAPIdle\ImapPusherService.exe")
Sleep(10000)
Run("\IMAPIdle\ImapPusherService.exe")
Sleep(10000)
RedrawToday
Message ("IMAP Idle & internet connection restarted.")
Else
EndIf

Sleep(30000)

EndWhile

and to end it:

kill.mscr

If(ProcExists("ImapPusherService.exe"))
SetMessageFont( 16, Tahoma )
SleepMessage 5, Shutting down IMAP Idle, IMAP Idle
KillScript( "\IMAPIdle\idle_start.mscr" )
Kill ("ImapPusherService.exe")
Kill ("ImapPusherServiceManager.exe")
Disconnect
Else
KillScript( "\IMAPIdle\idle_start.mscr" )
Message ("IMAP Idle not running.")
Disconnect
endif

Didn't have any problems with this setup for quite some time now.
[Windows Mobile Software Development] ecard:
I'm getting an exception error when I reboot my device NETCFv35.Messages.EN.wm.cab...

Any idea?

Thanks
[Windows Mobile Software Development] littlescott:
Yeah, you need to install the message cabs to see what it is. basically it's an error because it can't create a connection. This happens on boot sometimes when the app starts before your phone can handle a connection, thus the error.
[Windows Mobile Software Development] littlescott:
Yeah the guy who did the update to 6.0 does something similar, he gets the service to start an exe which then checks to see if the service is still running. If not the exe will attempt to restart it. Works fine and most of the time is unobtrusive execpt for the busy icon that comes up sometimes.

The errors happen very rarely for me and I'm unsure if the code on the website is the same as the version here so I never really looked into doing anything with it, it works pretty much ok for me and what doesn't i can restart easily enough. :)
[Windows Mobile Software Development] littlescott:
When you start the service a separate thread is created and started for each account.

If any of those fail then the error is caught and the thread created and restarted again.., It continues this so on and so on.

If any of that fails then I think the app dies and we get the exception message, which for me is pretty rare.
[Windows Mobile Software Development] jboy001:
Hey, I just installed this last night and it seems to work well. Quick question if anyone still monitors this thread though.

Is there any way to disable the roaming message that pops up, when I am at my desk I am forced to roam and the roaming message box pops up quite frequently and kind of negates the point of having push mail.

I tried disabling the roaming data guard under phone options but I don't see an option in the imappusher manager

Thanks,

John
[Windows Mobile Software Development] littlescott:
Hey, for anyone reading this thread and using this for gmail, gmail now supports activesync and as such the activesync email push can be used from that, so this is no longer required :)
[Windows Mobile Software Development] volwrath:
Ive tried both this and email scheduler. To me this one seems to work much better than email scheduler, so I would love if developement was picked up on this one
[Windows Mobile Software Development] Fixup:
Even though now Gmail supports ActiveSync, I still prefer this IMAPPusher for 2 reasons:

1) ActivSync sends heartbeats too often, about 5 minutes, which drains battery fast.

2) Cannot use email alias when reply gmail.

3) So far gmail activesync direct push has been totally unreliable.

What's needed to compile the source code? I have VS 2008 Express and it cannot open vbproj files. Do I have to have the full (non-free) VS?

Thanks.

[update]Seems VS Express cannot program for WM.
[Windows Mobile Software Development] Fixup:
xImapPusher - my compiled version that works!

The problem I have with 0.61 is: Socket error every 4.5 minutes or so and it won't recover from this error. Turned out the Sleep() function was the cause: it simply pauses until I turn the screen on.

As for the socket error, it seems that WM times out socket after 4.5 minutes. I think that's why MS Live push always sends out heartbeat every 4.5 minutes.

So far this version works very reliable on my HTC Diamond with Verizon, no problem at all. It'll starts data connection automatically, so no problem to start it automatically after a reboot.

If the data connection is lost, the connection and push will be automatically recovered at the next refresh. The only condition is: the screen must be turned on at the moment for a (re)connecting.

I think this great IMAP push is finally as perfect as possible, thanking to the original programmer and the OP of this thread.
[Windows Mobile Software Development] Fixup:
This is the latest version, fixed a bug that made the service to quit.
[Windows Mobile Software Development] camro:
hi,

i'm happy that you also investigating time for that :)

great !

for me the most problem is/was:

i start the imapidleservice, then it works fine.

then somewhen ... the internet connection is going closed/lost.

(you can simulate this to stop the connection via manually in comm manager ...

so - what happen then ?

cu camel

PLS: additionally - i know that Emailscheduler (from gudy) will be soon open source or the source will be availible soo, then i would be interessting to proceed with the project.

because gudy's version have a lot more posiblities (scheduling on diff. time ranges aso...
[Windows Mobile Software Development] Fixup:
If I set the refresh to be, say, 2 minutes and close the Internet connection, connection and push both will be restored automatically after 2 minutes. The only catch is the screen must be on at the moment, which is the nature of WM, not a bug of xImapPusher. MS Live push is the same - (re)connection can only be made while screen is on.

As long as you don't disconnect the connection, i.e., you still see the two arrows, xImapPusher is robust to temporary connection interrupts (socket errors). No need to turn on the screen for the recovery. Before, the service would quits after few hours, now never; it just keeps pushing, forver and no delay at all. Perfect.

Push is all I want. I tried EmailScheduler, 1.0.2 drains battery too quickly; 1.0.1 does not, but has the same problem like ImapPusher. Therefore I had to look into ImapPusher; I'm glad I fixed its problems. It did not take me much time to find out the problems in the source code. I wasted lots of time in SharpDevelop, hoping I could get this work done without having to buy the expensive Visual Studio. Finally, I downloaded VS trial and everything was easy afterwards.

I've tried all alternatives, only this one works for me.
[Windows Mobile Software Development] camro:
well, it seems to be, that you have really FIXED IT :)

great job.

can you upload the source (inc. vs project file), because i would be very interessted what you have changed ?

one bug what i had is:

ImapPusherService.exe

SocketException

A blocking operation was interupted by a call to WSACancelBlocking

at

System.Net.Sockets.Socket.AcceptNoCheck()

at

System.Net.Sockets.TcpListener.AcceptTcpClient()

at

ImapPusherService.Module1.ListenerManage.WorkerThread()

is it possible to make an option for "checking socket after x-minutes" ?

cu camel

cu camel