Commit 1bfadfb2 authored by Glenn Morris's avatar Glenn Morris
Browse files

(mail-mbox-from): Move here from rmailout.el.

parent 7b692c10
2009-02-18 Glenn Morris <>
* mail/rmail-spam-filter.el (rmail-summary-mode-map): Remove unneeded
(top-level): No need for cl now.
(rmail-spam-filter, rmail-use-spam-filter, rsf-file, rsf-no-blind-cc)
(rsf-beep, rsf-sleep-after-message, rsf-min-region-to-spam-list)
(rsf-autosave-newly-added-definitions, rsf-white-list)
(rsf-definitions-alist, rsf-check-field, rsf-add-subject-to-spam-list)
(rsf-add-sender-to-spam-list, rsf-add-region-to-spam-list)
(rsf-customize-spam-definitions, rsf-customize-group)
(rsf-custom-save-all, rsf-add-content-type-field): Doc fixes.
(rsf-check-field): Use setcar and setcdr rather than setf.
(rmail-spam-filter): Simplify.
(rsf-add-subject-to-spam-list, rsf-add-sender-to-spam-list)
(rsf-add-region-to-spam-list): Use rmail-get-header or
buffer-substring-no-properties. Regexp-quote the extracted data.
Make the messages less verbose.
(rmail-summary-mode-map, rmail-mode-map): Use easy-menu and dolist to
simplify things.
(rsf-add-content-type-field): Make the message less verbose.
* mail/rmail.el (rmail-get-new-mail-1): Fix the spam beep test.
(rmail-get-new-mail-filter-spam): Simplify. Don't mess with
(rmail-insert-inbox-text, rmail-collect-deleted)
(rmail-set-message-deleted-p, rmail-only-expunge)
(rmail-make-in-reply-to-field): Replace ?\ with ?\s.
(rmail-get-labels): Remove unused local `blurb'.
(rmail-message-attr-p, rmail-message-unseen-p, rmail-message-labels-p)
(rmail-msgend, rmail-msgbeg, rmail-message-deleted-p)
(rmail-set-message-deleted-p): Doc fixes.
* mail/rmailout.el (rmail-mbox-from): Move to mail-utils.
Update callers for associated name change.
* mail/mail-utils.el (mail-mbox-from): Move here from rmailout.el.
* mail/unrmail.el (unrmail): Use mail-mbox-from.
2009-02-17 Richard M Stallman <>
* mail/rmailmsc.el (set-rmail-inbox-list): Doc fix.
......@@ -386,6 +386,20 @@ matches may be returned from the message body."
(substring s (match-beginning 3) (match-end 3)) " "
(mail-rfc822-time-zone time))))
(defun mail-mbox-from ()
"Return an mbox \"From \" line for the current message.
The buffer should be narrowed to just the header."
(let ((from (or (mail-fetch-field "from")
(mail-fetch-field "really-from")
(mail-fetch-field "sender")
(date (mail-fetch-field "date")))
(format "From %s %s\n" (mail-strip-quoted-names from)
(or (and date
(current-time-string (date-to-time date))))
(provide 'mail-utils)
;; arch-tag: b24aec2f-fd65-4ceb-9e39-3cc2827036fd
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment