diff options
| author | Glenn Morris | 2009-02-18 04:34:24 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-02-18 04:34:24 +0000 |
| commit | 6aa7fc5b9285a78e72d0acf2525b8206de629ea4 (patch) | |
| tree | e736a5841433c512eb993516cd8eac86d4df9d53 | |
| parent | 8e7a0f839f84aec582e1cd42c8f3f09c7d7aa8ac (diff) | |
| download | emacs-6aa7fc5b9285a78e72d0acf2525b8206de629ea4.tar.gz emacs-6aa7fc5b9285a78e72d0acf2525b8206de629ea4.zip | |
(rmail-mbox-from): Move to mail-utils.
Update callers for name change.
| -rw-r--r-- | lisp/mail/rmailout.el | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/lisp/mail/rmailout.el b/lisp/mail/rmailout.el index 36dfc4c5572..51aa6fc5bcf 100644 --- a/lisp/mail/rmailout.el +++ b/lisp/mail/rmailout.el | |||
| @@ -308,20 +308,7 @@ Replaces the From line with a \"Mail-from\" header. Adds \"Date\" and | |||
| 308 | "From: \\1\n")) | 308 | "From: \\1\n")) |
| 309 | t))))))) | 309 | t))))))) |
| 310 | 310 | ||
| 311 | ;; Note this is duplicated in unrmail.el. | 311 | (autoload 'mail-mbox-from "mail-utils") |
| 312 | (defun rmail-mbox-from () | ||
| 313 | "Return a \"From \" line for the current message. | ||
| 314 | The buffer should be narrowed to just the header." | ||
| 315 | (let ((from (or (mail-fetch-field "from") | ||
| 316 | (mail-fetch-field "really-from") | ||
| 317 | (mail-fetch-field "sender") | ||
| 318 | "unknown")) | ||
| 319 | (date (mail-fetch-field "date"))) | ||
| 320 | (format "From %s %s\n" (mail-strip-quoted-names from) | ||
| 321 | (or (and date | ||
| 322 | (ignore-errors | ||
| 323 | (current-time-string (date-to-time date)))) | ||
| 324 | (current-time-string))))) | ||
| 325 | 312 | ||
| 326 | (defun rmail-output-as-mbox (file-name nomsg &optional as-seen) | 313 | (defun rmail-output-as-mbox (file-name nomsg &optional as-seen) |
| 327 | "Convert the current buffer's text to mbox and output to FILE-NAME. | 314 | "Convert the current buffer's text to mbox and output to FILE-NAME. |
| @@ -344,7 +331,7 @@ AS-SEEN is non-nil if we are copying the message \"as seen\"." | |||
| 344 | "Mail-From\\|MIME-Version\\|Content-type")) | 331 | "Mail-From\\|MIME-Version\\|Content-type")) |
| 345 | (goto-char (point-min)) | 332 | (goto-char (point-min)) |
| 346 | (or (looking-at "From ") | 333 | (or (looking-at "From ") |
| 347 | (insert (rmail-mbox-from))) | 334 | (insert (mail-mbox-from))) |
| 348 | (widen) | 335 | (widen) |
| 349 | ;; Make sure message ends with blank line. | 336 | ;; Make sure message ends with blank line. |
| 350 | (goto-char (point-max)) | 337 | (goto-char (point-max)) |
| @@ -451,7 +438,7 @@ from a non-Rmail buffer. In this case, COUNT is ignored." | |||
| 451 | ;; rmail-convert-to-babyl-format errors if no From line, | 438 | ;; rmail-convert-to-babyl-format errors if no From line, |
| 452 | ;; whereas rmail-output-as-mbox inserts one. | 439 | ;; whereas rmail-output-as-mbox inserts one. |
| 453 | (or (looking-at "From ") | 440 | (or (looking-at "From ") |
| 454 | (insert (rmail-mbox-from))) | 441 | (insert (mail-mbox-from))) |
| 455 | (rmail-output-as-babyl file-name noattribute)) | 442 | (rmail-output-as-babyl file-name noattribute)) |
| 456 | (rmail-output-as-mbox file-name noattribute))) | 443 | (rmail-output-as-mbox file-name noattribute))) |
| 457 | ;; Called from an Rmail buffer. | 444 | ;; Called from an Rmail buffer. |