1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

2165 Commits

Author SHA1 Message Date
Glenn Morris
4b84883a4a Simplify previous change; again. 2009-02-12 07:53:11 +00:00
Glenn Morris
655a218ace Simplify previous change. 2009-02-12 07:52:02 +00:00
Glenn Morris
3e8fc1b6f6 (rmail-set-label): Fix the test for a label being already present. (Bug#2210) 2009-02-12 06:55:43 +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
28e5063159 (rmail-read-label): Don't scan for labels if the summary exists, since
it's already done.
2009-02-12 03:28:53 +00:00
Glenn Morris
5c9b1aaadf (rmail-get-summary-labels): Store any message labels for use in
completion.
2009-02-12 03:28:37 +00:00
Glenn Morris
8e87c4267a (rmail-make-label): Doc fix.
(rmail-read-label): Add current labels to completion list.  (Bug#2222)
(rmail-set-label): Use `or'.
2009-02-11 04:01:35 +00:00
Glenn Morris
44baa8ce8f (rmail-set-attribute): Allow ATTR to be a string. 2009-02-10 03:57:10 +00:00
Glenn Morris
7dbed48483 (mail-use-rfc822): Remove * from defcustom doc.
(mail-file-babyl-p): Use with-temp-buffer.
2009-02-10 03:39:38 +00:00
Glenn Morris
efb656fd19 Just require rmail. 2009-02-10 03:36:00 +00:00
Glenn Morris
a8e8f94704 Just require rmail.
(rmail-old-pruned): Add doc string.
(rmail-edit-current-message): Use rmail-msg-is-pruned.
(rmail-cease-edit): Don't mangle the leading From line.
Don't mark as edited if there were no changes.  (Bug#2256)
Correctly restore header state.
2009-02-10 03:33:48 +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
Chong Yidong
f265b4dedc (rmail-mime-attachment-dirs-alist): Use temporary-file-directory. 2009-02-07 21:29:17 +00:00
Glenn Morris
3a1eda7c03 (rmime-magic-string): Define for compiler. 2009-02-07 20:08:06 +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
Eli Zaretskii
782c80e892 (rmail-cease-edit): Look for the message's encoding, and its
"content-transfer-encoding" and "content-type" headers only in the
headers' portion.  (Bug#2017)
2009-02-07 15:16:57 +00:00
Eli Zaretskii
aaaaa2767d (rmail-cease-edit): narrow-to-region before extracting mail message headers.
Use encode-coding-region instead of insert-buffer-substring for re-encoding
edited message.  Add qp/b64 encoding only after text was encoded.
2009-02-07 12:55:49 +00:00
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