Bug#830889: Looks like my patch violates RFC3501

Nye Liu nyet at nyet.org
Wed Jul 13 01:31:52 UTC 2016


While it seems you can examine once and keep calling status (violates 
RFC), if you close before calling status, it doesn't work.. you have to 
keep calling examine/close before each status

So three choices:

RFC broken 2 ways (status while folder is open, using status to count 
UNSEEN):
login
examine
while 1
   status (MESSAGES UNSEEN)
done

Fully RFC compliant:

login
examine
while 1
   search(SEEN)
   search(UNSEEN)
done

or

Somewhat RFC broken (uses status to count UNSEEN)

login
while 1
   examine
   close
   status (MESSAGES UNSEEN)
done

The downside to search is that the results might be very long for a 
large mailbox with many, many messages, and that result has to be split up.



More information about the Pkg-wmaker-devel mailing list