yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] camro:
the next question is the handling:

what happen if the imappusherservice is running and i disconnect the connection manually.

whern does the service try to check the socket ?

what happen if the imappusherservice is running and i disconnect the connection manually and activate the connection once again ?

whern does the service try to check the socket ?

does then the service think the internet connection is established and so all is ok or does it check really the tcp socket ?

do the service check the internet connection once again ?

is this time configurable ?
[Windows Mobile Software Development] camro:
Next exampe:

1.) SR

on autostart imappushersertvice.exe will be loaded OK :)

2.) then check if emails are comming in ... OK :)

3.) i make a call

(calling will close the 3G/H/GPRS connection)

so - what happen now ?

when will the imappusherservice see, that the connection is brocken ?

when will imappusher reserve again the imapidle ?

is this time range possible to be set ?

ADDITIONALLY:

in this case -> i will get an error soon:

The remotename couldN't resolved

at

System.Net.HttpWebRequest.finishGetResponse()

at

System.Net.HttpWebRequest.GetResponse()

at

ImapPusherService.Module1.ThreadManager.WorkerThread()

maybe an error handling for this cases is possible to implement - or ?

cu camel
[Windows Mobile Software Development] Fixup:
Fixed more bugs, no longer quit even after received a "bye" signal from the server. Right now I use HttpWebRequest to check the connection, which works but has to make a http call, not a good thing on battery life. Therefore I cannot check the connection more often. I'm working on this issue.

In my case, xImapPusher continues to push after a voice call.
[Windows Mobile Software Development] camro:
perfect, thanks for your effort

i will also try to help with testing ....

cu camel
[Windows Mobile Software Development] camro:
bug: (cosmetic) - in profile settings -> there is a wrong index on the "connection"

if you choose "ex: Auto, then after loading it jumps to next in the list.

what i remember in the source - on loading it loads the wrong register..

maybe you can fix this with next version.

cu camel

PLS: if it is OK for you , i will create a CAB for easier install.

cu camel
[Windows Mobile Software Development] camro:
hi i tested the new version.

it is almost perfect from the handling of imapidle and socketchecking ...

almost ...

here i got a new(old) one ...

maybe you can make an errorhandling for this this also

BUG1:

=====

SocketExeption

Ein BLockierungsvorgang wurde durch einen Aufruf von

"WSACachelBlockingCall" unterbrochen

bei

System.Net.Sockets.Socket.AcceptNoCheck()

bei

System.Net.Sockets.TcpListener.AcceptTcpClient()

bei

ImapPusherService.Module1.ListenerManager.WorkerTHread()

i have to send my greatest respect to you !!!

this version has really now a lot potential !! ! :)

cu camel

@Fixup: i would have some ideas to implement

please send PM back to me.
[Windows Mobile Software Development] camro:
so ... next tests ...

BUG2:

=====

hard core test :)

1.) starting imappusherservice and let do the first check -> OK....then

2.) switching to flight mode (so no possible internet connection will be enabled)

and then waiting for recycle check of imappusherservice...

then:

ProtocolViolationExeption

Dieser Vorgang kann nicht ausgeführt werden, nachdem die Anforderung gesendet wurde.

bei

System.Net.HttpWebRequest.startGetResponse()

bei

System.Net.HttpWebRequest.GetResponse()

bei

ImapPusherService.Module1.ThreadManager.WorkerThread()

cu camel
[Windows Mobile Software Development] camro:
Question:

do you now always (cycle of "refresh" value) send the HttpWebRequest ?

or

can you check the socket and only send the HttpWebRequest if socket seems to be broken ? if it is in this case, then this is a very clean solution for.

in my mind....i like the httpwebrequest, because we are talking about a mobile internet connection, which can be often closed...so therefor the new "Refresh with httprequest is a great solution".

Normally, if the handy is always "ON" and on the same destination and the GPRS settings are set to hold the connection all the time, then the httpwebrequest will be not necc. and the programm won't call this function and so waste battery drain.

additional poutlook will not poll, if there is no new email.

i like imappusher now also, and the scheduling polling for poutlook can be also be done via this solution, if you are interessting, i can work together with you ...
[Windows Mobile Software Development] camro:
next tests ....

BUG3:

=====

hard core test :)

1.) switching to flight mode (so no possibel internet connection will be enabled)

2.) starting imappusherservice and just next sec.....

then:

WebException

Die Verbindung mit dem Netzwerk konnte nicht hergestellt werden.

bei

System.Net.HttpWebRequest.finishGetResponse()

bei

