Commit graph

617 commits

Author SHA1 Message Date
Glenn Morris
433c16523a (rmail): Don't show a message if rmail-get-new-mail already did. (Bug#2440)
(rmail-quit): Don't swap buffers.  (Bug#2441)
(rmail-list-to-menu): Don't globally bind `name'.
2009-02-24 03:31:39 +00:00
Glenn Morris
bd26454c24 Comment. 2009-02-20 05:07:49 +00:00
Glenn Morris
788c1fc9e1 (rmail-speedbar-buttons): Only add regular files.
(rmail-speedbar-find-file): Use rmail rather than find-file.
2009-02-20 04:35:00 +00:00
Glenn Morris
25833b8cd8 (rsf-beep, rsf-sleep-after-message, rmail-spam-filter): Don't declare.
(rmail-get-new-mail-filter-spam): Declare.  Move definition to
rmail-spam-filter.el.
(rmail-get-new-mail-1): Move the beep and sleep to
rmail-get-new-mail-filter-spam.
2009-02-19 03:30:41 +00:00
Glenn Morris
134859bc3c (rmail-get-new-mail-filter-spam): Show a message rather than the raw
mbox while prompting.
2009-02-18 08:02:56 +00:00
Glenn Morris
8e7a0f839f (rmail-get-new-mail-1): Fix the spam beep test.
(rmail-get-new-mail-filter-spam): Simplify.  Don't mess with
rmail-deleted-vector.
(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.
2009-02-18 04:34:04 +00:00
Richard M. Stallman
5a34da0465 (rmail-copy-headers): When copying full headers,
correctly put point at the end.
2009-02-17 18:10:32 +00:00
Glenn Morris
f58faced4e (rmail-get-attr-names): Give a warning rather than an error if the
header is corrupt.
2009-02-17 02:37:40 +00:00
Glenn Morris
40f9db320d (rmail): When reverting, swap buffers before setting counters. (Bug#2229)
(rmail-revert): Swap buffers before replacing contents.
2009-02-14 03:40:39 +00:00
Richard M. Stallman
c7eb0ba1f8 (rmail-convert-file-maybe): Turn off case-fold-search.
(rmail-add-mbox-headers): Likewise.
2009-02-14 02:52:17 +00:00
Glenn Morris
809f3af083 (rmail-show-message): New name for the old rmail-show-message-maybe.
Update callers.
2009-02-13 07:46:14 +00:00
Glenn Morris
574bc51d39 (rmail-show-message-1): New name for the old rmail-show-message.
Update callers.
2009-02-13 07:43:50 +00:00
Glenn Morris
95ca567f4d (rmail-summary-vector, rmail-mode-map): Add doc string.
(rmail-set-header-1): If VALUE is nil, remove the header altogether.
(rmail-set-header): Doc fix.
2009-02-13 03:51:16 +00:00
Richard M. Stallman
51584624ee (rmail-show-message-verbose-min): New option.
(rmail-show-message): Conditionally show start and finish in echo area.
2009-02-12 04:01:11 +00:00
Glenn Morris
4de724b067 (rmail-unix-mail-delimiter): Doc fix.
(rmail-enable-multibyte): Don't really define, only for compiler.
2009-02-12 03:29:19 +00:00
Glenn Morris
44baa8ce8f (rmail-set-attribute): Allow ATTR to be a string. 2009-02-10 03:57:10 +00:00
Glenn Morris
75790248f0 (rmail-automatic-folder-directives): Doc fix.
(rmail-current-message, rmail-total-messages)
(rmail-message-vector, rmail-deleted-vector): Add doc strings.
(rmail-duplicate-message): Doc fix.
(rmail-get-header-1, rmail-set-header-1, rmail-set-attribute-1):
New functions.
(rmail-get-header, rmail-set-header, rmail-set-attribute):
Use rmail-apply-in-message.
(rmail-message-attr-p): Use rmail-get-header, hence no longer requires
unswapped-ness.
(rmail-get-attr-names): Check for missing or corrupt attribute headers.
(rmail-auto-file): Set the filed attribute, rather than explicitly not
doing so.  (Bug#2231)
2009-02-10 03:33:27 +00:00
Eli Zaretskii
634b455a37 (rmail): Bind coding-system-for-read to no-conversion before calling
find-file-noselect.  (Bug#2015)
2009-02-07 18:35:56 +00:00
Eli Zaretskii
fc9682ad97 (rmail-redecode-body): Don't encode/decode the message; instead, just rewrite
the X-Coding-System header with the new encoding, and let rmail-show-message
do the rest.  Remove unused argument RAW.  Fix doc string to be consistent
with the new implementation.
(rmail-show-message): Honor X-Coding-System header, if present, in preference
to Content-Type header.
2009-02-07 16:46:27 +00:00
Glenn Morris
50dcb7845f (rmail-duplicate-message): Make it work. 2009-02-05 07:38:56 +00:00
Glenn Morris
6b6a84a15b (rmail-what-message): Unbreak it. 2009-02-05 06:40:01 +00:00
Glenn Morris
a4e80191c2 No need for mule-util when compiling.
(rmail-first-message): Unbreak it.
2009-02-04 03:38:26 +00:00
Glenn Morris
bad4f1fd32 (rmail-convert-babyl-to-mbox): Disable undo while
inserting the converted mailbox.
(rmail-get-new-mail): Restore the loop over inboxes when two or more
have the same basename.  (Bug#2164)
Set the return value according to whether any mail was found,
not just in the last inbox.  Only show a message and run the hook after
checking all inboxes.
(rmail-get-new-mail-1): Move message display and running the hook to
rmail-get-new-mail.
2009-02-03 04:07:25 +00:00
Glenn Morris
236ab005f7 (rmail-ignored-headers, rmail-displayed-headers)
(rmail-retry-ignored-headers, rmail-highlighted-headers):
Restore autoloads.
2009-02-02 07:55:04 +00:00
Stefan Monnier
2dc00ad0c3 (rmail-view-buffer): Make buffer-local.
(rmail-select-summary, rmail-perm-variables, rmail-redecode-body)
(rmail-undelete-previous-message, rmail-mark-message)
(rmail-speedbar-buttons): Use with-current-buffer.
(rmail-mode-map): Move initialization into declaration.
(rmail-swap-buffers, rmail-unfontify-buffer-function)
(rmail-fontify-message): Use restore-buffer-modified-p.
(rmail-expunge-and-save): Don't swap buffer.
(rmail-get-header, rmail-set-header, rmail-set-attribute)
(rmail-apply-in-message): Swap save-excursion and save-restriction.
2009-02-01 03:39:37 +00:00
Eli Zaretskii
062ca6f69a (rmail-redecode-body): Use eight-bit instead of obsolete
eight-bit-control and eight-bit-graphic.
2009-01-31 18:53:50 +00:00
Eli Zaretskii
6e9db169a3 (rmail-automatic-folder-directives, rmail): Doc fixes.
(rmail-swap-buffers): New function.
(rmail-change-major-mode-hook, rmail-swap-buffers-maybe, rmail-show-message):
Use rmail-swap-buffers.
(rmail-decode-region): If DESTINATION is a buffer, set the encoding of that
buffer, rather than the current buffer.
(rmail-show-message): Make error message about uuencoded mail more explicit.
(rmail-show-message-maybe): Simplify code.  Doc fix.
(rmail-show-message): Doc fix.
2009-01-31 13:32:48 +00:00
Eli Zaretskii
0300c3390a (rmail-redecode-body): Don't change EOL conversion of the new encoding if
the old one left it unspecified.
2009-01-31 10:10:02 +00:00
Eli Zaretskii
aa8c69584f (rmail-convert-babyl-to-mbox): Set Rmail's buffer encoding to `raw-text-unix'.
(rmail-perm-variables): Set encoding of rmail-view-buffer to `undecided-unix'.
2009-01-31 09:32:45 +00:00
Glenn Morris
603c5d8d67 (rmail-msg-is-pruned): New (restored) function.
(rmail-toggle-header): Doc fix.  Use rmail-msg-is-pruned.
(rmail-reply): Set up to yank from the decoded message rather than the
raw one.  (Bug#2104).
2009-01-31 02:51:18 +00:00
Eli Zaretskii
2f6e377467 (rmail-resent-attr-index): Fix index value. 2009-01-30 18:29:48 +00:00
Eli Zaretskii
3951477883 (rmail-convert-babyl-to-mbox): Bind coding-system-for-read to `raw-text', and
use insert-file-contents instead of insert-file-contents-literally.
Fixes bug #2019.
2009-01-30 14:37:32 +00:00
Glenn Morris
4ddca2c57f (rmail-speedbar-buttons, rmail-speedbar-move-message-to-folder-on-line):
Use line-end-position.
2009-01-30 07:23:01 +00:00
Glenn Morris
df75fdb70d (rmail-reply): Handle empty folders. 2009-01-30 03:46:31 +00:00
Chong Yidong
00c6f62e66 (rmail-toggle-header): Determine current header
style using the buffer-local value of rmail-header-style in the
view buffer.
(rmail-show-message): Set a buffer-local value of
rmail-header-style in the view buffer.
2009-01-29 14:09:36 +00:00
Glenn Morris
0954b0aa0e (rmail-file-name): Remove duplicate definition.
(rmail-set-header): Ensure header changes get saved.
2009-01-29 03:41:57 +00:00
Chong Yidong
ace0f471fb (rmail-show-message): Unquote From lines. 2009-01-29 03:01:44 +00:00
Chong Yidong
2e55c1b7bb (rmail-redecode-body): New function, based on old version removed in
2009-01-22 change.
2009-01-29 02:46:21 +00:00
Chong Yidong
8372c367bd (rmail-toggle-header): Don't reset
rmail-header-style permanently (bug#2016).
2009-01-28 15:54:46 +00:00
Glenn Morris
9940a3eca7 (rmail-expunge-and-save): Always show a message,
even when called from the summary.  (Bug#2075)
(rmail-no-mail-p): New func, extracted from rmail-show-message-maybe.
(rmail-show-message-maybe): Use rmail-no-mail-p.
(rmail-show-message): If empty folder, do nothing.  (Bug#2076)
2009-01-28 02:50:41 +00:00
Chong Yidong
eb7f6f5b5c (rmail-convert-babyl-to-mbox): Prompt user before converting. 2009-01-27 23:02:00 +00:00
Glenn Morris
4546235fc9 Tweak previous doc fix. 2009-01-27 08:32:56 +00:00
Glenn Morris
3b5ad65462 (rmail-copy-headers): Doc fix. Leave point at the end
of the headers in the full header case.  (Bug#2073)
2009-01-27 08:29:35 +00:00
Kenichi Handa
6b0c98f550 (rmail-get-coding-system): Fix previous change. 2009-01-27 04:49:33 +00:00
Kenichi Handa
fe83a3004e (rmail-get-coding-system): Re-search
rmail-mime-charset-pattern directly instead of using
mail-fetch-field.  Use coding-system-from-name.
2009-01-27 04:48:56 +00:00
Glenn Morris
778ef2ef07 Remove leading `*' from defcustom docs.
Remove needless autoloads of many defcustoms and hooks.
(rmail-enable-mime, rmail-insert-mime-resent-message-function)
(rmail-search-mime-message-function, rmail-search-mime-header-function)
(rmail-decode-mime-charset): Doc fix.
(rmail-search-message, rmail-resend): Check functions set before use.
2009-01-27 03:43:04 +00:00
Glenn Morris
ac120e6dbf (rmail-reply): Don't include Resent-To and Resent-Cc in replies. (Bug#512) 2009-01-26 02:06:58 +00:00
Glenn Morris
38291a39bc (rmail-insert-inbox-text): Revert replacement of "popmail" by "pormail". 2009-01-24 03:35:50 +00:00
Chong Yidong
eec86b015f (rmail-buffer-swapped): Fix last change. 2009-01-23 22:33:43 +00:00
Chong Yidong
a8f67b0483 (rmail-get-labels): Obey the MSG argument. 2009-01-23 19:02:24 +00:00