Don't try to update marks and stuff if the backend didn't return the article number.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 11 Jan 2011 19:03:55 +0000 (20:03 +0100)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Tue, 11 Jan 2011 19:03:55 +0000 (20:03 +0100)
This fixes an Exchange-related nnimap bug.

lisp/ChangeLog
lisp/gnus-int.el

index 5cc1419..f01c905 100644 (file)
@@ -1,5 +1,9 @@
 2011-01-11  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-int.el (gnus-request-accept-article): Don't try to update marks
+       and stuff if the backend didn't return the article number.  This fixes
+       an Exchange-related nnimap bug.
+
        * gnus-sum.el (gnus-summary-next-article): Remove hack to reselect
        group window, because it does the wrong thing when a separate frame
        displays the group buffer.
index 71a9aa9..b805167 100644 (file)
@@ -1,7 +1,7 @@
 ;;; gnus-int.el --- backend interface functions for Gnus
 
 ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
-;;   2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
+;;   2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
 
 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
 ;; Keywords: news
@@ -711,7 +711,9 @@ If GROUP is nil, all groups on GNUS-COMMAND-METHOD are scanned."
          (if (stringp group) (gnus-group-real-name group) group)
          (cadr gnus-command-method)
          last)))
-    (when (and gnus-agent (gnus-agent-method-p gnus-command-method))
+    (when (and gnus-agent
+              (gnus-agent-method-p gnus-command-method)
+              (cdr result))
       (gnus-agent-regenerate-group group (list (cdr result))))
     result))