diff options
| author | Glenn Morris | 2009-01-24 03:35:50 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-01-24 03:35:50 +0000 |
| commit | 38291a39bc244b1acba9bf5b7fe40a54f4af6d40 (patch) | |
| tree | 9e8611338caf6d1b872bf5bebaf118003bb9f9d7 | |
| parent | 26ec94df156c77c031a6904c3720dec1dd9f0668 (diff) | |
| download | emacs-38291a39bc244b1acba9bf5b7fe40a54f4af6d40.tar.gz emacs-38291a39bc244b1acba9bf5b7fe40a54f4af6d40.zip | |
(rmail-insert-inbox-text): Revert replacement of "popmail" by "pormail".
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/mail/rmail.el | 12 |
2 files changed, 14 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5550a2ceb83..301ee053d0f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2009-01-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * mail/rmail.el (rmail-insert-inbox-text): Revert replacement of | ||
| 4 | "popmail" by "pormail". | ||
| 5 | |||
| 6 | * language/ethio-util.el (rmail-current-message, rmail-message-vector): | ||
| 7 | Remove unneeded declarations. | ||
| 8 | |||
| 1 | 2009-01-24 Jay Belanger <jay.p.belanger@gmail.com> | 9 | 2009-01-24 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 10 | ||
| 3 | * calc/calc-poly.el (calcFunc-apart): Improve test for | 11 | * calc/calc-poly.el (calcFunc-apart): Improve test for |
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index 8930cc3bce9..87ca0d20ccf 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el | |||
| @@ -1785,18 +1785,18 @@ is non-nil if the user has supplied the password interactively. | |||
| 1785 | (or (memq (file-locked-p buffer-file-name) '(nil t)) | 1785 | (or (memq (file-locked-p buffer-file-name) '(nil t)) |
| 1786 | (error "RMAIL file %s is locked" | 1786 | (error "RMAIL file %s is locked" |
| 1787 | (file-name-nondirectory buffer-file-name))) | 1787 | (file-name-nondirectory buffer-file-name))) |
| 1788 | (let (file tofile delete-files movemail pormail got-password password) | 1788 | (let (file tofile delete-files movemail popmail got-password password) |
| 1789 | (while files | 1789 | (while files |
| 1790 | ;; Handle remote mailbox names specially; don't expand as filenames | 1790 | ;; Handle remote mailbox names specially; don't expand as filenames |
| 1791 | ;; in case the userid contains a directory separator. | 1791 | ;; in case the userid contains a directory separator. |
| 1792 | (setq file (car files)) | 1792 | (setq file (car files)) |
| 1793 | (let ((url-data (rmail-parse-url file))) | 1793 | (let ((url-data (rmail-parse-url file))) |
| 1794 | (setq file (nth 0 url-data)) | 1794 | (setq file (nth 0 url-data)) |
| 1795 | (setq pormail (nth 1 url-data)) | 1795 | (setq popmail (nth 1 url-data)) |
| 1796 | (setq password (nth 2 url-data)) | 1796 | (setq password (nth 2 url-data)) |
| 1797 | (setq got-password (nth 3 url-data))) | 1797 | (setq got-password (nth 3 url-data))) |
| 1798 | 1798 | ||
| 1799 | (if pormail | 1799 | (if popmail |
| 1800 | (setq renamep t) | 1800 | (setq renamep t) |
| 1801 | (setq file (file-truename | 1801 | (setq file (file-truename |
| 1802 | (substitute-in-file-name (expand-file-name file))))) | 1802 | (substitute-in-file-name (expand-file-name file))))) |
| @@ -1817,13 +1817,13 @@ is non-nil if the user has supplied the password interactively. | |||
| 1817 | (expand-file-name buffer-file-name)))) | 1817 | (expand-file-name buffer-file-name)))) |
| 1818 | ;; Always use movemail to rename the file, | 1818 | ;; Always use movemail to rename the file, |
| 1819 | ;; since there can be mailboxes in various directories. | 1819 | ;; since there can be mailboxes in various directories. |
| 1820 | (when (not pormail) | 1820 | (when (not popmail) |
| 1821 | ;; On some systems, /usr/spool/mail/foo is a directory | 1821 | ;; On some systems, /usr/spool/mail/foo is a directory |
| 1822 | ;; and the actual inbox is /usr/spool/mail/foo/foo. | 1822 | ;; and the actual inbox is /usr/spool/mail/foo/foo. |
| 1823 | (if (file-directory-p file) | 1823 | (if (file-directory-p file) |
| 1824 | (setq file (expand-file-name (user-login-name) | 1824 | (setq file (expand-file-name (user-login-name) |
| 1825 | file)))) | 1825 | file)))) |
| 1826 | (cond (pormail | 1826 | (cond (popmail |
| 1827 | (message "Getting mail from the remote server ...")) | 1827 | (message "Getting mail from the remote server ...")) |
| 1828 | ((and (file-exists-p tofile) | 1828 | ((and (file-exists-p tofile) |
| 1829 | (/= 0 (nth 7 (file-attributes tofile)))) | 1829 | (/= 0 (nth 7 (file-attributes tofile)))) |
| @@ -1835,7 +1835,7 @@ is non-nil if the user has supplied the password interactively. | |||
| 1835 | ;; rename or copy the file FILE to TOFILE if and as appropriate. | 1835 | ;; rename or copy the file FILE to TOFILE if and as appropriate. |
| 1836 | (cond ((not renamep) | 1836 | (cond ((not renamep) |
| 1837 | (setq tofile file)) | 1837 | (setq tofile file)) |
| 1838 | ((or (file-exists-p tofile) (and (not pormail) | 1838 | ((or (file-exists-p tofile) (and (not popmail) |
| 1839 | (not (file-exists-p file)))) | 1839 | (not (file-exists-p file)))) |
| 1840 | nil) | 1840 | nil) |
| 1841 | (t | 1841 | (t |