System.Net.HttpWebRequest.GetResponse()

bei

ImapPusherService.Module1.ThreadManager.WorkerThread()

for my meaning ...

it should cycle then on next "REFRESH" and trying again then the connection(and not kill the service).

cu camel
[Windows Mobile Software Development] camro:
BUG 4:

the password string will not set correct if there are special chars in password.

i tried it and i'm 100% sure, that it wouldn't work if you have in your password these chars ins string : (i think i the problem is "$" or "&"

$&()<>

i'm not sure which one of this chars made the problem, but i tested it - i needed 2h to come behind the problem :)

cu camel

PLS: @Fixup -> some news ?
[Windows Mobile Software Development] Fixup:
I've made a new version and will post it later. It no longer uses httpwebrequest to check connection status, and thus does not use any data access for the check. This version also fixed some more bugs and seems very solid.

However, I still give up this imap idle thing because there is one big problem that I cannot do anything about it: WM closes a socket after 4.5 minutes, battery hurts.

Now I've set up z-push and it is a far better push solution for gmail and anything else. I made some very simple changes, now I can use gmail's smtp and my own domain address instead of gmail address to reply, and deleted messages go to Trash instead of Archive. Cannot be any more perfect.
[Windows Mobile Software Development] Fixup:
This is the latest version with source files. There is only one change in the service manager file when save the Internet connection (+1 and -1). Other changes are pretty much all in WorkThread and Connect functions. Only one function, IsConnected(), is added. That's my style: I only make changes right to the spot; lots of hard work, simplest output.
[Windows Mobile Software Development] camro:
hi postfix,

thanks for posting your changes, i will compare it and will try to look into.

one question: what do you mean with

"However, I still give up this imap idle thing because there is one big problem that I cannot do anything about it: WM closes a socket after 4.5 minutes, battery hurts.

4,5 minute ?
[Windows Mobile Software Development] SOHKis:
what file does the service manager create for the accounts..? i would like to convert the .cab into an OEM, but would like to have the accounts already setup when i flash my ROM.

previously, a settings.xml file was created w/the account information; but it seems to not be the case here.

Thanks for the continued development!
[Windows Mobile Software Development] camro:
the settings.xml will be written and reading from \Application\ImapPusher.

There you find the settings file.

cu camel
[Windows Mobile Software Development] Fixup:
I'm never a fan of features; as long as it does the job, does it well, I prefer it to be as simple as possible.

Keep these in mind:

Once screen is off, timer does not work, sleep() does not work. Therefore it is extremely difficult to check the status periodically and maintain the connection.
[Windows Mobile Software Development] camro:
hi fixup, thanks for your comments :)

about features ....well the idea is not to poll or imapidle, if new email araived (in an defined offline-time, and i think this is a really good feature.

i know almost nothing about wm6 interrupts, but i'm pretty sure, that there are a lot of programs on wm6, which are dealing with time, too also if screen is off. Therefore i had to investigate a lot of time to get this informations.

@fixup: maybe you have some ideas how to handle this - would like to chat with you about this ....

For now:i fixed/changed:

+ error handling, on starting service, if no connecton is possible - crash -> fixed

+ timestamp to logs/tracer

+ log window arranged

+ settings window

-> periode time set to sec 0-86400

-> fixing index of "connectiontype" list in settings

todo for me next:

- fixing all errors which let the appl. crashing

todo if i know how the best way is ..

(@fixup, maybe you can help me here how to handle this)

- timerange handling for offtime

- polling on periode time without imap idle service - extra service for it ?

idea could be, that one main-service (ex:mailcheckservice.exe) will dealing with timer and tell "imapidleservice.exe" if it is an "online time" or "offline time" and then imapidleservice will be stopped/paused or started(if not startet) or send the command to tmail for "send/receive"

(but as i told you, i would like to clarify this before..)

cu camel
[Windows Mobile Software Development] SOHKis:
had this error, i think b/c i was plugged in to the comp. via USB:

ImapPusherService.exe
SocketException
A blocking operation was interrupted by a call to WSACancelBlockingCall

at System.Net.Sockets.Socket.AcceptNoCheck()
at System.Net.Sockets.TcpListener.AcceptTcpClient()
at ImapPusherService.Module1.ListenerManager.WorkerThread()

*nvm, just noticed it's in your bug list

beautiful! thank you!
[Windows Mobile Software Development] camro:
i'm sorry,m that it cost so much time ...

(only for debugging i investigate (waste) 6hrs...

i have almost no expieriese in wm6 appl.

i'm working almost the last 2days whole the night ... and i'will be soon ready with the version.

i have almst implemented all my ideas which i wrote above...... :)

i made a new name for it "MailHandler", this have then included all the bugfixes etc......

connection error handling is now better :)

