Commit Graph

2146 Commits

Author SHA1 Message Date
Glenn Morris
cfb4688eff (metamail-interpret-body): Remove Rmail-specific hack that is no
longer appropriate to mbox Rmail.
2009-02-07 03:03:57 +00:00
Glenn Morris
8acdd74884 (rmail-create-summary-line): Widen the view buffer
before trying to move to the start of the message.
(rmail-summary-undelete-many, rmail-summary-rmail-update):
Fix rmail-set-attribute calls.
2009-02-07 03:02:57 +00:00
Glenn Morris
04ca017c6c (mail-bury-selects-summary, mail-yank-original): Doc fix.
(rmail-output-to-rmail-buffer): Autoload it.
(mail-do-fcc): Give it a doc string.  Update for mbox Rmail, simplify.
2009-02-07 03:02:39 +00:00
Glenn Morris
4925ab0b6f Sync final change from rmail-mox-branch, rev 1.13.2.4, 2006-01-16.
Alex Schroeder <alex at gnu.org>

(unrmail): Use regexps to find message separators so as not to match
any fake rmime.el separators.  Remove any sections added by rmime.el.
2009-02-07 03:01:59 +00:00
Glenn Morris
81d8114e20 (unrmail): Use current-time-string. 2009-02-06 07:33:20 +00:00
Glenn Morris
7a613b6723 (rmail-mail-separator): Delete.
(undigestify-rmail-message, unforward-rmail-message): Update for mbox Rmail.
2009-02-06 03:58:20 +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
869692c03a (mail-fetch-field): Previous doc fix was ill-advised. 2009-02-04 03:41:06 +00:00
Glenn Morris
7b094a30fc Require rmail not just when compiling.
Remove unneeded declarations.
2009-02-04 03:39:05 +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
5ff43aba5c Tweak previous change. 2009-02-03 08:20:33 +00:00
Glenn Morris
58400e4fa8 (unrmail): In the absence of Mail-from, prefer Date over current-time.
(Bug#2175)
2009-02-03 08:09:03 +00:00
Glenn Morris
c49edcd12f (rmail-get-summary-labels): Treat empty labels as null. 2009-02-03 04:09:01 +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
c36e676798 (rmail-label-obarray): Initialize using rmail-attr-array.
(rmail-make-label, rmail-read-label): Give it a doc string.
(rmail-add-label, rmail-kill-label): Change argument name to match the
doc.  Doc fix.
(rmail-set-label): Doc fix.  Also update summary in attr case.
Accept labels as a string or a symbol.  (Bug#2165)
2009-02-03 04:07:02 +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
Stefan Monnier
73d7bcb918 (rmail-sort-messages): Use car-less-than-car if possible. 2009-02-01 03:28:33 +00:00
Stefan Monnier
befa817562 (rmail-edit-map): Move init into declaration.
(rmail-edit-mode, rmail-cease-edit): Use with-current-buffer.
2009-02-01 03:26:17 +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
de456f3ba1 (unrmail): Set coding-system of the old Rmail file to `raw-text-unix'.
Bind coding-system-for-write when writing out the converted message, and
make sure it uses Unix EOLs.
2009-01-31 14:34:05 +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
ab383a615f (rmail-new-summary): Don't try to summarize an empty folder. 2009-01-31 03:15:35 +00:00
Glenn Morris
78f086e42c (mail-fetch-field): Doc fix. 2009-01-31 02:52:18 +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
Glenn Morris
9f08b1415d Tidy up commentary.
(rmail-current-message): Remove unneeded declaration.
(uce-message-text, uce-default-headers): Fix custom type.
(rmail-buffer, rmail-msg-is-pruned): Declare.
(uce-reply-to-uce): Add autoload cookie.  Doc fix.  Update for mbox Rmail.
2009-01-31 02:50:28 +00:00
Eli Zaretskii
a880e5b938 (unrmail): Fix conversion of BABYL attributes into Rmail-mbox attributes. 2009-01-30 18:31:35 +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
98a9d488a3 (rmail-header-summary): Use line-end-position. 2009-01-30 07:20:58 +00:00
Glenn Morris
45bd646186 (rmail-summary-update-line): Replace duplicate line-beginning-position calls. 2009-01-30 03:47:35 +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
04c17beac3 (rmail-summary-disable): Fix declaration. 2009-01-29 03:42:17 +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
Glenn Morris
314a8fc3a7 (rmail-set-label): Update the summary, if there is one, after a label
is added.
2009-01-29 03:41:38 +00:00
Glenn Morris
8fbbdd4404 (rmail-summary-update-line): New function.
(rmail-summary-goto-msg): Return a value according to whether message
was found.
(rmail-summary-update-highlight): Give the overlay an 'rmail-summary
property.  Use line-end-position.
2009-01-29 03:41:12 +00:00
Chong Yidong
b3a51d1d20 (rmail-cease-edit): Add additional quotes to quoted From lines. 2009-01-29 03:02:39 +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
Glenn Morris
3ea5d765e7 (rmail-message-recipients-p-1): Don't bother
starting from the beginning, since mail-fetch-field does not care.
(rmail-create-summary-line): Fix unseen handling.  (Bug#2089)
(rmail-get-summary-status): New name for old rmail-get-summary-labels.
(rmail-get-summary-labels): New function.  Returns labels rather than
status (edited, etc).
(rmail-create-summary): Insert an extra space after the status
flags, for consistency with old rmail, and with current
rmail-summary-font-lock-keywords.
2009-01-28 02:49:40 +00:00
Chong Yidong
eb7f6f5b5c (rmail-convert-babyl-to-mbox): Prompt user before converting. 2009-01-27 23:02:00 +00:00
Chong Yidong
77f3338372 (unrmail): Record labels in X-RMAIL-* fields, which are recognized by
the new Rmail, instead of X-BABYL-V6-*.
2009-01-27 22:38:58 +00:00
Glenn Morris
4546235fc9 Tweak previous doc fix. 2009-01-27 08:32:56 +00:00