11 May 2011 08:05
Use of wl-summary-auto-sync-marks
Erik Hetzner <egh <at> e6h.org>
2011-05-11 06:05:30 GMT
2011-05-11 06:05:30 GMT
Hi,
The setting of the variable wl-summary-auto-sync-marks seems to have a
significant impact on the speed of loading folders. For instance, it
just took WL about 20 seconds to “synchronize marks” while loading a
virtual folder with about 600 messages. All the other functions of
loading the folder took significantly less time.
However, I seem to recall having bad results when I set
wl-summary-auto-sync-marks to nil. I think I recall flags being
lost. (I use WL on both a desktop and a laptop, so I need marks synced
to IMAP).
So, I had the idea of making it possible to allow the variable to be
nil, t, or an alist. Here is the implementation in
wl-summary-sync-update:
(defun wl-summary-sync-update (&optional unset-cursor
disable-killed
sync-all
no-check)
[...]
;; synchronize marks.
(if (and crossed (if (listp wl-summary-auto-sync-marks)
(wl-get-assoc-list-value wl-summary-auto-sync-marks
(elmo-folder-name-internal folder))
wl-summary-auto-sync-marks))
(wl-summary-sync-marks))
[...]
(Continue reading)
RSS Feed