and the look is also a "little" bit changed.

here a preview :)

cu camel

(i'm hoping that someone can also help me to implement the triggers for Periodic timer) .....because now i have the contruct almost ready, but i don'T know where and how to handle the scheduler checking ...
[Windows Mobile Software Development] Fixup:
Well, when I look into the log of z-push, I see 5 minutes heartbeat too! Seems ActiveSync Direct Push is the same as IMAP idle, in terms of socket timeout. Seems Verizon network, at least in my area or with my account (prepaid), times out a socket in 5 minutes.

So, I might come back to xImapPusher.
[Windows Mobile Software Development] camro:
hi Fixup,

i have now done a lot of things.

(i'm working on this version the last few days ....)

i have some few bugs on management ...(loading/saving paramters - i changed a lot :)

i will sendyou then the whole project and then we can work together if you are interested.

if you can look only for the socket handling itself - it would be fine.

please let us do teamwork and please contact me(icq, email,ext..) (because my programming is not the best in vb)

cu camel
[Windows Mobile Software Development] camro:
@fixup

i don't think, that the heartbeat is always neccesary, because this is an setting in the mail-server. -> timeout for imapidle ....

on my own server i set it higher ...

on qmail it is 5min !

- - - - -

on other thing what i would need from your side....

the connection itself can be done via polling or via imapidle (for now only imapidle is inplace. i made paramter for timer(scheduler). and so we must start polling if the "cycle time" is gone.

Todo:

1.) imapidle is deactived and i want that "MailHandler" (oldname imappushermanager) send the polling command to poutlook(if time is in "online time". Therfore the parameter are included now also)

How can we handle this easily ?

2.) imapidle is activated (only in "online time"). So it must be close the socket if in "offline time" and had to be startconnection if "online time"

How can we handle this easily ?

this would helps a lot.

cu camel
[Windows Mobile Software Development] camro:
Well, i have no time to test, but here it is the first beta ...

please try and let me know your comments .....

expaination is almost like i told above ....

(for now i only test it on emulator...- so please be careully)

it is almost all done (excluded Scheduler).

good night - from austria :)

cu camel

EDIT:

go'on on post ....

http://xdaforums.com/showthread.php?p=4986072#post4986072

good night.

tomorrow i will start testing on my real pda :)
[Windows Mobile Software Development] grayme:
I'm (like others I am sure) following what you are up to.

You asked what we would like, for me I would like a program that

a) does the gmail push (in whatever is the way you find best) between hours set by the user

b) switches off the radio between set hours

c) switches profile between set hours (e.g. silent between 11pm to 6am), which could be linked to the radio being switched off.

Just a thought.
[Windows Mobile Software Development] camro:
wau, thank you for the comments ....

yes, i will suddenly include this...

so i will make option for every "Scheduler Plan" options to:

in Offline time: switcher (off/on) RADIO /GPRS / WLAN / BLUETOOTH

in Online time: switcher (off/on) RADIO /GPRS / WLAN / BLUETOOTH

"Online" time is the defined time in scheduler plan

"Offline" time is the undefined time in scheduler plan

is it also neccesary to disable a "connection" (like appl. "NoData" ?)

or is enough to have an option to disable the whole "GPRS" in offline ?

if no scheduler plan, then all the time checking (via imapidle or polling)

--------------------------

well the full structure for scheduler plan is ready.

but, please if it is ok, please let us following on the other thread of "MailHandler".

cu camel

PLS: do somebody have additional whishes or comments ? -> please post it under "MailHandler" thread
[Windows Mobile Software Development] Fixup:
For those who like to work on this project (and any WM programming), I have some hints. As I said, neither sleep nor timer work in WM. If you need these functions, you need to use these two functions:

CeRunAppAtTime

CeRunAppAtEvent

And, this is the key, don't run app with these functions. Instead, trig a named event and use WaitForSingleObject to wait for the event.

This sample code shows how to deal with auto connection after a disconnection:

HANDLE hEventDisconnect = CreateEvent (NULL, false, false, _T("EventDisconnect"));

CeRunAppAtEvent(_T("\\\\.\\Notifications\\NamedEvents\\EventDisconnect"), NOTIFICATION_EVENT_NET_DISCONNECT);

