bugMIT/GNU Scheme - Bugs: bug #27626, possible race condition in IMAIL's...


bug #27626: possible race condition in IMAIL's IMAP synchronization and Edwin's mode line

Submitted by:  Taylor R. Campbell <riastradh>
Submitted on:  Wed 07 Oct 2009 09:40:12 PM UTC  
Category:  imail Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  None Privacy:  Public
Assigned to:  Taylor R. Campbell <riastradh> Originator Name: 
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 07 Oct 2009 09:40:12 PM UTC, original submission:  

When I hit `g', Edwin hung while trying to draw the mode line with the error that %GET-MESSAGE was returning #F in COUNT-UNSEEN-MESSAGES.  Somehow, the index exceeded the length of the folder, suggesting that FIRST-UNSEEN-MESSAGE-INDEX returned a number exceeding the folder's length, which suggests in turn that the IMAP code processed an UNSEEN reply before the folder was fully updated, and that Edwin tried to redraw the mode line in that window.  No IMAP trace or transcript available, unfortunately.

Several stopgap measures should work around this: write (>= i n) rather than (= i n) in COUNT-UNSEEN-MESSAGES, change the handler for UNSEEN replies to take the minimum of the folder's length and the new unseen value, &c.

Taylor R. Campbell <riastradh>
Project MemberIn charge of this item.


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by riastradh (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5