Gnus development mailing list
 help / color / mirror / Atom feed
From: David Edmondson <dme@dme.org>
To: ding@gnus.org
Subject: new nnimap: marks with no flags (patch)
Date: Mon, 20 Sep 2010 12:37:16 +0100	[thread overview]
Message-ID: <87bp7smys3.fsf@ut.hh.sledj.net> (raw)

If a Gnus mark has no corresponding IMAP flag an error results in
nnimap-request-set-mark. Suggested patch:

diff --git a/lisp/nnimap.el b/lisp/nnimap.el
index b3a9e5b..7e870b5 100644
--- a/lisp/nnimap.el
+++ b/lisp/nnimap.el
@@ -530,7 +530,8 @@ textual parts.")
 				(mapconcat #'identity flags " ")))))))
 	;; Wait for the last command to complete to avoid later
 	;; syncronisation problems with the stream.
-	(nnimap-wait-for-response sequence)))))
+	(when sequence
+	  (nnimap-wait-for-response sequence))))))
 
 (deffoo nnimap-request-accept-article (group &optional server last)
   (when (nnimap-possibly-change-group nil server)

dme.
-- 
David Edmondson, http://dme.org



             reply	other threads:[~2010-09-20 11:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-20 11:37 David Edmondson [this message]
2010-09-20 15:18 ` Ted Zlatanov
2010-09-20 15:52   ` Lars Magne Ingebrigtsen
2010-09-20 15:51 ` Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bp7smys3.fsf@ut.hh.sledj.net \
    --to=dme@dme.org \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).