Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IMAP Server Settings Checking For Mail Every X Minutes Question

82 views
Skip to first unread message

John

unread,
Sep 30, 2006, 8:49:00 PM9/30/06
to
Greetings,

I'm doing some beta testing of Outlook 2007 B2TR and comparing it to
Thunderbird 1.5.0.7. I've noticed that Outlook drops its connection to
port 143 after a while and Thunderbird always stays connected to 143
(horray). I submitted a bug report to MS on the overall behavior, but
after digging deeper I may have just configured Outlook in an
apples-to-oranges way compared to Thunderbird. I would like a little
help in understanding what goes on under the hood with Thunderbird.

First I'll explain what I did in Outlook. My server supports IDLE so I
disabled automatic send/receive in every x minutes in Outlook and
browsed to my Inbox on my IMAP server. After a few minutes the
connection on port 143 goes away and no new messages arrive.

I did some captures in Ethereal and I see lines such as Request: IDLE,
Response + entering idle mode, Request: DONE, [TCP Retransmission]
Request: DONE,(repeats 4 times) then the connection stops.


Then I decided to look at Thunderbird in Ethereal to see why it keeps
the connection up while Outlook doesn't.I see several IDLE and NOOP
requests and responses. Then I see the same thing as in Outlook,
Request: DONE, [TCP Retransmission] Request: DONE (Repeats 4 times).

Then I see a TCP SYN,ACK and an IMAP capability request and IMAP
Response: * OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDERN NAMESPACE
THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE AUTH=CRAM-MD5
ACL ACL2-UNION STARTTLS] IMAP ready.\r\n Next I see my userID and
password being sent.

For some reason Thunderbird noticed that the connection was gone and
reauthenticated. Is this what the "Check for Mail Every X Minutes"
setting does? And of that option is checked is it the equivalent of
pressing the "Get Mail" button on the tool bar which will check your
mail and of course log you in if your session has timed out? In effect
is Thunderbird doing a scheduled send/receive like Outlook would if that
option is checked?

John

unread,
Oct 3, 2006, 12:32:20 AM10/3/06
to
After further testing I decided to disable the Check for Mail Every ___
Minutes setting in Thunderbird. The results were almost like Outlook
when looking at the captures in Ethereal. I see two IDLE and NOOP
iterations before the connection simply dies and no reconnection attempt
is made.

Is this expected behavior? I've looked at quite a few university
websites that give instruction on how to setup Thunderbird for their
students and some explicitly state to turn off automatic checking.

Shouldn't Thunderbird send IDLE and NOOP messages continuously?

Telmo Amaral

unread,
Oct 3, 2006, 5:32:49 PM10/3/06
to
John wrote:
> .... I've noticed that Outlook drops its connection to port 143
> after a while and Thunderbird always stays connected to 143
> (horray). .... I decided to look at Thunderbird in Ethereal to
> see why it keeps the connection up while Outlook doesn't. I see
> several IDLE and NOOP requests and responses. ....

I've heavily snipped your post, because I'm not familiar with how
IMAP works under the hood, and only want to point out a detail
that you don't refer, but which should be taken into account in
your tests. Under Tools | Account Settings | <your IMAP account> |
Server Settings | Advanced, there's a setting to 'Use IDLE command
if the server supports it'. With that setting checked, Thunderbird
warns me of new messages as soon as they arrive at the server.
This mechanism appears to work like a sort of server callback:
with it, you do not need to use 'Check for new messages every X
minutes'. However, you do need to use 'Check for new messages at
startup', so that Thunderbird may establish a connection to the
server and then stand idle. Therefore, it's advisable to restart
Thunderbird after changing the 'Use IDLE' setting.

Andrew DeFaria

unread,
Oct 3, 2006, 5:37:23 PM10/3/06
to
I've heard about this and I believe at one time I checked to see if my IMAP server supports it and I think it does. But I haven't been able to verify that that is indeed the case. I mean it seems to say immediately when new mail arrives but if I turn off the "Check for new messages every X minutes" IIRC I never get notified...

-- 
Andrew DeFaria
Work: 214-549-0855
Cell: 214-289-1959
I'm a tagline virus, please copy me to your signature file

Telmo Amaral

unread,
Oct 3, 2006, 5:55:30 PM10/3/06
to

That happens to me, but only when 'Check for new messages at
startup' is not checked. I suppose it's because Thunderbird needs
to take the initiative of connecting to the server at least once,
in order to enter the 'idle' mode...

Andrew DeFaria

unread,
Oct 3, 2006, 7:20:22 PM10/3/06
to
I think I just verified your findings! Thanks.
Shell to DOS... Come in DOS, do you copy? Shell to DOS...

John

unread,
Oct 4, 2006, 8:24:44 PM10/4/06
to
Yeah, I've got all that enabled. I'm just trying to see if "Check for
Mail Every 5 Minutes" actually does a send/receive. When I disabled
that setting Thunderbird actually disconnected in the same way that
outlook did. That should not be happening since an IDLE and or NOOP
command should be sent before there's a timeout. I've got a windows
mobile client that does that, but by looking at the captures I did in
Ethereal both Thunderbird and Outlook drop the connection and don't
always send an IDLE/NOOP to the server, which in my opinion is a bug.
0 new messages