diff options
| author | Dave Love | 2000-10-03 16:12:25 +0000 |
|---|---|---|
| committer | Dave Love | 2000-10-03 16:12:25 +0000 |
| commit | 72fc04186ab21d555fd993fbab1971a8a8bd0c72 (patch) | |
| tree | 351f676ee80932fca34c7559c6e5bc639ebe913d | |
| parent | 9a075f5ee620121397918b562205e9091afabee4 (diff) | |
| download | emacs-72fc04186ab21d555fd993fbab1971a8a8bd0c72.tar.gz emacs-72fc04186ab21d555fd993fbab1971a8a8bd0c72.zip | |
2000-10-03 Dave Love <fx@gnu.org>
* mail-source.el (mail-sources): Revert to nil.
2000-10-03 ShengHuo ZHU <zsh@cs.rochester.edu>
* mail-source.el (mail-source-report-new-mail): Use
nnheader-cancel-timer.
2000-10-03 Simon Josefsson <simon@josefsson.org>
* mail-source.el (mail-source-imap-file-coding-system): New variable.
(mail-source-fetch-imap): Use it.
| -rw-r--r-- | lisp/gnus/mail-source.el | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/gnus/mail-source.el b/lisp/gnus/mail-source.el index 0f721adf5ea..1702ca2b7bc 100644 --- a/lisp/gnus/mail-source.el +++ b/lisp/gnus/mail-source.el | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | :version "21.1" | 36 | :version "21.1" |
| 37 | :group 'gnus) | 37 | :group 'gnus) |
| 38 | 38 | ||
| 39 | (defcustom mail-sources '((file)) | 39 | (defcustom mail-sources nil |
| 40 | "*Where the mail backends will look for incoming mail. | 40 | "*Where the mail backends will look for incoming mail. |
| 41 | This variable is a list of mail source specifiers. | 41 | This variable is a list of mail source specifiers. |
| 42 | See Info node `(gnus)Mail Source Specifiers'." | 42 | See Info node `(gnus)Mail Source Specifiers'." |
| @@ -719,9 +719,9 @@ This only works when `display-time' is enabled." | |||
| 719 | (> (prefix-numeric-value arg) 0)))) | 719 | (> (prefix-numeric-value arg) 0)))) |
| 720 | (setq mail-source-report-new-mail on) | 720 | (setq mail-source-report-new-mail on) |
| 721 | (and mail-source-report-new-mail-timer | 721 | (and mail-source-report-new-mail-timer |
| 722 | (cancel-timer mail-source-report-new-mail-timer)) | 722 | (nnheader-cancel-timer mail-source-report-new-mail-timer)) |
| 723 | (and mail-source-report-new-mail-idle-timer | 723 | (and mail-source-report-new-mail-idle-timer |
| 724 | (cancel-timer mail-source-report-new-mail-idle-timer)) | 724 | (nnheader-cancel-timer mail-source-report-new-mail-idle-timer)) |
| 725 | (setq mail-source-report-new-mail-timer nil) | 725 | (setq mail-source-report-new-mail-timer nil) |
| 726 | (setq mail-source-report-new-mail-idle-timer nil) | 726 | (setq mail-source-report-new-mail-idle-timer nil) |
| 727 | (if on | 727 | (if on |
| @@ -789,8 +789,12 @@ This only works when `display-time' is enabled." | |||
| 789 | (autoload 'imap-error-text "imap") | 789 | (autoload 'imap-error-text "imap") |
| 790 | (autoload 'imap-message-flags-add "imap") | 790 | (autoload 'imap-message-flags-add "imap") |
| 791 | (autoload 'imap-list-to-message-set "imap") | 791 | (autoload 'imap-list-to-message-set "imap") |
| 792 | (autoload 'imap-range-to-message-set "imap") | ||
| 792 | (autoload 'nnheader-ms-strip-cr "nnheader")) | 793 | (autoload 'nnheader-ms-strip-cr "nnheader")) |
| 793 | 794 | ||
| 795 | (defvar mail-source-imap-file-coding-system 'binary | ||
| 796 | "Coding system for the crashbox made by `mail-source-fetch-imap'.") | ||
| 797 | |||
| 794 | (defun mail-source-fetch-imap (source callback) | 798 | (defun mail-source-fetch-imap (source callback) |
| 795 | "Fetcher for imap sources." | 799 | "Fetcher for imap sources." |
| 796 | (mail-source-bind (imap source) | 800 | (mail-source-bind (imap source) |
| @@ -804,7 +808,7 @@ This only works when `display-time' is enabled." | |||
| 804 | user (or (cdr (assoc from mail-source-password-cache)) | 808 | user (or (cdr (assoc from mail-source-password-cache)) |
| 805 | password) buf) | 809 | password) buf) |
| 806 | (imap-mailbox-select mailbox nil buf)) | 810 | (imap-mailbox-select mailbox nil buf)) |
| 807 | (let (str (coding-system-for-write 'binary)) | 811 | (let (str (coding-system-for-write mail-source-imap-file-coding-system)) |
| 808 | (with-temp-file mail-source-crash-box | 812 | (with-temp-file mail-source-crash-box |
| 809 | ;; In some versions of FSF Emacs, inserting unibyte | 813 | ;; In some versions of FSF Emacs, inserting unibyte |
| 810 | ;; string into multibyte buffer may convert 8-bit chars | 814 | ;; string into multibyte buffer may convert 8-bit chars |
| @@ -829,7 +833,8 @@ This only works when `display-time' is enabled." | |||
| 829 | (incf found (mail-source-callback callback server)) | 833 | (incf found (mail-source-callback callback server)) |
| 830 | (when (and remove fetchflag) | 834 | (when (and remove fetchflag) |
| 831 | (imap-message-flags-add | 835 | (imap-message-flags-add |
| 832 | (imap-list-to-message-set remove) fetchflag nil buf)) | 836 | (imap-range-to-message-set (gnus-compress-sequence remove)) |
| 837 | fetchflag nil buf)) | ||
| 833 | (if dontexpunge | 838 | (if dontexpunge |
| 834 | (imap-mailbox-unselect buf) | 839 | (imap-mailbox-unselect buf) |
| 835 | (imap-mailbox-close buf)) | 840 | (imap-mailbox-close buf)) |