Go to file
Doug Torrance 1d84a1d8e4 wmbiff: EXAMINE before STATUS
Patch by Nye Liu <nyet@nyet.org> to fix Debian bug #830889 [1].

Dear Maintainer,

Outlook Office365 IMAP servers now expect a client to issue at least one
EXAMINE before STATUS, or UNSEEN is always zero:

"unsub" folder has two messages, one unseen.

Broken:

56:04.84 > CJFK1 LOGIN "nyet@xxx" "xxx"
56:21.99 < CJFK1 OK LOGIN completed.
56:21.99 > CJFK2 STATUS unsub (MESSAGES UNSEEN)
56:22.20 < * STATUS unsub (MESSAGES 2 UNSEEN 0)
56:22.20 < CJFK2 OK STATUS completed.

Works:

56:46.04 > BPEB1 LOGIN "nyet@xxx" "xxx"
56:51.43 < BPEB1 OK LOGIN completed.
56:51.43 > BPEB2 EXAMINE unsub
56:51.67 < * 2 EXISTS
56:51.67 < * 0 RECENT
56:51.67 < * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)
56:51.67 < * OK [PERMANENTFLAGS ()] Permanent flags
56:51.67 < * OK [UNSEEN 2] Is the first unseen message
56:51.67 < * OK [UIDVALIDITY 164] UIDVALIDITY value
56:51.67 < * OK [UIDNEXT 16] The next unique identifier value
56:51.67 < BPEB2 OK [READ-ONLY] EXAMINE completed.
56:51.67 > BPEB3 STATUS unsub (MESSAGES UNSEEN)
56:51.89 < * STATUS unsub (MESSAGES 2 UNSEEN 1)
56:51.89 < BPEB3 OK STATUS completed.

Attached is a patch to always issue EXAMINE before a STATUS.

It doesn't seem like it has to be done before every STATUS, just at least once.
Is only a proof of concept. I don't presume to know the best way to handle
optimizing it.

[1] https://bugs.debian.org/830889
2016-07-12 19:32:49 +01:00
AlsaMixer.app Keep mute state from getting out of sync with reality 2014-12-04 10:18:32 +00:00
libdockapp libdockapp: Bump to version 0.7.2. 2015-10-21 09:07:01 -04:00
Temperature.app Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmacpi wmacpi: Update header file location. 2015-10-21 09:07:01 -04:00
wmacpiload Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmauda Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmbatteries Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmbattery wmbattery: Bump to version 2.50. 2015-08-30 21:24:10 +01:00
wmbiff wmbiff: EXAMINE before STATUS 2016-07-12 19:32:49 +01:00
wmbutton Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmcalc wmcalc: Fix reference to config file in manpage. 2016-06-22 07:43:47 +02:00
wmCalClock Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmcalendar Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmcdplay wmcdplay: Bump to version 1.1. 2014-12-18 18:43:10 +00:00
wmckgmail wmckgmail uses libdockapp 2015-08-16 09:41:07 +01:00
wmcliphist wmcliphist: Release version 2.1. 2014-11-23 10:26:23 +00:00
wmclock wmclock: Bump to version 1.0.16. 2015-09-24 10:16:48 +01:00
wmcpufreq wmcpufreq uses libdockapp 2015-08-16 09:41:07 +01:00
wmcpuload Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmfemon Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmfsm wmfsm: Bump to version 0.36. 2015-08-21 08:24:26 +01:00
wmfu Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmget wmget: Bump to version 0.6.1. 2016-02-07 21:06:01 +05:30
wmifinfo wmifinfo: Bump to version 0.10. 2014-12-09 11:17:56 +00:00
wmifs wmifs: Bump to version 1.8. 2016-04-20 01:01:26 -04:00
wmitime wmitime: Bump to version 0.5. 2015-08-21 08:23:15 +01:00
wmix Allow sound api to be specified in the config file 2015-09-17 03:23:07 +01:00
wmkeys wmkeys uses libdockapp 2015-08-16 09:41:07 +01:00
wmload wmload: Bump to version 0.9.7. 2015-08-24 07:17:16 +01:00
wmMatrix Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmmemload wmmemload: Bump to version 0.1.8. 2015-04-07 08:52:22 +01:00
wmmenu wmmenu: Update header file location. 2015-10-21 09:07:01 -04:00
wmmixer Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmmixer-alsa wmmixer-alsa: Add to repository. 2014-08-06 13:23:10 -06:00
wmmon wmmon uses libdockapp 2015-08-15 09:52:19 +01:00
wmmoonclock Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmnet wmnet: increase polling delay to 0.1 sec and maxrate to 120kb 2015-01-11 21:31:40 +00:00
wmnotify Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmpager Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmpower Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmppp.app wmppp.app: Bump to version 1.3.2. 2015-08-25 15:38:30 +01:00
wmshutdown wmshutdown: Bump to version 1.4. 2015-06-13 06:02:21 -06:00
wmsm.app wmsm uses libdockapp 2015-08-16 09:41:07 +01:00
wmsmixer Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmSMPmon wmSMPmon uses libdockapp 2015-08-16 09:41:07 +01:00
wmsun wmsun: Bump to version 1.05. 2015-08-25 15:39:34 +01:00
wmsupermon Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmtime wmtime: Bump to version 1.4. 2015-08-24 07:19:12 +01:00
wmtop wmtop: Bump to version 0.85. 2016-02-08 19:17:21 +05:30
wmtv wmtv: Remove define of VERSION in favor of version defined by autoconf. 2016-02-01 15:26:00 +05:30
wmtz wmtz uses libdockapp 2015-08-16 09:41:07 +01:00
wmWeather Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmwifi Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
wmwlmon Remove trailing whitespace. 2014-10-05 19:18:49 +01:00
dockapps.db.in Add wmtop information for dockapps webpage. 2016-02-09 06:26:47 +05:30
update-dockapps.pl Document new "hosted" field in update-dockapps.pl. 2015-06-15 23:13:08 +01:00