while(true){
WaitForSingleObject(hEventDisconnect, INFINITE);
PowerPolicyNotify(PPN_UNATTENDEDMODE,TRUE);
//Deal with reconnect here;
PowerPolicyNotify(PPN_UNATTENDEDMODE,FALSE);
}

Timer is similar, just use CeRunAppAtTime instead. This sample shows how to do a 30 seconds timer:

HANDLE hEventCheckIP = CreateEvent (NULL, false, false, _T("EventCheckIP"));

CeRunAppAtTime (_T("\\\\.\\Notifications\\NamedEvents\\EventCheckIP"), &GetTimeAfterSeconds(30));

while(true){
WaitForSingleObject(hEventCheckIP, INFINITE);
PowerPolicyNotify(PPN_UNATTENDEDMODE,TRUE);
//check IP address here;
CeRunAppAtTime (_T("\\\\.\\Notifications\\NamedEvents\\EventCheckIP"), &GetTimeAfterSeconds(30));
PowerPolicyNotify(PPN_UNATTENDEDMODE,FALSE);
}

Above skills are essential for WM programming in an nicely event-driven manner. I think many programmers don't know and their programs either run the phone hot, such as PortSip, or does not work as they expected, such as the sleep functions used in this ImapPusher.

This is the GetTimeAfterSeconds function:

SYSTEMTIME GetTimeAfterSeconds(DWORD nTimeInSeconds)
{
SYSTEMTIME sTime;
FILETIME fTime;
GetLocalTime (&sTime);
SystemTimeToFileTime(&sTime, &fTime);
ULARGE_INTEGER uTime;
uTime.HighPart = fTime.dwHighDateTime;
uTime.LowPart = fTime.dwLowDateTime;
uTime.LowPart += nTimeInSeconds*1000*1000*10;
fTime.dwHighDateTime = uTime.HighPart;
fTime.dwLowDateTime = uTime.LowPart;
FileTimeToSystemTime(&fTime, &sTime);

return sTime;
}
[Windows Mobile Software Development] camro:
Thanks, FixUP.

i tried to reach you via PM. Have you read your PM ?

i made a new version, and a lot of things are fixed now.

But i would like to do some things together with you.

Please see thread: MailHandler - i'm sure you'll like my version.

@FIXUP: please look to your PM box.
[Windows Mobile Software Development] Fixup:
This is the latest version of xImapPusher, fixed an exception caused by GetRsponse wtihout close. To deal with the 5-min timeout of Verizon EVDO, no sync is raised after a reconnection. This should reduce the battery drain.
[Windows Mobile Software Development] camro:
does this means, that the auto connection does not work now in imappusher ? (if it sleeps for longer as 5minutes ?) ?

can you implement this in imappusher ? because i'm not sure how to use this for verifying...and a 24h working timer....

thanks cu camel

@Fixup, please take a look to your PM box on xda.
[Windows Mobile Software Development] SOHKis:
thanks, i'm gonna give this a go sometime today.

really glad development has been continued, however .61 was not friendly w/ my battery. i had reverted back to the original version due to battery loss.
[Windows Mobile Software Development] camro:
please try "MailHandler", it's an extended version, which have a lot of extra things, and does handle the timing for checking connection, socket, more options for finetuning, more tracedetails, imapIdle also without ssl, etc ... and also more error handling. please give it a try and let me know.

cu camel
[Windows Mobile Software Development] SOHKis:
i'll give it a try, but the reason i have stayed away from mailhandler is due to all the extra things.

the original imapidle pusher worked great for me aside from only being able to sync 1 account.
[Windows Mobile Software Development] camro:
the service is at the base the same, but errorhandling, etc...

ex: there is no logout, if idle not supported and try to make new connection. so a lot of fun, if mailserver is not good configured, then you kill the mailserver

anyhow ... it's up to you.
[Windows Mobile Software Development] Noonski:
Development and hacking has undergone a slight facelift.

All subjects in Development and hacking can now can go into the subdived subthreads.

So in your case one is in Windows Mobile Software development and the other is in Applications and games.

Cheerz,
[Windows Mobile Software Development] Fixup:
When I have time, I'll build a xImapPusher based on .60, at least it is very clean.
[Windows Mobile Software Development] SOHKis:
thanks man, appreciate it.

Chances are you've seen it already, but here's an error i got from the most recent xImapPusher:

An unexpected error has occurred in ImapPusherService.exe.
Select Quit and then restart this program, or select Details for more information.

Only one usage of each socket address (protocol/network address/port) is normally permitted

details:

ImapPusherService.exe
SocketException
Only one usage of each socket address (protocol/network address/port) is normally permitted

