Gnus development mailing list
 help / color / mirror / Atom feed
* Altered patch for nnimap.
@ 2000-07-22 16:14 Lloyd Zusman
  0 siblings, 0 replies; only message in thread
From: Lloyd Zusman @ 2000-07-22 16:14 UTC (permalink / raw)


On and off over the past few months I've been having problems using
`nnimap': the message count wasn't getting updated in my `nnimap'
groups when I'd type `g' in the Groups buffer (i.e.,
`gnus-group-get-new-news').  I originally thought that this was solely
a function of the fact that I was using the University of Washington
imap software on my machine, but recently I converted to Courier imap,
with the same incorrect behavior.

A few weeks ago, Simon Josefsson sent me a suggested patch which was
hoped to be a fix for this problem.  Unfortunately, that patch didn't
work, but when I altered the patch to apply his changes to a different
function within `nnimap.el' than they were orginally applied to, then
things began to work correctly for me ... and with both the UoW and
Courier imap software, I'd like to add.

I then sent Mr. Josefsson my altered patch and this discussion in two
private emails about a week apart, but for some reason, either my
emails to him or his replies never made it.  Therefore, I'm posting
the altered patch here (below).

Comments?

*** nnimap.el-  Mon Jul 17 22:02:53 2000
--- nnimap.el   Mon Jul 17 22:46:40 2000
***************
*** 331,338 ****
--- 331,342 ----
  (defun nnimap-find-minmax-uid (group &optional examine)
    "Find lowest and highest active article nummber in GROUP.
  If EXAMINE is non-nil the group is selected read-only."
    (with-current-buffer nnimap-server-buffer
+     ;; XXX this `or' is for UoW imapd problem, it doesn't notice
+     ;; new mail in currently selected mailbox without a re-select/examine.
+     (or (null (imap-current-mailbox nnimap-server-buffer))
+       (imap-mailbox-unselect nnimap-server-buffer))
      (when (imap-mailbox-select group examine)
        (let (minuid maxuid)
        (when (> (imap-mailbox-get 'exists) 0)
          (imap-fetch "1,*" "UID" nil 'nouidfetch)

-- 
 Lloyd Zusman
 ljz@asfast.com



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-07-22 16:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-22 16:14 Altered patch for nnimap Lloyd Zusman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).