Alex Schroeder [Sat, 21 Jan 2006 15:31:05 +0000 (15:31 +0000)]
(rmail-next-undeleted-message): Simplify.
(rmail-what-message): Deleted since it was never called.
(rmail-narrow-to-header): Use the same error message as
rmail-header-get-limit.
Alex Schroeder [Sat, 21 Jan 2006 15:27:34 +0000 (15:27 +0000)]
(rmail-header-attribute-header)
(rmail-header-keyword-header, rmail-header-get-limit): Doc.
(rmail-header-add-header): Add inhibit-point-motion-hooks and
buffer-undo-list bindings from rmail-header-set-header. I don't
know whether they are necessary, however.
(rmail-header-persist-attributes, rmail-header-set-header):
Deleted. rmail-header-add-header does what
rmail-header-set-header did, except throw an error if the header
was not found.
Alex Schroeder [Sat, 21 Jan 2006 15:00:38 +0000 (15:00 +0000)]
(rmail-msgbeg, rmail-msgend): Fix and make obsolete.
(rmail-process-new-messages): Use mail-decode-encoded-word-string
on the subject. Requires mail-parse from Gnus.
(rmail-highlight-headers): Doc.
Henrik Enberg [Sat, 21 Jan 2006 03:39:48 +0000 (03:39 +0000)]
(rmail-delete-inbox-files): New function factored out of
`rmail-get-new-mail'.
(rmail-get-new-mail): Use it.
(rmail-get-inbox-files): Renamed from `rmail-get-inbox-list'.
Henrik Enberg [Sat, 21 Jan 2006 00:12:30 +0000 (00:12 +0000)]
(rmail-redecode-body): Simplify.
(rmail-get-inbox-list): Stop on name conflict.
(rmail-show-message): Set `rmail-view-buffer' to `rmail-buffer` if
not using MIME. Make sure we go to `point-min' before setting
window point as searching for coding header might move point.
Henrik Enberg [Fri, 20 Jan 2006 18:50:02 +0000 (18:50 +0000)]
(rmail-summary-get-sender): New function.
(rmail-summary-get-summary): Use it.
(rmail-summary-get-line-count): Doc fix.
(rmail-summary-get-summary-attributes): Likewise.
Alex Schroeder [Fri, 20 Jan 2006 00:42:58 +0000 (00:42 +0000)]
(rmail-summary-by-topic): Don't use rmail-current-subject-regexp.
(rmail-message-subject-p): Use rmail-header-get-header instead of
mail-fetch-field.
(rmail-summary-by-senders): Default to current sender.
Alex Schroeder [Wed, 18 Jan 2006 22:29:55 +0000 (22:29 +0000)]
(rmail-add-label): Doc fix.
(rmail-kill-label): Only read labels that the current message has.
(rmail-read-label): Possibly only ask for existing labels.
(rmail-set-label): Display labels at the end.
Alex Schroeder [Wed, 18 Jan 2006 22:27:01 +0000 (22:27 +0000)]
(rmail-header-get-limit): Rewrote macro as simple
defun.
(rmail-header-persist-attributes): Doc.
(rmail-header-add-header): Simplified the finding of the header.
Delete header if value is nil or "".
(rmail-header-remove-keyword): Deleted stub. Removing can be
handled by calling `rmail-header-add-header' with value nil or "".
Alex Schroeder [Tue, 17 Jan 2006 23:06:58 +0000 (23:06 +0000)]
(rmail): Only insert the file if it actually exists.
(rmail-show-message): Do not display labels if there are no
messages. This corrects the mistake if visiting an empty file,
but it doesn't fix the situation where you delete the all messages
and expunge them. This may leave the labels of the last message
in the modeline.
Alex Schroeder [Tue, 17 Jan 2006 10:03:12 +0000 (10:03 +0000)]
(rmail-summary-by-labels): No longer concatenate
regexp with commas because of recent change to
rmail-message-labels-p.
(rmail-summary-rmail-update): Replace rmail-message-labels-p test
with simple rmail-desc-get-keywords.
Alex Schroeder [Tue, 17 Jan 2006 09:36:49 +0000 (09:36 +0000)]
(rmail-summary-font-lock-keywords): Fix regular
expression for unread messages.
(rmail-summary-mode): Added documentation for the filtering
commands.
(rmail-summary-mode-map): Added keybinding for
rmail-summary-by-sender.
(rmail-summary-get-summary): Don't show attributes, only
user-defined keywords.
Henrik Enberg [Tue, 17 Jan 2006 02:34:35 +0000 (02:34 +0000)]
(rmail-output-read-file-name): Make sure search in executed in `rmail-buffer'.
(rmail-output-to-rmail-file): Use `rmail-output-read-file-name'.
(rmail-output-read-rmail-file-name): Deleted.
Alex Schroeder [Mon, 16 Jan 2006 22:22:44 +0000 (22:22 +0000)]
(rmail-nuke-pinhead-header, rmail-reformat-message)
(rmail-msg-restore-non-pruned-header, rmail-msg-prune-header):
Deleted.
(rmail-narrow-to-header): Fix typo, error if we cannot find the
end of the headers.
Alex Schroeder [Mon, 16 Jan 2006 22:18:44 +0000 (22:18 +0000)]
(rmail-message-subject-p, rmail-message-senders-p):
Use mail-fetch-field instead of mail-header-get-header.
(rmail-summary-next-same-subject): Simplify.
Henrik Enberg [Mon, 16 Jan 2006 21:06:36 +0000 (21:06 +0000)]
(rmail-new-summary): Make sure summary buffer is current when selecting message.
(rmail-summary-browse-body): Deleted.
(rmail-summary-rmail-update, rmail-summary-get-message-at-point,
rmail-summary-goto-msg): Use string-to-number.
(rmail-summary-toggle-header, rmail-summary-add-label,
rmail-summary-kill-label): Use with-current-buffer.
(rmail-summary-previous-msg): Add docstring.
Alex Schroeder [Mon, 16 Jan 2006 18:59:29 +0000 (18:59 +0000)]
(rmail-ignored-headers): Merged several terms using
grouping, added simple "from " (without a colon), and several
other headers.
(rmail): Automatically convert BABYL files to mbox files.
(rmail-decode-babyl-format): Deleted, since conversion is handled
by unrmail.
Alex Schroeder [Mon, 16 Jan 2006 17:50:30 +0000 (17:50 +0000)]
(unrmail): Use regular expression search to find
message separators such that the fake separators inserted by
rmime.el are not matched. The sections added by rmime.el are
removed.
Mostly rewritten. Parses the file directly and converts.
(batch-convert-babyl, convert-babyl-file, decode-babyl-file)
(decode-babyl): New functions.
(unrmail, batch-unrmail): Now aliases.
(rmail-make-summary-line): Function deleted.
(rmail-new-summary): Make it work once again as in old version.
(rmail-summary-get-summary): Call rmail-summary-line-decoder.
Paul Reilly [Sat, 22 Feb 2003 15:37:59 +0000 (15:37 +0000)]
Add patches from Eli Tziperman <eli@beach.weizmann.ac.il>, and John Paul
Wallington <jpw@gnu.org>
Avoid loading CL at runtime.
(vm-use-spam-filter.el, spam-filter-working-with-vm): Add support for
use by VM.
(rmail-spam-filter-min-region-length-added-to-spam-list): New
variable.
(rmail-spam-filter): Do not assume the message is narrowed, do it
explicitly using the rmail message descriptor; use `rmail-output'
instead of `rmail-output-to-rmail-file'; take into account the state
of the `rmail-delete-after-output' variable.
Paul Reilly [Sat, 15 Feb 2003 17:13:03 +0000 (17:13 +0000)]
Commentary: Add text.
History: Add header and mbox item.
Overhaul summary buffer movement.
(rmail-summary-font-lock-keywords): Compress the attribute character
display field by one character.
(rmail-new-summary): Rewrite.
(rmail-make-summary-line-1): Slight rewrite to deal with small changes
in the summary format.
(rmail-make-basic-summary-line): Use the rmail message vector.
(rmail-summary-next-msg): Rewrite.
(rmail-summary-next-labeled-message): Set the summary buffer copy of
the rmail-current-message to force the display to show it.
(rmail-summary-next-same-subject): Rewrite.
(rmail-summary-delete-forward): Remove some questionable code and make
summary buffer movement explicit.
(rmail-summary-mark-deleted): Make sure to reflect the deletion for
the Rmail buffer.
(rmail-summary-deleted-p): Rewrite.
(rmail-summary-undelete-many): Set the summary buffer copy of
the rmail-current-message to force the display to show it.
(rmail-summary-rmail-update): Rewrite.
(rmail-summary-mode-map): Use "B" to send the message body to a
browser; use (rmail-summary-output) instead of
(rmail-summary-output-to-rmail-file). Similarly for the menu item.
(rmail-summary-mouse-goto-msg): Set the summary buffer copy of the
rmail-current-message to force the display to show it.
(rmail-summary-get-message-at-point): New function.