nnimap.el (nnimap-find-article-by-message-id): return nil when no article found.

This commit is contained in:
Andrew Cohen 2011-06-21 22:13:24 +00:00 committed by Katsumi Yamaoka
parent 95f41d9ad1
commit 183a6951a6
2 changed files with 6 additions and 1 deletions

View file

@ -5,6 +5,11 @@
(auth-sources): Prefer the ~/.authinfo file over the ~/.authinfo.gpg
file, especially when saving.
2011-06-21 Andrew Cohen <cohen@andy.bu.edu>
* nnimap.el (nnimap-find-article-by-message-id): return nil when no
article found.
2011-06-18 Teodor Zlatanov <tzz@lifelogs.com>
* auth-source.el (auth-source-netrc-use-gpg-tokens): Replace

View file

@ -929,7 +929,7 @@ textual parts.")
(car (setq result (nnimap-parse-response))))
;; Select the last instance of the message in the group.
(and (setq article
(car (last (assoc "SEARCH" (cdr result)))))
(car (last (cdr (assoc "SEARCH" (cdr result))))))
(string-to-number article))))))
(defun nnimap-delete-article (articles)