diff options
| author | Adam W | 2011-11-24 00:15:19 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-11-24 00:15:19 +0000 |
| commit | 29291ef14b0592d235f4b62463a7eb4471e5a55f (patch) | |
| tree | 8d01ac95d40d34314221f7e8d375d308c47ede9c /lisp | |
| parent | 01d06b1fc449b3b6d7637576d634ad8704bb8433 (diff) | |
| download | emacs-29291ef14b0592d235f4b62463a7eb4471e5a55f.tar.gz emacs-29291ef14b0592d235f4b62463a7eb4471e5a55f.zip | |
mail-source.el (mail-source-fetch-maildir): Don't expect the return value of `delete-file', that returns nil for a local file but returns t for a remote file using ssh.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/mail-source.el | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 3eeaad09529..9c05fab048e 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-11-24 Adam W <adam_w67@yahoo.com> (tiny change) | ||
| 2 | |||
| 3 | * mail-source.el (mail-source-fetch-maildir): Don't expect the return | ||
| 4 | value of `delete-file', that returns nil for a local file but returns t | ||
| 5 | for a remote file using ssh. | ||
| 6 | |||
| 1 | 2011-11-22 Lars Magne Ingebrigtsen <larsi@gnus.org> | 7 | 2011-11-22 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 8 | ||
| 3 | * shr.el (shr-table-horizontal-line): Use "?\s" instead of "? " to | 9 | * shr.el (shr-table-horizontal-line): Use "?\s" instead of "? " to |
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index 6e6ef76c0c1..2315cff6261 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -1017,6 +1017,7 @@ This only works when `display-time' is enabled." | |||
| 1017 | (dolist (file (directory-files (concat path subdir) t)) | 1017 | (dolist (file (directory-files (concat path subdir) t)) |
| 1018 | (when (and (not (file-directory-p file)) | 1018 | (when (and (not (file-directory-p file)) |
| 1019 | (not (if function | 1019 | (not (if function |
| 1020 | ;; `function' should return nil if successful. | ||
| 1020 | (funcall function file mail-source-crash-box) | 1021 | (funcall function file mail-source-crash-box) |
| 1021 | (let ((coding-system-for-write | 1022 | (let ((coding-system-for-write |
| 1022 | mm-text-coding-system) | 1023 | mm-text-coding-system) |
| @@ -1035,7 +1036,8 @@ This only works when `display-time' is enabled." | |||
| 1035 | ;;; (insert "\n\n") | 1036 | ;;; (insert "\n\n") |
| 1036 | ;; MMDF mail format | 1037 | ;; MMDF mail format |
| 1037 | (insert "\001\001\001\001\n")) | 1038 | (insert "\001\001\001\001\n")) |
| 1038 | (delete-file file))))) | 1039 | (delete-file file) |
| 1040 | nil)))) | ||
| 1039 | (incf found (mail-source-callback callback file)) | 1041 | (incf found (mail-source-callback callback file)) |
| 1040 | (mail-source-delete-crash-box))))) | 1042 | (mail-source-delete-crash-box))))) |
| 1041 | found))) | 1043 | found))) |