Alex Schroeder [Tue, 28 Feb 2006 09:27:33 +0000 (09:27 +0000)]
(rmail-label-obarray): Deleted.
(rmail-attributes): Use an ordinary list of symbols.
(rmail-deleted-label): Use an ordinary symbol.
(rmail-keywords): Doc, initial value nil.
(rmail-keywords, rmail-keyword-init): Deleted defuns.
(rmail-attribute-p, rmail-keyword-p, rmail-make-label): Simplify.
(rmail-keyword-register-keywords, rmail-install-keyword):
Replaced.
(rmail-register-keywords, rmail-register-keyword): Replacements.
(rmail-add-label, rmail-kill-label): Call set-label with a symbol.
(rmail-read-label): Return a string.
(rmail-set-label): Rewrote. Call rmail-display-labels always.
Alex Schroeder [Tue, 28 Feb 2006 09:21:33 +0000 (09:21 +0000)]
(qp): No longer required.
(rmail-convert-file): Don't rmail-enable-multibyte.
(rmail-decode-mbox-format): Deleted.
(rmail-convert-mbox-format): No converting of qp headings, no
decoding of the message body.
Alex Schroeder [Fri, 17 Feb 2006 00:56:04 +0000 (00:56 +0000)]
(rmail-mime-text-handler): Only downcase if charset
exists.
(rmail-mime-handle): Doc. Ignore errors when decoding base64.
Seems to be common on my system.
(rmail-mime-show): Change show-header code.
(rmail-mime): New.
Alex Schroeder [Tue, 7 Feb 2006 00:19:15 +0000 (00:19 +0000)]
(rmail-mime-media-type-handlers-alist): Removed
non-existing handlers for the moment.
(rmail-mime-text-handler): Do decoding based on the charset
parameter.
(test-rmail-mime-handler): Test decoding using an 8bit KOI8
message.
(rmail-mime-handle): Switch to unibyte if content transfer
encoding is 8bit. Strange that it should be necessary.
Alex Schroeder [Fri, 3 Feb 2006 23:10:50 +0000 (23:10 +0000)]
Renamed all symbols to rmail-mime-*. Rewrote code
such as to modify the buffer instead of using display properties.
Fixed bulk handler, and wrote simple test defun for it.
Henrik Enberg [Wed, 1 Feb 2006 17:25:07 +0000 (17:25 +0000)]
(rmail-first-unseen-message): Make sure to return the
last message if no unseen message was found. Doc fix.
(rmail): Call rmail-first-unseen-message properly. Remove
commented out code.
(rmail-show-message): Maybe call rmail-unknown-mail-followup-to.
(rmail-revert): Simplify.
Henrik Enberg [Mon, 30 Jan 2006 11:30:45 +0000 (11:30 +0000)]
(rmail-header-hide-headers): Simplify.
(rmail-header-get-limit): Wrap in a save-excursion.
(rmail-header-display-state): Renamed from rmail-header-display-mode.
Alex Schroeder [Mon, 23 Jan 2006 23:21:03 +0000 (23:21 +0000)]
(rmail-narrow-to-non-pruned-header): Deleted.
(rmail-unknown-mail-followup-to, rmail-retry-failure): No longer
call rmail-narrow-to-non-pruned-header and replace
mail-fetch-field with rmail-header-get-header because that one
ignores the intangible property when searching.
(rmail-show-message): Simplify x-coding-system handling.
(rmail-redecode-body): No longer call rmail-header-show-headers
because rmail-header-get-header handles the intanglible property.
(rmail-reply): Simplify code at the price of some efficiency when
setting up the variable bindings. No longer toggle visibility of
headers, because rmail-header-show-headers is no longer necessary.
Alex Schroeder [Mon, 23 Jan 2006 16:54:26 +0000 (16:54 +0000)]
(rmail-convert-mbox-format): Decode messages with
content-transfer-encoding quoted-printable, because it's easy to
do.
(rmail-unknown-mail-followup-to): Compare with
rmail-user-mail-address-regexp instead of computing the default
value.
Alex Schroeder [Mon, 23 Jan 2006 16:52:48 +0000 (16:52 +0000)]
(rmail-user-mail-address-regexp): Compute a default
value instead of assuming nil. Doc.
(rmail-summary-get-sender): Compare with
rmail-user-mail-address-regexp instead of computing the default
value.
Henrik Enberg [Mon, 23 Jan 2006 10:52:46 +0000 (10:52 +0000)]
(rmail-decode-mbox-format): Rename from `rmail-decode-mail-file'.
(rmail-process-new-messages): Don't add missing headers here.
(rmail-convert-mbox-format): Rename from `rmail-decode-messages'.
Add missing headers here. Remove FROM and TO arguments.
(rmail-get-new-mail): Simplify.
(rmail-convert-file): New function.
(rmail-revert): Use it.
(rmail): Change logic for avoiding selecting new messages twice.
(rmail-display-labels): Avoid space in mode-line if there are no
keywords.
Henrik Enberg [Sun, 22 Jan 2006 05:45:47 +0000 (05:45 +0000)]
(rmail): Go back to using find-file for reading in the
mail file. This avoids gratuitous modification of the file.
(rmail-decode-region): Doc string, cleanup.
(rmail-decode-by-content-type): New function.
(rmail-decode-messages): Use it. Add FROM and TO args and only
process messages in that region.
(rmail-get-new-mail): Call `rmail-decode-region' before
`rmail-process-new-messages'.
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 "".