[Imap-uw] Tracing IMAP session
HI! I have some problems with the IMAP client of the Palm Pre phone and would like to debug this. How can I enable tracing all IMAP communication in uw-imap 2007e? I have seen trace files on the net, but cannot find how to enable that. Thanks! Thomas ___ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
Re: [Imap-uw] Tracing IMAP session
This is normally done from the client side, due to the security sensitivity of IMAP transactions. Check to see if there is some option in your smart phone to enable IMAP session logging. Otherwise, the normal way to do server-based logging is with tee (for non-encrypted sessions) and/or an SSL proxy that does logging. Sadly, most smart phone IMAP clients are pretty bad. Palm once had a good client, but I don't think it ever got built for the Pre. On Wed, 12 Aug 2009, Thomas Börkel wrote: I have some problems with the IMAP client of the Palm Pre phone and would like to debug this. How can I enable tracing all IMAP communication in uw-imap 2007e? I have seen trace files on the net, but cannot find how to enable that. -- Mark -- http://panda.com/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.___ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
Re: [Imap-uw] Tracing IMAP session
On Wed, 12 Aug 2009, Thomas Börkel wrote: Otherwise, the normal way to do server-based logging is with tee (for non-encrypted sessions) and/or an SSL proxy that does logging. How do I do this with tee? I am starting imapd via xinetd and I can do non-encrypted for debugging. I have an executable script: #!/bin/sh tee /tmp/imapd-$$-in | /usr/local/sbin/imapd | tee /tmp/imapd-$$-out and have [x]inetd invoke this instead of the imapd binary. Sadly, most smart phone IMAP clients are pretty bad. Palm once had a good client, but I don't think it ever got built for the Pre. No, it's a totally new client. It works with some IMAP servers, but not very good with uw-imap, yet. So, I'd like to give Palm some feedback. Good luck with that. The fellow who was the developer there was extremely IMAP-clueful, but I have no idea what happened with the product after he left Palm about a year ago. -- Mark -- http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote.___ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
Re: [Imap-uw] Tracing IMAP session
On Wed, 12 Aug 2009, Thomas Börkel wrote: Yes, I heard that. I was using his program on the old PalmOS and it only had one glitch with uw-imap. I don't know why he left Palm. I don't know either. Anyway, the first problem is, that the client cannot find the standard folders or any folder. This is what it happens during initial sync Well, although it is a bit strange that it seems to have listed the #mh/ namespace (which you don't have enabled) but not the default namespace, I don't see anything wrong in the transcript. There's nothing wrong with it trying the #mh/ namespace, but it should have listed the default namespace as well. The only bad thing that might have come from that is that it wouldn't show any mailboxes other than INBOX. The transcript shows that it looked up all messages that arrived since August 5, and it clearly did 30 other commands (probably fetching those messages) before entering IDLE mode. Once it's in IDLE mode, there's no particular reason for it to exit the IDLE unless a new message comes in. So, what is the client doing that you think is wrong? -- Mark -- http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote.___ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
Re: [Imap-uw] Tracing IMAP session
On Thu, 13 Aug 2009, Thomas Börkel wrote: The only bad thing that might have come from that is that it wouldn't show any mailboxes other than INBOX. Yes, that's exactly the problem for that case. It's not that the client does not work at all. It does only show my INBOX, no other folder (sent, trash or any custom folder). OK, then that's why; it's only attempting to list the #mh/ namespace and not the other personal namespaces. Perhaps it's just listing the last one. If it only lists one, the first one would be a better choice. So, since it insists on only querying the #mh namespace, I tried enabled #mh in uw-imap. What you did isn't sufficient, as you discovered; you actually have to create mailboxes in the mh format. I recommend that you don't do that, and that you delete your .mh_profile file as that will cause more problems than it solves. Instead, you need to figure out how to make your client list the first personal namespace (which is the normal default namespace for any IMAP server). So, what is the client doing that you think is wrong? In this case, it was still syncing. But initial sync should be done after the fetch of the messages of the last 7 days, not take forever. Well, that doesn't seem right. By doing an IDLE, it's clearly done with its interactions with the IMAP server and knows it. So it shouldn't be saying that it's still syncing. -- Mark -- http://panda.com/mrc Democracy is two wolves and a sheep deciding what to eat for lunch. Liberty is a well-armed sheep contesting the vote.___ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
Re: [Imap-uw] Tracing IMAP session
HI! Mark Crispin wrote: Well, although it is a bit strange that it seems to have listed the #mh/ namespace (which you don't have enabled) but not the default namespace, When I enter something for root folder, then it uses this instead of #mh/. But I have to enter the FULL path, like /home/mythtv/mail!? If I enter /, it searches in the root of my hard drive... Client: ~~A3 capability ~~A4 list /home/mythtv/mail * uw-imap then answers with: * LIST (\NoSelect \HasChildren) / /home/mythtv/mail * LIST (\NoInferiors \UnMarked) / /home/mythtv/mail/Trash * LIST (\NoInferiors \UnMarked) / /home/mythtv/mail/Lall * LIST (\NoInferiors \UnMarked) / /home/mythtv/mail/Sent * LIST (\NoInferiors \UnMarked) / /home/mythtv/mail/Test ~~A4 OK LIST completed So, now I have all of my folders plus a folder named mail visible in the client. Also, I see messages in the folders. It's getting better. :-) I have disabled #mh in uw-imap again BTW. Remaining questions for this case: Why do I have to enter the full local path as root folder in the client, although I configured the mail path of my home directory in /etc/c-client.cf? Why do I have that mail IMAP folder in the client? Thanks! Thomas ___ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw