diff options
| author | Paul Reilly | 2008-08-29 04:27:46 +0000 |
|---|---|---|
| committer | Paul Reilly | 2008-08-29 04:27:46 +0000 |
| commit | acdc20068b4f6947ba5af2ab3880381a3af53d4b (patch) | |
| tree | 948c4274283abdfe1595fd43f8f42c2905d61ede /lisp | |
| parent | 40bb7e6f66eb8f88c324bc2756e19f7128d06603 (diff) | |
| download | emacs-acdc20068b4f6947ba5af2ab3880381a3af53d4b.tar.gz emacs-acdc20068b4f6947ba5af2ab3880381a3af53d4b.zip | |
Resolve all byte compiler warnings and enable IMAP/movemail support.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/mail/pmail.el | 63 | ||||
| -rw-r--r-- | lisp/mail/pmaildesc.el | 3 | ||||
| -rw-r--r-- | lisp/mail/pmailhdr.el | 2 | ||||
| -rw-r--r-- | lisp/mail/pmailkwd.el | 34 | ||||
| -rw-r--r-- | lisp/mail/pmailmm.el | 20 | ||||
| -rw-r--r-- | lisp/mail/pmailmsc.el | 1 | ||||
| -rw-r--r-- | lisp/mail/pmailsort.el | 7 | ||||
| -rw-r--r-- | lisp/mail/pmailsum.el | 16 |
8 files changed, 86 insertions, 60 deletions
diff --git a/lisp/mail/pmail.el b/lisp/mail/pmail.el index 712a921d27f..09ec42d13e3 100644 --- a/lisp/mail/pmail.el +++ b/lisp/mail/pmail.el | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994, 1995, 1996, 1997, 1998, | 3 | ;; Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994, 1995, 1996, 1997, 1998, |
| 4 | ;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 | 4 | ;; 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 5 | ;; Free Software Foundation, Inc. | 5 | ; Free Software Foundation, Inc. |
| 6 | 6 | ||
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| 8 | ;; Keywords: mail | 8 | ;; Keywords: mail |
| @@ -199,6 +199,11 @@ please report it with \\[report-emacs-bug].") | |||
| 199 | (declare-function mail-position-on-field "sendmail" (field &optional soft)) | 199 | (declare-function mail-position-on-field "sendmail" (field &optional soft)) |
| 200 | (declare-function mail-text-start "sendmail" ()) | 200 | (declare-function mail-text-start "sendmail" ()) |
| 201 | (declare-function pmail-update-summary "pmailsum" (&rest ignore)) | 201 | (declare-function pmail-update-summary "pmailsum" (&rest ignore)) |
| 202 | (declare-function unrmail "unrmail" (file to-file)) | ||
| 203 | (declare-function rmail-dont-reply-to "mail-utils" (destinations)) | ||
| 204 | (declare-function pmail-summary-goto-msg "pmailsum" (&optional n nowarn skip-pmail)) | ||
| 205 | (declare-function pmail-summary-pmail-update "pmailsum" ()) | ||
| 206 | (declare-function pmail-summary-update "pmailsum" (n)) | ||
| 202 | 207 | ||
| 203 | (defun pmail-probe (prog) | 208 | (defun pmail-probe (prog) |
| 204 | "Determine what flavor of movemail PROG is. | 209 | "Determine what flavor of movemail PROG is. |
| @@ -289,20 +294,20 @@ It is useful to set this variable in the site customization file.") | |||
| 289 | ;;;###autoload | 294 | ;;;###autoload |
| 290 | (defcustom pmail-ignored-headers | 295 | (defcustom pmail-ignored-headers |
| 291 | (concat "^via:\\|^mail-from:\\|^origin:\\|^references:\\|^sender:" | 296 | (concat "^via:\\|^mail-from:\\|^origin:\\|^references:\\|^sender:" |
| 292 | "\\|^status:\\|^received:\\|^content-transfer-encoding:" | 297 | "\\|^status:\\|^received:\\|^x400-originator:\\|^x400-recipients:" |
| 293 | "\\|^x400-\\(received\\|mts-identifier\\|content-type\\|originator\\|recipients\\):" | 298 | "\\|^x400-received:\\|^x400-mts-identifier:\\|^x400-content-type:" |
| 294 | "\\|^list-\\(help\\|post\\|subscribe\\|id\\|unsubscribe\\|archive\\):" | 299 | "\\|^\\(resent-\\|\\)message-id:\\|^summary-line:\\|^resent-date:" |
| 295 | "\\|^resent-\\(face\\|x-.*\\|organization\\|openpgp\\|date\\|message-id\\):" | ||
| 296 | "\\|^thread-\\(topic\\|index\\)" | ||
| 297 | "\\|^summary-line:\\|^precedence:\\|^message-id:" | ||
| 298 | "\\|^path:\\|^face:\\|^delivered-to:\\|^lines:" | ||
| 299 | "\\|^return-path:\\|^errors-to:\\|^return-receipt-to:" | ||
| 300 | "\\|^content-\\(length\\|type\\|class\\|disposition\\):" | ||
| 301 | "\\|^nntp-posting-host:\\|^path:\\|^x-char.*:\\|^x-face:\\|^face:" | 300 | "\\|^nntp-posting-host:\\|^path:\\|^x-char.*:\\|^x-face:\\|^face:" |
| 301 | "\\|^x-mailer:\\|^delivered-to:\\|^lines:" | ||
| 302 | "\\|^content-transfer-encoding:\\|^x-coding-system:" | ||
| 303 | "\\|^return-path:\\|^errors-to:\\|^return-receipt-to:" | ||
| 304 | "\\|^precedence:\\|^list-help:\\|^list-post:\\|^list-subscribe:" | ||
| 305 | "\\|^list-id:\\|^list-unsubscribe:\\|^list-archive:" | ||
| 306 | "\\|^content-length:\\|^nntp-posting-date:\\|^user-agent" | ||
| 302 | "\\|^importance:\\|^envelope-to:\\|^delivery-date\\|^openpgp:" | 307 | "\\|^importance:\\|^envelope-to:\\|^delivery-date\\|^openpgp:" |
| 303 | "\\|^mbox-line:\\|^cancel-lock:\\|^in-reply-to:\\|^comment:" | 308 | "\\|^mbox-line:\\|^cancel-lock:\\|^DomainKey-Signature:" |
| 304 | "\\|^x-.*:\\|^domainkey-signature:" | 309 | "\\|^resent-face:\\|^resent-x.*:\\|^resent-organization:\\|^resent-openpgp:" |
| 305 | "\\|^original-recipient:\\|^from ") | 310 | "\\|^x-.*:\\|^domainkey-signature:\\|^original-recipient:\\|^from ") |
| 306 | "*Regexp to match header fields that Pmail should normally hide. | 311 | "*Regexp to match header fields that Pmail should normally hide. |
| 307 | \(See also `pmail-nonignored-headers', which overrides this regexp.) | 312 | \(See also `pmail-nonignored-headers', which overrides this regexp.) |
| 308 | This variable is used for reformatting the message header, | 313 | This variable is used for reformatting the message header, |
| @@ -867,7 +872,7 @@ If `pmail-display-summary' is non-nil, make a summary for this PMAIL file." | |||
| 867 | (unwind-protect | 872 | (unwind-protect |
| 868 | (progn | 873 | (progn |
| 869 | (write-region (point-min) (point-max) old-file) | 874 | (write-region (point-min) (point-max) old-file) |
| 870 | (unpmail old-file new-file) | 875 | (unrmail old-file new-file) |
| 871 | (message "Replacing BABYL format with mbox format...") | 876 | (message "Replacing BABYL format with mbox format...") |
| 872 | (let ((inhibit-read-only t)) | 877 | (let ((inhibit-read-only t)) |
| 873 | (erase-buffer) | 878 | (erase-buffer) |
| @@ -1609,9 +1614,9 @@ is non-nil if the user has supplied the password interactively. | |||
| 1609 | (or pass supplied-password) | 1614 | (or pass supplied-password) |
| 1610 | got-password) | 1615 | got-password) |
| 1611 | (error "Emacs movemail does not support %s protocol" proto)) | 1616 | (error "Emacs movemail does not support %s protocol" proto)) |
| 1612 | (list file | 1617 | (list (concat proto "://" user "@" host) |
| 1613 | (or (string-equal proto "pop") (string-equal proto "imap")) | 1618 | (or (string-equal proto "pop") (string-equal proto "imap")) |
| 1614 | supplied-password | 1619 | (or supplied-password pass) |
| 1615 | got-password)))) | 1620 | got-password)))) |
| 1616 | 1621 | ||
| 1617 | ((string-match "^po:\\([^:]+\\)\\(:\\(.*\\)\\)?" file) | 1622 | ((string-match "^po:\\([^:]+\\)\\(:\\(.*\\)\\)?" file) |
| @@ -1655,9 +1660,9 @@ is non-nil if the user has supplied the password interactively. | |||
| 1655 | ;; in case of multiple inboxes that need moving. | 1660 | ;; in case of multiple inboxes that need moving. |
| 1656 | (concat ".newmail-" | 1661 | (concat ".newmail-" |
| 1657 | (file-name-nondirectory | 1662 | (file-name-nondirectory |
| 1658 | (if (memq system-type '(windows-nt cygwin)) | 1663 | (if (memq system-type '(windows-nt cygwin ms-dos)) |
| 1659 | ;; cannot have "po:" in file name | 1664 | ;; cannot have colons in file name |
| 1660 | (substring file 3) | 1665 | (replace-regexp-in-string ":" "-" file) |
| 1661 | file))) | 1666 | file))) |
| 1662 | ;; Use the directory of this pmail file | 1667 | ;; Use the directory of this pmail file |
| 1663 | ;; because it's a nuisance to use the homedir | 1668 | ;; because it's a nuisance to use the homedir |
| @@ -1695,7 +1700,7 @@ is non-nil if the user has supplied the password interactively. | |||
| 1695 | (buffer-disable-undo errors) | 1700 | (buffer-disable-undo errors) |
| 1696 | (let ((args | 1701 | (let ((args |
| 1697 | (append | 1702 | (append |
| 1698 | (list pmail-movemail-program nil errors nil) | 1703 | (list (or pmail-movemail-program "movemail") nil errors nil) |
| 1699 | (if pmail-preserve-inbox | 1704 | (if pmail-preserve-inbox |
| 1700 | (list "-p") | 1705 | (list "-p") |
| 1701 | nil) | 1706 | nil) |
| @@ -2747,15 +2752,15 @@ use \\[mail-yank-original] to yank the original message into it." | |||
| 2747 | ;; Remove unwanted names from reply-to, since Mail-Followup-To | 2752 | ;; Remove unwanted names from reply-to, since Mail-Followup-To |
| 2748 | ;; header causes all the names in it to wind up in reply-to, not | 2753 | ;; header causes all the names in it to wind up in reply-to, not |
| 2749 | ;; in cc. But if what's left is an empty list, use the original. | 2754 | ;; in cc. But if what's left is an empty list, use the original. |
| 2750 | (let* ((reply-to-list (pmail-dont-reply-to reply-to))) | 2755 | (let* ((reply-to-list (rmail-dont-reply-to reply-to))) |
| 2751 | (if (string= reply-to-list "") reply-to reply-to-list)) | 2756 | (if (string= reply-to-list "") reply-to reply-to-list)) |
| 2752 | subject | 2757 | subject |
| 2753 | (pmail-make-in-reply-to-field from date message-id) | 2758 | (pmail-make-in-reply-to-field from date message-id) |
| 2754 | (if just-sender | 2759 | (if just-sender |
| 2755 | nil | 2760 | nil |
| 2756 | ;; mail-strip-quoted-names is NOT necessary for | 2761 | ;; mail-strip-quoted-names is NOT necessary for |
| 2757 | ;; pmail-dont-reply-to to do its job. | 2762 | ;; rmail-dont-reply-to to do its job. |
| 2758 | (let* ((cc-list (pmail-dont-reply-to | 2763 | (let* ((cc-list (rmail-dont-reply-to |
| 2759 | (mail-strip-quoted-names | 2764 | (mail-strip-quoted-names |
| 2760 | (if (null cc) to (concat to ", " cc)))))) | 2765 | (if (null cc) to (concat to ", " cc)))))) |
| 2761 | (if (string= cc-list "") nil cc-list))) | 2766 | (if (string= cc-list "") nil cc-list))) |
| @@ -3099,20 +3104,12 @@ specifying headers which should not be copied into the new message." | |||
| 3099 | ;; Now start sending new message; default header fields from original. | 3104 | ;; Now start sending new message; default header fields from original. |
| 3100 | ;; Turn off the usual actions for initializing the message body | 3105 | ;; Turn off the usual actions for initializing the message body |
| 3101 | ;; because we want to get only the text from the failure message. | 3106 | ;; because we want to get only the text from the failure message. |
| 3102 | ;; | ||
| 3103 | ;; NOTE: the use of pmail-msgref-vector is a red flag. I'm not | ||
| 3104 | ;; sure (yet) what the right thing to do here is but I strongly | ||
| 3105 | ;; suspect it needs something along the lines of: | ||
| 3106 | ;; ...(pmail-desc-set-attribute pmail-desc-resent-index nil n)... | ||
| 3107 | ;; The test to run to see the breakage and figure out what needs | ||
| 3108 | ;; to be done is to cause a "resend" to happen and verify that it | ||
| 3109 | ;; is either broken or works properly. For now the unbound | ||
| 3110 | ;; variable is being left intact. -pmr 8/12/2008 | ||
| 3111 | (let (mail-signature mail-setup-hook) | 3107 | (let (mail-signature mail-setup-hook) |
| 3112 | (if (pmail-start-mail nil nil nil nil nil pmail-this-buffer | 3108 | (if (pmail-start-mail nil nil nil nil nil pmail-this-buffer |
| 3113 | (list (list 'pmail-mark-message | 3109 | (list (list 'pmail-mark-message |
| 3114 | pmail-this-buffer | 3110 | pmail-this-buffer |
| 3115 | (aref pmail-msgref-vector msgnum) | 3111 | (with-current-buffer pmail-buffer |
| 3112 | (pmail-desc-get-start msgnum)) | ||
| 3116 | "retried"))) | 3113 | "retried"))) |
| 3117 | ;; Insert original text as initial text of new draft message. | 3114 | ;; Insert original text as initial text of new draft message. |
| 3118 | ;; Bind inhibit-read-only since the header delimiter | 3115 | ;; Bind inhibit-read-only since the header delimiter |
diff --git a/lisp/mail/pmaildesc.el b/lisp/mail/pmaildesc.el index a6f5d6cc4bd..09887d4b76a 100644 --- a/lisp/mail/pmaildesc.el +++ b/lisp/mail/pmaildesc.el | |||
| @@ -30,6 +30,9 @@ | |||
| 30 | 30 | ||
| 31 | (require 'pmailhdr) | 31 | (require 'pmailhdr) |
| 32 | 32 | ||
| 33 | ;; External function declarations | ||
| 34 | (declare-function pmail-narrow-to-header "pmail" (msg)) | ||
| 35 | |||
| 33 | (defvar pmail-desc-attributes nil | 36 | (defvar pmail-desc-attributes nil |
| 34 | "A private variable providing temporary access to message attributes.") | 37 | "A private variable providing temporary access to message attributes.") |
| 35 | 38 | ||
diff --git a/lisp/mail/pmailhdr.el b/lisp/mail/pmailhdr.el index ca8da65ae3e..c626ce88ff2 100644 --- a/lisp/mail/pmailhdr.el +++ b/lisp/mail/pmailhdr.el | |||
| @@ -173,7 +173,7 @@ The current buffer, possibly narrowed, contains a single message." | |||
| 173 | "Show all headers. | 173 | "Show all headers. |
| 174 | The current buffer, possibly narrowed, contains a single message." | 174 | The current buffer, possibly narrowed, contains a single message." |
| 175 | ;; Remove all the overlays used to control hiding headers. | 175 | ;; Remove all the overlays used to control hiding headers. |
| 176 | (mapcar 'delete-overlay pmail-header-overlay-list) | 176 | (mapc 'delete-overlay pmail-header-overlay-list) |
| 177 | (setq pmail-header-display-state nil)) | 177 | (setq pmail-header-display-state nil)) |
| 178 | 178 | ||
| 179 | (defun pmail-header-toggle-visibility (&optional arg) | 179 | (defun pmail-header-toggle-visibility (&optional arg) |
diff --git a/lisp/mail/pmailkwd.el b/lisp/mail/pmailkwd.el index 69300c975ae..485c4ddc65f 100644 --- a/lisp/mail/pmailkwd.el +++ b/lisp/mail/pmailkwd.el | |||
| @@ -41,8 +41,6 @@ | |||
| 41 | ;; completion. It is better to use strings with the label functions | 41 | ;; completion. It is better to use strings with the label functions |
| 42 | ;; and let them worry about making the label. | 42 | ;; and let them worry about making the label. |
| 43 | 43 | ||
| 44 | (provide 'pmailkwd) | ||
| 45 | |||
| 46 | (eval-when-compile | 44 | (eval-when-compile |
| 47 | (require 'mail-utils)) | 45 | (require 'mail-utils)) |
| 48 | 46 | ||
| @@ -61,6 +59,25 @@ These have a well-defined meaning to the PMAIL system.") | |||
| 61 | "Keywords used to label messages. | 59 | "Keywords used to label messages. |
| 62 | These are all user-defined, unlike `pmail-attributes'.") | 60 | These are all user-defined, unlike `pmail-attributes'.") |
| 63 | 61 | ||
| 62 | |||
| 63 | ;; External library declarations. | ||
| 64 | (declare-function mail-comma-list-regexp "mail-utils" (labels)) | ||
| 65 | (declare-function mail-parse-comma-list "mail-utils" ()) | ||
| 66 | (declare-function pmail-desc-add-keyword "pmaildesc" (keyword n)) | ||
| 67 | (declare-function pmail-desc-get-end "pmaildesc" (n)) | ||
| 68 | (declare-function pmail-desc-get-keywords "pmaildesc" (n)) | ||
| 69 | (declare-function pmail-desc-get-start "pmaildesc" (n)) | ||
| 70 | (declare-function pmail-desc-remove-keyword "pmaildesc" (keyword n)) | ||
| 71 | (declare-function pmail-display-labels "pmail" ()) | ||
| 72 | (declare-function pmail-maybe-set-message-counters "pmail" ()) | ||
| 73 | (declare-function pmail-message-labels-p "pmail" (msg labels)) | ||
| 74 | (declare-function pmail-msgbeg "pmail" (n)) | ||
| 75 | (declare-function pmail-set-attribute "pmail" (attr state &optional msgnum)) | ||
| 76 | (declare-function pmail-set-message-deleted-p "pmail" (n state)) | ||
| 77 | (declare-function pmail-show-message "pmail" (&optional n no-summary)) | ||
| 78 | (declare-function pmail-summary-exists "pmail" ()) | ||
| 79 | (declare-function pmail-summary-update "pmailsum" (n)) | ||
| 80 | |||
| 64 | ;;;; Low-level functions. | 81 | ;;;; Low-level functions. |
| 65 | 82 | ||
| 66 | (defun pmail-attribute-p (s) | 83 | (defun pmail-attribute-p (s) |
| @@ -143,15 +160,6 @@ message." | |||
| 143 | ;; return the string, not the symbol | 160 | ;; return the string, not the symbol |
| 144 | result))) | 161 | result))) |
| 145 | 162 | ||
| 146 | (declare-function pmail-maybe-set-message-counters "pmail" ()) | ||
| 147 | (declare-function pmail-display-labels "pmail" ()) | ||
| 148 | (declare-function pmail-msgbeg "pmail" (n)) | ||
| 149 | (declare-function pmail-set-message-deleted-p "pmail" (n state)) | ||
| 150 | (declare-function pmail-message-labels-p "pmail" (msg labels)) | ||
| 151 | (declare-function pmail-show-message "pmail" (&optional n no-summary)) | ||
| 152 | (declare-function mail-comma-list-regexp "mail-utils" (labels)) | ||
| 153 | (declare-function mail-parse-comma-list "mail-utils.el" ()) | ||
| 154 | |||
| 155 | (defun pmail-set-label (l state &optional n) | 163 | (defun pmail-set-label (l state &optional n) |
| 156 | "Add or remove label L in message N. | 164 | "Add or remove label L in message N. |
| 157 | The label L is added when STATE is non-nil, otherwise it is | 165 | The label L is added when STATE is non-nil, otherwise it is |
| @@ -175,7 +183,7 @@ current buffer, possibly narrowed, displays a message." | |||
| 175 | (pmail-desc-remove-keyword str n)))))) | 183 | (pmail-desc-remove-keyword str n)))))) |
| 176 | (pmail-display-labels) | 184 | (pmail-display-labels) |
| 177 | ;; Deal with the summary buffer. | 185 | ;; Deal with the summary buffer. |
| 178 | (when pmail-summary-buffer | 186 | (when (pmail-summary-exists) |
| 179 | (pmail-summary-update n))) | 187 | (pmail-summary-update n))) |
| 180 | 188 | ||
| 181 | ;; Motion on messages with keywords. | 189 | ;; Motion on messages with keywords. |
| @@ -223,5 +231,7 @@ With prefix argument N moves forward N messages with these labels." | |||
| 223 | (when (> n 0) | 231 | (when (> n 0) |
| 224 | (message "No following message with labels %s" labels))))) | 232 | (message "No following message with labels %s" labels))))) |
| 225 | 233 | ||
| 234 | (provide 'pmailkwd) | ||
| 235 | |||
| 226 | ;; arch-tag: 1149979c-8e47-4333-9629-cf3dc887a6a7 | 236 | ;; arch-tag: 1149979c-8e47-4333-9629-cf3dc887a6a7 |
| 227 | ;;; pmailkwd.el ends here | 237 | ;;; pmailkwd.el ends here |
diff --git a/lisp/mail/pmailmm.el b/lisp/mail/pmailmm.el index 4b9337ded2f..551b12876be 100644 --- a/lisp/mail/pmailmm.el +++ b/lisp/mail/pmailmm.el | |||
| @@ -39,6 +39,9 @@ | |||
| 39 | 39 | ||
| 40 | ;;; Code: | 40 | ;;; Code: |
| 41 | 41 | ||
| 42 | ;; For ... | ||
| 43 | (require 'pmail) | ||
| 44 | |||
| 42 | ;;; Variables | 45 | ;;; Variables |
| 43 | 46 | ||
| 44 | (defcustom pmail-mime-media-type-handlers-alist | 47 | (defcustom pmail-mime-media-type-handlers-alist |
| @@ -190,10 +193,11 @@ format." | |||
| 190 | ;; of the preceding part. | 193 | ;; of the preceding part. |
| 191 | ;; We currently don't handle that. | 194 | ;; We currently don't handle that. |
| 192 | (let ((boundary (cdr (assq 'boundary content-type))) | 195 | (let ((boundary (cdr (assq 'boundary content-type))) |
| 193 | beg next) | 196 | beg end next) |
| 194 | (unless boundary | 197 | (unless boundary |
| 195 | (error "No boundary defined" content-type content-disposition | 198 | (pmail-mm-get-boundary-error-message |
| 196 | content-transfer-encoding)) | 199 | "No boundary defined" content-type content-disposition |
| 200 | content-transfer-encoding)) | ||
| 197 | (setq boundary (concat "\n--" boundary)) | 201 | (setq boundary (concat "\n--" boundary)) |
| 198 | ;; Hide the body before the first bodypart | 202 | ;; Hide the body before the first bodypart |
| 199 | (goto-char (point-min)) | 203 | (goto-char (point-min)) |
| @@ -216,8 +220,9 @@ format." | |||
| 216 | ((looking-at "[ \t]*\n") | 220 | ((looking-at "[ \t]*\n") |
| 217 | (setq next (copy-marker (match-end 0)))) | 221 | (setq next (copy-marker (match-end 0)))) |
| 218 | (t | 222 | (t |
| 219 | (error "Malformed boundary" content-type | 223 | (pmail-mm-get-boundary-error-message |
| 220 | content-disposition content-transfer-encoding))) | 224 | "Malformed boundary" content-type content-disposition |
| 225 | content-transfer-encoding))) | ||
| 221 | (delete-region end next) | 226 | (delete-region end next) |
| 222 | ;; Handle the part. | 227 | ;; Handle the part. |
| 223 | (save-match-data | 228 | (save-match-data |
| @@ -396,6 +401,11 @@ This calls `pmail-mime-show' to do the real job." | |||
| 396 | (pmail-mime-show t)) | 401 | (pmail-mime-show t)) |
| 397 | (view-buffer buf))) | 402 | (view-buffer buf))) |
| 398 | 403 | ||
| 404 | (defun pmail-mm-get-boundary-error-message (message type disposition encoding) | ||
| 405 | "Return MESSAGE with more information on the main mime components." | ||
| 406 | (error "%s; type: %s; disposition: %s; encoding: %s" | ||
| 407 | message type disposition encoding)) | ||
| 408 | |||
| 399 | (provide 'pmailmm) | 409 | (provide 'pmailmm) |
| 400 | 410 | ||
| 401 | ;; arch-tag: 3f2c5e5d-1aef-4512-bc20-fd737c9d5dd9 | 411 | ;; arch-tag: 3f2c5e5d-1aef-4512-bc20-fd737c9d5dd9 |
diff --git a/lisp/mail/pmailmsc.el b/lisp/mail/pmailmsc.el index 407e25ede4f..4cb782a0786 100644 --- a/lisp/mail/pmailmsc.el +++ b/lisp/mail/pmailmsc.el | |||
| @@ -31,6 +31,7 @@ | |||
| 31 | (defvar pmail-current-message) | 31 | (defvar pmail-current-message) |
| 32 | (defvar pmail-inbox-list) | 32 | (defvar pmail-inbox-list) |
| 33 | 33 | ||
| 34 | (declare-function mail-parse-comma-list "mail-utils" ()) | ||
| 34 | (declare-function pmail-parse-file-inboxes "pmail" ()) | 35 | (declare-function pmail-parse-file-inboxes "pmail" ()) |
| 35 | (declare-function pmail-show-message "pmail" (&optional n no-summary)) | 36 | (declare-function pmail-show-message "pmail" (&optional n no-summary)) |
| 36 | 37 | ||
diff --git a/lisp/mail/pmailsort.el b/lisp/mail/pmailsort.el index 69e626f5c06..91d93bc12a7 100644 --- a/lisp/mail/pmailsort.el +++ b/lisp/mail/pmailsort.el | |||
| @@ -33,6 +33,11 @@ | |||
| 33 | 33 | ||
| 34 | (autoload 'timezone-make-date-sortable "timezone") | 34 | (autoload 'timezone-make-date-sortable "timezone") |
| 35 | 35 | ||
| 36 | (declare-function pmail-dont-reply-to "mail-utils" (destinations)) | ||
| 37 | (declare-function pmail-desc-get-marker-end "pmailsort" (msgnum)) | ||
| 38 | (declare-function pmail-desc-get-marker-start "pmailsort" (msgnum)) | ||
| 39 | (declare-function pmail-update-summary "pmailsum" (&rest ignore)) | ||
| 40 | |||
| 36 | ;; Sorting messages in Pmail buffer | 41 | ;; Sorting messages in Pmail buffer |
| 37 | 42 | ||
| 38 | ;;;###autoload | 43 | ;;;###autoload |
| @@ -151,8 +156,6 @@ KEYWORDS is a comma-separated list of labels." | |||
| 151 | 156 | ||
| 152 | ;; Basic functions | 157 | ;; Basic functions |
| 153 | 158 | ||
| 154 | (declare-function pmail-update-summary "pmailsum" (&rest ignore)) | ||
| 155 | |||
| 156 | (defun pmail-sort-messages (reverse keyfun) | 159 | (defun pmail-sort-messages (reverse keyfun) |
| 157 | "Sort messages of current Pmail file. | 160 | "Sort messages of current Pmail file. |
| 158 | If 1st argument REVERSE is non-nil, sort them in reverse order. | 161 | If 1st argument REVERSE is non-nil, sort them in reverse order. |
diff --git a/lisp/mail/pmailsum.el b/lisp/mail/pmailsum.el index 4dc3682a6f0..224d1480e1b 100644 --- a/lisp/mail/pmailsum.el +++ b/lisp/mail/pmailsum.el | |||
| @@ -213,6 +213,15 @@ | |||
| 213 | map) | 213 | map) |
| 214 | "Keymap for `pmail-summary-mode'.") | 214 | "Keymap for `pmail-summary-mode'.") |
| 215 | 215 | ||
| 216 | (declare-function pmail-abort-edit "pmailedit" ()) | ||
| 217 | (declare-function pmail-cease-edit "pmailedit"()) | ||
| 218 | (declare-function pmail-set-label "pmailkwd" (l state &optional n)) | ||
| 219 | (declare-function pmail-output-read-file-name "pmailout" ()) | ||
| 220 | (declare-function pmail-output-read-pmail-file-name "pmailout" ()) | ||
| 221 | (declare-function mail-comma-list-regexp "mail-utils" (labels)) | ||
| 222 | (declare-function mail-send-and-exit "sendmail" (&optional arg)) | ||
| 223 | (declare-function mail-strip-quoted-names "mail-utils" (address)) | ||
| 224 | |||
| 216 | ;; Entry points for making a summary buffer. | 225 | ;; Entry points for making a summary buffer. |
| 217 | 226 | ||
| 218 | ;; Regenerate the contents of the summary | 227 | ;; Regenerate the contents of the summary |
| @@ -1053,13 +1062,6 @@ argument says to read a file name and use that file as the inbox." | |||
| 1053 | (end-of-buffer)) | 1062 | (end-of-buffer)) |
| 1054 | (forward-line -1)) | 1063 | (forward-line -1)) |
| 1055 | 1064 | ||
| 1056 | (declare-function pmail-abort-edit "pmailedit" ()) | ||
| 1057 | (declare-function pmail-cease-edit "pmailedit"()) | ||
| 1058 | (declare-function pmail-set-label "pmailkwd" (l state &optional n)) | ||
| 1059 | (declare-function pmail-output-read-file-name "pmailout" ()) | ||
| 1060 | (declare-function pmail-output-read-pmail-file-name "pmailout" ()) | ||
| 1061 | (declare-function mail-send-and-exit "sendmail" (&optional arg)) | ||
| 1062 | |||
| 1063 | (defvar pmail-summary-edit-map | 1065 | (defvar pmail-summary-edit-map |
| 1064 | (let ((map (nconc (make-sparse-keymap) text-mode-map))) | 1066 | (let ((map (nconc (make-sparse-keymap) text-mode-map))) |
| 1065 | (define-key map "\C-c\C-c" 'pmail-cease-edit) | 1067 | (define-key map "\C-c\C-c" 'pmail-cease-edit) |