Henrik Enberg [Fri, 27 Apr 2007 20:00:56 +0000 (20:00 +0000)]
(rmail-perm-variables) fix spello in preveious commit
Henrik Enberg [Fri, 27 Apr 2007 18:28:08 +0000 (18:28 +0000)]
(rmail-perm-variables): Make sure rmail-desc-vector is buffer local.
Henrik Enberg [Fri, 27 Apr 2007 01:47:36 +0000 (01:47 +0000)]
(rmail-mime-charset-pattern): Sync with trunk.
(rmail): Don't bind coding-system-for-read.
(rmail-revert): Likewise.
(rmail-variables): Don't set buffer-file-coding-system.
(rmail-show-message): Likewise.
Henrik Enberg [Fri, 27 Apr 2007 01:46:36 +0000 (01:46 +0000)]
(rmail-output): Don't bind buffer-file-coding-system.
Henrik Enberg [Thu, 26 Apr 2007 12:18:43 +0000 (12:18 +0000)]
*** empty log message ***
Henrik Enberg [Wed, 25 Apr 2007 23:02:49 +0000 (23:02 +0000)]
(rmail-highlight): New face.
(rmail-highlight-face): Use it.
Alex Schroeder [Tue, 11 Apr 2006 13:29:07 +0000 (13:29 +0000)]
(rmail-summary-kill-label): Call rmail-kill-label
with only one argument.
Alex Schroeder [Tue, 11 Apr 2006 13:28:13 +0000 (13:28 +0000)]
(rmail-process-new-messages): Handle missing From
line (usually spam).
Henrik Enberg [Thu, 9 Mar 2006 22:53:43 +0000 (22:53 +0000)]
(rmail-edit-map): Initialize at definition. Doc String.
Henrik Enberg [Thu, 9 Mar 2006 02:16:39 +0000 (02:16 +0000)]
(rmail-edit-current-message): Use rmail-head-show-headers instead of
rmail-toggle-header.
(rmail-cease-edit): Likewise. Simplify.
Henrik Enberg [Thu, 9 Mar 2006 02:15:53 +0000 (02:15 +0000)]
(rmail-desc-get-header-display-state): Make sure whole header region is
searched for overlays.
Henrik Enberg [Thu, 9 Mar 2006 02:15:21 +0000 (02:15 +0000)]
(rmail-header-get-limit): Don't end error message with a period.
Henrik Enberg [Thu, 9 Mar 2006 02:14:55 +0000 (02:14 +0000)]
(rmail-narrow-to-header): Don't end error message with a period.
Alex Schroeder [Thu, 2 Mar 2006 20:06:38 +0000 (20:06 +0000)]
(rmail-read-label): Since rmail-keywords is a list
of symbols, we need to transform it into an alist for completion.
Alex Schroeder [Wed, 1 Mar 2006 07:18:39 +0000 (07:18 +0000)]
(rmail-summary-kill-label): Use rmail-kill-label
instead of calling rmail-set-label, which will call
rmail-make-label on the string.
Alex Schroeder [Wed, 1 Mar 2006 07:10:01 +0000 (07:10 +0000)]
*** empty log message ***
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 01:01:44 +0000 (01:01 +0000)]
(rmail-mime): Fix invocation of view-buffer.
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 [Sun, 12 Feb 2006 18:26:01 +0000 (18:26 +0000)]
*** empty log message ***
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.
Alex Schroeder [Wed, 1 Feb 2006 19:26:54 +0000 (19:26 +0000)]
(rmail-convert-mbox-format): Handle mails without subject.
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.
Alex Schroeder [Tue, 31 Jan 2006 20:54:37 +0000 (20:54 +0000)]
new file, based on Alexander Pohoyda's code.
Henrik Enberg [Mon, 30 Jan 2006 21:25:07 +0000 (21:25 +0000)]
(rmail-next-message): Don't Call
rmail-maybe-set-message-counters. Use with-current-buffer.
Henrik Enberg [Mon, 30 Jan 2006 11:31:22 +0000 (11:31 +0000)]
(rmail-next-labeled-message): Don't call
rmail-maybe-set-message-counters. Use with-current-buffer.
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.
Henrik Enberg [Sun, 29 Jan 2006 17:58:09 +0000 (17:58 +0000)]
(rmail-summary-show-message): Reformat.
(rmail-summary-get-summary-line): Renamed from
`rmail-summary-get-summary'. Callers updated.
(rmail-summary-mode-map): Initialize at definition, Doc fix.
(rmail-summary-undelete-many): Simplify.
Henrik Enberg [Thu, 26 Jan 2006 19:42:58 +0000 (19:42 +0000)]
(rmail-summary-deleted-p): Fix misplaced paren.
(rmail-summary-undelete): Simplify.
Henrik Enberg [Wed, 25 Jan 2006 20:22:06 +0000 (20:22 +0000)]
(rmail-output): Make sure headers are properly
hidden after output. Avoid pointless with-current-buffer call.
Henrik Enberg [Wed, 25 Jan 2006 16:40:26 +0000 (16:40 +0000)]
(rmail-delete-unwanted-fields): Handle mbox format.
(rmail-output): Error when target is a BABYL file. Handle MIME
charset.
Henrik Enberg [Wed, 25 Jan 2006 16:39:44 +0000 (16:39 +0000)]
(rmail-summary-get-sender): Handle a nil value of
rmail-user-mail-address-regexp.
Henrik Enberg [Wed, 25 Jan 2006 16:39:22 +0000 (16:39 +0000)]
(rmail-unknown-mail-followup-to): Handle a nil value of
rmail-user-mail-address-regexp.
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 23:19:45 +0000 (23:19 +0000)]
(rmail-header-get-header): Accept more arguments and
pass them to mail-fetch-field unchanged. Bind
inhibit-point-motion-hooks to t.
Alex Schroeder [Mon, 23 Jan 2006 23:17:58 +0000 (23:17 +0000)]
(rmail-summary-edit-map): Rewrite.
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 [Mon, 23 Jan 2006 03:45:49 +0000 (03:45 +0000)]
(rmail-get-new-mail): Simplify.
Henrik Enberg [Sun, 22 Jan 2006 20:39:48 +0000 (20:39 +0000)]
(rmail-desc-default-attrs): New const.
(rmail-desc-get-default-attrs): Deleted.
Henrik Enberg [Sun, 22 Jan 2006 20:38:55 +0000 (20:38 +0000)]
(rmail-ignored-headers): Undo regexp-opt.
(rmail-inbox-alist): Add version tag.
(rmail-count-screen-lines): Doc string.
(rmail-process-new-messages): Use rmail-desc-default-attrs.
Henrik Enberg [Sun, 22 Jan 2006 19:20:38 +0000 (19:20 +0000)]
*** empty log message ***
Henrik Enberg [Sun, 22 Jan 2006 19:14:26 +0000 (19:14 +0000)]
(rmail-fontify-message): Reformat, Doc String.
(rmail-ignored-headers): Generate with regexp-opt.
(rmail-displayed-headers): Default value set to nil.
Henrik Enberg [Sun, 22 Jan 2006 05:51:48 +0000 (05:51 +0000)]
*** empty log message ***
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 21:58:52 +0000 (21:58 +0000)]
(rmail-decode-messages): Decoded encoded-words in
Subject and From header.
(rmail-process-new-messages): Don't decode encoded words here.
Alex Schroeder [Sat, 21 Jan 2006 21:52:19 +0000 (21:52 +0000)]
*** empty log message ***
Henrik Enberg [Sat, 21 Jan 2006 21:21:26 +0000 (21:21 +0000)]
(rmail-process-new-messages): Remove EOL conversion code.
(rmail-decode-messages): Do it here instead.
Henrik Enberg [Sat, 21 Jan 2006 21:09:57 +0000 (21:09 +0000)]
(rmail-process-new-messages): Don't decode messages here.
(rmail-decode-messages): New function.
(rmail): Use it.
(rmail-get-new-mail): Likewise.
Alex Schroeder [Sat, 21 Jan 2006 18:22:25 +0000 (18:22 +0000)]
(rmail-abort-edit): Don't call
rmail-highlight-headers anymore.
Alex Schroeder [Sat, 21 Jan 2006 18:21:07 +0000 (18:21 +0000)]
(rmail-highlight-face): Doc.
(rmail-font-lock-keywords): Add the stuff necessary to make
rmail-highlight-headers obsolete.
(rmail-toggle-header, rmail-show-message): Don't call
rmail-highlight-headers anymore.
(rmail-highlight-headers): Deleted.
Henrik Enberg [Sat, 21 Jan 2006 16:27:59 +0000 (16:27 +0000)]
(rmail-summary-get-sender): Narrow to current
message before extracting headers.
Henrik Enberg [Sat, 21 Jan 2006 16:18:59 +0000 (16:18 +0000)]
(rmail-process-new-messages): Don't lose on missing subject field.
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.
Henrik Enberg [Sat, 21 Jan 2006 15:28:53 +0000 (15:28 +0000)]
(rmail-message-senders-p): Fix Typo.
Alex Schroeder [Sat, 21 Jan 2006 15:28:08 +0000 (15:28 +0000)]
(rmail-desc-set-attribute): Use
rmail-header-add-header instead of rmail-header-set-header.
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.
Alex Schroeder [Sat, 21 Jan 2006 10:52:39 +0000 (10:52 +0000)]
*** empty log message ***
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 03:22:55 +0000 (03:22 +0000)]
(rmail-process-new-messages): Simplify.
(rmail-decode-quoted-printable): Delete unused function.
(rmail-hex-string-to-integer): Likewise.
(rmail-hex-char-to-integer): Likewise.
(rmail-decode-mail-file): Renamed from `rmail-decode-mbox-file'.
Alex Schroeder [Sat, 21 Jan 2006 01:30:30 +0000 (01:30 +0000)]
(rmail-require-mime-maybe): Simplified.
(rmail-mode-map): Rewritten using a local binding to agree
with "(elisp)Tips for Defining".
Alex Schroeder [Sat, 21 Jan 2006 00:51:28 +0000 (00:51 +0000)]
(rmail-get-new-mail): Doc.
(rmail-get-inbox-list): Doc.
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 [Sat, 21 Jan 2006 00:11:44 +0000 (00:11 +0000)]
(rmail-summary-get-sender): Doc fix.
Alex Schroeder [Fri, 20 Jan 2006 21:30:50 +0000 (21:30 +0000)]
(rmail-inbox-alist): Doc.
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.
Henrik Enberg [Fri, 20 Jan 2006 16:54:06 +0000 (16:54 +0000)]
(rmail-summary-get-summary): Make sure sender is no
longer than 25 characters.
Henrik Enberg [Fri, 20 Jan 2006 16:29:51 +0000 (16:29 +0000)]
(set-rmail-inbox-list): Rewrite to only set inbox
list temporarily for a session.
Alex Schroeder [Fri, 20 Jan 2006 16:26:28 +0000 (16:26 +0000)]
(rmail-show-message): Minor changes: comments.
Alex Schroeder [Fri, 20 Jan 2006 16:23:51 +0000 (16:23 +0000)]
(rmail-summary-get-summary): Fix display of
keywords.
(rmail-summary-rmail-update): Minor changes: If to when, comments,
doc string.
Henrik Enberg [Fri, 20 Jan 2006 02:23:17 +0000 (02:23 +0000)]
(rmail-inbox-alist): New variable.
(rmail-get-file-inbox-list): New function.
(rmail-perm-variables): Use it.
(rmail-parse-file-inboxes): Deleted.
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 [Thu, 19 Jan 2006 23:55:58 +0000 (23:55 +0000)]
(rmail-summary-mode): Fixed typo in doc string and
keymap.
(rmail-summary-update-attribute): Deleted.
(rmail-summary-update): Simple defun regenerates the entire
summary line.
Alex Schroeder [Thu, 19 Jan 2006 23:54:03 +0000 (23:54 +0000)]
(rmail-set-label): Call rmail-summary-update at the
end.
Alex Schroeder [Thu, 19 Jan 2006 23:52:59 +0000 (23:52 +0000)]
(rmail-set-attribute): Call rmail-summary-update.
Henrik Enberg [Thu, 19 Jan 2006 12:59:11 +0000 (12:59 +0000)]
(rmail-header-hide-headers): Simplify.
Henrik Enberg [Thu, 19 Jan 2006 11:52:47 +0000 (11:52 +0000)]
(rmail-process-new-messages): Use
rmail-header-get-header instead of mail-fetch-field.
Henrik Enberg [Thu, 19 Jan 2006 11:52:07 +0000 (11:52 +0000)]
(rmail-header-get-header): Rewrite to be a
convenience wrapper for mail-fetch-field.
Henrik Enberg [Thu, 19 Jan 2006 00:41:11 +0000 (00:41 +0000)]
(rmail-output-read-file-name): Simplify.
(rmail-output): Likewise.
Alex Schroeder [Wed, 18 Jan 2006 22:33:59 +0000 (22:33 +0000)]
(rmail-make-summary-line-1)
(rmail-make-basic-summary-line): Deleted.
(rmail-summary-kill-label): Only ask for existing labels.
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 [Wed, 18 Jan 2006 22:20:18 +0000 (22:20 +0000)]
(rmail-cease-edit): Bugfix.
Alex Schroeder [Wed, 18 Jan 2006 22:19:05 +0000 (22:19 +0000)]
Removed require statements.
(rmail-desc-add-keyword, rmail-desc-remove-keyword): Rewrite.
(rmail-desc-get-keywords, rmail-desc-get-keyword-list)
(rmail-desc-edited-index): Doc fix.
Alex Schroeder [Wed, 18 Jan 2006 22:15:21 +0000 (22:15 +0000)]
Updated copyright year.
Alex Schroeder [Wed, 18 Jan 2006 22:14:32 +0000 (22:14 +0000)]
(rmail-set-attribute): Moved comment into document.
Henrik Enberg [Wed, 18 Jan 2006 22:14:08 +0000 (22:14 +0000)]
(rmail-decode-mbox-file): Fix stupid mistake.
Henrik Enberg [Wed, 18 Jan 2006 21:58:02 +0000 (21:58 +0000)]
(rmail-process-new-messages): Decode message accoding to
Content-Type header.
(rmail-decode-mbox-file): New function.
(rmail): Use it.
Henrik Enberg [Wed, 18 Jan 2006 20:11:04 +0000 (20:11 +0000)]
(rmail-get-sender): Deleted
(rmail-process-new-messages): Use mail-fetch-field instead.
Henrik Enberg [Wed, 18 Jan 2006 19:27:36 +0000 (19:27 +0000)]
(rmail): Fix last fix.
Henrik Enberg [Wed, 18 Jan 2006 12:15:47 +0000 (12:15 +0000)]
(rmail-get-inbox-list): New function.
(rmail-get-new-mail): Use it.
Henrik Enberg [Wed, 18 Jan 2006 11:47:37 +0000 (11:47 +0000)]
(rmail-summary-get-new-mail): Only call
`rmail-summary-goto-msg' if no new mail was found.
Henrik Enberg [Wed, 18 Jan 2006 11:46:50 +0000 (11:46 +0000)]
(rmail): Only call `rmail-show-message' if no new mail
was found.
Henrik Enberg [Wed, 18 Jan 2006 02:05:17 +0000 (02:05 +0000)]
(rmail-get-new-mail): Only call `rmail-show-message'
on file-error condition if no new messages are found.
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.
Henrik Enberg [Tue, 17 Jan 2006 22:31:55 +0000 (22:31 +0000)]
(rmail-process-new-messages): Add an X-Coding-System header if one
doesn't exist.