at System.Net.Sockets.Socket.Bind(EndPoint localEP)
at System.Net.Sockets.TcpListener.Start()
at ImapPusherService.Module1.ListenerManager.WorkerThread()
[Windows Mobile Software Development] camro:
this seems to be, that imappusherservice is running. if you try to start it twice, then this error will shown.
[Windows Mobile Software Development] Fixup:
I posted the new version based on 0.60, it is very clean, very few changes, so it can only be more stable and efficient than the original. I also added a service to manage the connection.

http://xdaforums.com/showthread.php?p=5058826#post5058826
[JASJAR, XDA Exec, MDA Pro ROM Development] mazlano27:
HI. When i run apps on my universal, sometimes they just close on their own. Probably its low on ram... but even with apps like opera mobile, even if its the only app running, and my free ram is abt 26mb, it still shuts down. And sometimes hangs up the universal.

Im using tomals rom, and no doubt its great, but somehow this always happens with apps concerned with wifi. Internet explorer keeps hanging for elongated period of time, and skyfire and opera keep shutting down.

What do you suggest i do?

Thanx
[JASJAR, XDA Exec, MDA Pro ROM Development] orb3000:
I would perform a hard reset, then before installing a new app check the behaivour and locate the app that is causing the problem
[JASJAR, XDA Exec, MDA Pro ROM Development] mzalan:
on my device, Spb Insight sometimes shuts down randomly, but only when updating, and Spb Finance when entering a transaction. The latter can get pretty annoying as I have to check whether the transaction was actually saved...
[Windows Mobile Development and Hacking General] oscarbum:
And they give you the tools to do it.

http://blog.vitotechnology.com/?p=78

So get your skin included in their next release.

Before people jump on this, since the link includes tools previously unavailable for creating skins for Winterface, I felt this fell under Development. If you don't agree, move it.
[Windows Mobile Development and Hacking General] VitOl:
Contest: Winners Announcement!

http://blog.vitotechnology.com/?p=111
[Windows Mobile Development and Hacking General] Klael:
Where to download? I could not find a link in blog
[Windows Mobile Development and Hacking General] oscarbum:
It seems they are building cab files for the themes to be installed.
[Windows Mobile Development and Hacking General] dopodcht9000:
less people use.

bad tools.
[Upgrading, Modifying and Unlocking] ajaynagpure:
I have use htc touch p3452 with windows 6.1,i want updrade with 6.5 please help me.
[Upgrading, Modifying and Unlocking] pankaj981:
check out this link:

http://xdaforums.com/showthread.php?t=426540&highlight=htc+touch+p3452+rom
[Sable] thebranded:
If i install a app in the Ipaq file store like resco file explorer,

1. will the program run slower?

2. If i do a hard reset will the program become corrupt?

3. are there any negatives to doing it?

thanks

TB
[Sable] dirlan2001:
Hi,

1 = nope

2 = definitly ( cos it has shortcuts to the main System that points to needed files which are not in the program folder)

3 = iPAQ FileStore is only of limited size... Better use it to save pics and files you really don't want to loose

:D

Dirk
[Sable] thebranded:
cheers,

question 1 was my main concern. will probally install all the must have small apps, resoc file explorer, PIM backup etc so can save a bit of space on the main memory
[Windows Mobile Development and Hacking General] SimpTheChimp:
There are so many threads out there with different versions of the Opera Mobile 9.5 beta... So which version of Opera Mobile 9.5 is the latest and greatest? :D
[Windows Mobile Development and Hacking General] PatcheZ:
look in general section

here
[Windows Mobile Development and Hacking General] wg5566:
There is always a new latest build every month or even every several days some times. Since chefs here continue to port newer builds from new device releases. of different brands of WM devices.

But if you are talking about greatest, the answer is simply NO.

Maybe you can find a build best fits your own device with your specific ROM, but there is no best for all.

Generally speaking, newer builds should be better than older ones, since Opera engineers keep fixing all bugs they found and keep making efforts to enhance the perfomance of Opera Mobile. But chances are you always need some DIY work to make any build of Opera Mobile to fulfile your own requirement, which depends on you device, your rom, and your personal preference.

Refer to my own experience on making Build#16277 to best perform on my QVGA TYTN II with a WM6.5 ROM, I posted it here.
[Touch Diamond2, Pure General] XionaxPDA:
HTC Touch Diamond2 rom-upgrade (EU_Dutch)

http://www.htc.com/nl/SupportViewNews.aspx?dl_id=571&news_id=166

So far no changelog found...