Commit graph

355 commits

Author SHA1 Message Date
Richard M. Stallman
9d43f6f103 (rmail-toggle-header): Avoid possibly slow call to
rmail-count-screen-lines starting from (point-min).
2002-02-06 15:00:31 +00:00
Eli Zaretskii
85eba33954 (rmail): Use find-buffer-visiting instead of
get-file-buffer to check for rmail buffer existence.
2002-02-03 11:34:29 +00:00
Eli Zaretskii
d54f26b13e (rmail-redecode-body): Prune the headers before
looking for X-Coding-System header, and restore the pruned state
before returning.
2002-02-02 16:29:06 +00:00
Richard M. Stallman
19032340d1 (rmail-decode-babyl-format): Disable undo around the decode-coding-region call. 2002-01-11 21:23:40 +00:00
Pavel Janík
fb359a2b21 (rmail-fontify-buffer-function): Do not use make-local-hook. 2001-12-13 07:52:26 +00:00
ShengHuo ZHU
0c773047fd 2001-11-25 ShengHuo ZHU <zsh@cs.rochester.edu>
* mail/rmail.el (rmail-enable-mime-composing): New. A lightweight
	version of rmail-enable-mime.
	(rmail-forward): Use it.

	* message.el (message-forward-rmail-make-body):
	save-window-excursion.
	(message-encode-message-body): no error.
	(message-setup-1): compose-mail send-actions are different from
	message-send-actions.

	* message.el (message-forward-subject-author-subject): Don't use
	message-news-p, which widens the buffer.
	(message-forward-make-body): New function.
	(message-forward): Use it.
	(message-insinuate-rmail): New.
	(message-forward-rmail-make-body): New.
2001-11-25 20:45:37 +00:00
Eli Zaretskii
1bbdda4d51 (top-level): Require mule-utils when compiling.
(rmail-decode-babyl-format): Use detect-coding-with-priority
instead of detect-coding-region, to favor detection of emacs-mule
encoded Babyl files written by rmailout.el etc.  Suggested by
Kenichi Handa <handa@etl.go.jp>.
2001-09-16 07:56:36 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Gerd Moellmann
6f19114e19 (rmail-show-message): Show beginning of message in
all windows containing it.
2001-07-10 14:22:13 +00:00
Gerd Moellmann
383191dbb0 (rmail-reply): Remove misleading comment. 2001-07-06 11:41:47 +00:00
Gerd Moellmann
a2cc5c4f18 (rmail-reply): Don't forget to narrow header in
MIME-mode.
2001-07-06 10:04:07 +00:00
Richard M. Stallman
ed104a87a9 (rmail-reformat-message): Bind inhibit-read-only to t.
(rmail-msg-restore-non-pruned-header): Likewise.
If point was in the old pruned header, put it at the top.
(rmail-msg-prune-header): If point was at the top, keep it there.

(rmail-narrow-to-non-pruned-header): New function.
(rmail-retry-failure): Use rmail-narrow-to-non-pruned-header.
2001-06-29 03:17:10 +00:00
Gerd Moellmann
157521c55e (rmail-msg-restore-non-pruned-header): New
function.
(rmail-msg-prune-header): Likewise.
(rmail-toggle-header): Use `rmail-msg-restore-non-pruned-header'
and `rmail-msg-prune-header'.
2001-06-26 10:34:27 +00:00
Gerd Moellmann
9652931f21 (rmail-revert): Modify to work in
rmail-view-buffer.

(rmail-insert-mime-resent-message-function): New
variable.
(rmail-resend): Modify to work in `rmail-view-buffer'; call
`rmail-insert-mime-resent-message-function' if `rmail-enable-mime'
is non-nil.
2001-05-31 08:09:47 +00:00
Richard M. Stallman
2382b29dd3 (rmail-retry-failure): Do save-window-excursion. 2001-05-20 17:17:32 +00:00
Gerd Moellmann
f90c23ca30 (rmail-require-mime-maybe): New function.
(rmail): Use it.
(rmail-mode): Handle the case of finding Rmail files.
2001-05-17 14:47:01 +00:00
Gerd Moellmann
6b59a5fc11 (rmail-insert-mime-forwarded-message-function)
(rmail-search-mime-message-function)
(rmail-search-mime-header-function): New variables.
(rmail-expunge-and-save): Be sure to set-buffer to the Rmail
buffer.
(rmail-quit): Bury `rmail-buffer' after `rmail-view-buffer' is
hidden.
(rmail-get-new-mail): Likewise.
(rmail-toggle-header): Likewise.  If rmail-enable-mime is non-nil,
call rmai-show-mime-function.
(rmail-display-labels): If rmail-enable-mime is non-nil, update
mode-line-process of rmail-view-buffer.
(rmail-set-attribute): Be sure to set-buffer to the Rmail buffer.
(rmail-show-message): Be sure to call rmail-auto-file in the Rmail
buffer.
(rmail-next-message): Be sure to set-buffer to the Rmail buffer.
(rmail-next-undeleted-message): Likewise.
(rmail-message-regexp-p): If rmail-enable-mime is non-nil, call
rmail-search-mime-header-function.
(rmail-search-message): New function.
(rmail-search): Call rmail-search-message to check if a message
matches REGEXP, lastly update point after calling
rmail-show-message.
(rmail-undelete-previous-message): Be sure to set-buffer to the
Rmail buffer.
(rmail-expunge-confirmed): Likewise.
(rmail-only-expunge): Likewise.
(rmail-reply): If rmail-enable-mime is non-nil, don't narrow to
header region, refer to rmail-msgref-vector while setting the
current buffer to rmail-buffer temporarily.
(rmail-forward): Be sure to bind forward-buffer to the Rmail
buffer.  If rmail-enable-mime is non-nil, call
rmail-insert-mime-forwarded-message-function instead of inserting
forwarded message by itself.
2001-05-08 11:17:27 +00:00
Gerd Moellmann
f851a71c3a (rmail-mode-map): Use rmail-sort-by-labels
instead of rmail-sort-by-keywords.
2001-05-07 10:07:46 +00:00
Gerd Moellmann
2bc7a79989 (rmail-edit): New Custom group. 2001-05-07 09:58:38 +00:00
Gerd Moellmann
50df7214b3 (rmail-message-regexp-p): Yet another fix. 2001-04-30 12:57:34 +00:00
Gerd Moellmann
b2b8f8fa96 (rmail-message-regexp-p): Don't match before
headers.
2001-04-27 13:00:42 +00:00
Gerd Moellmann
7cff9c6f87 (rmail-message-regexp-p): Use rfc822-goto-eoh
if necessary, like in rmail-show-message.
2001-04-26 13:43:42 +00:00
Kenichi Handa
3a85a1794a (rmail-insert-inbox-text): Call expand-file-name before
substitute-in-file-name to handle double slashes in FILE correctly.
2001-03-16 05:52:16 +00:00
Richard M. Stallman
b31e48f528 Fix previous change. 2001-03-07 23:08:12 +00:00
Richard M. Stallman
132bf46d74 (rmail-toggle-header): Use a window which is showing the Rmail buffer,
rather than the selected window.
2001-03-07 23:05:02 +00:00
Richard M. Stallman
b926081f86 (rmail-retry-failure): Don't call rmail-beginning-of-message.
Don't discard From: field.  Do discard Received: field.
Use unwind-protect to re-prune.

(rmail-retry-ignored-headers): Discard X-Authentication-Warning field.
2001-03-06 03:19:14 +00:00
Gerd Moellmann
b2065cb6eb (rmail-ignored-headers): Add X-Trace,
X-Complaints-To, NNTP-Posting-Date, and User-Agent.
2001-02-05 11:31:52 +00:00
Gerd Moellmann
0404d03100 (rmail-ignored-headers): Add X-Sign, X-BeenThere,
X-Mailman-Version, Precedence, List-Help, List-Post,
List-Subscribe, List-Id, List-Unsubscribe, List-Archive,
Content-Type, Content-Length.
2001-01-29 12:08:17 +00:00
Eli Zaretskii
4685e6b754 (rmail-redecode-body): Doc fix. 2001-01-25 12:32:26 +00:00
Eli Zaretskii
fd4976b812 (rmail-redecode-body): New function. 2001-01-22 17:14:47 +00:00
Gerd Moellmann
e6be618b87 (rmail-expunge-confirmed): New function.
(rmail-expunge): Use it.
2000-12-04 16:40:57 +00:00
Gerd Moellmann
2c0b18983c (rmail-set-message-counters): Don't use "D"
as dummy 0-th char of rmail-deleted-vector.
2000-11-30 16:22:12 +00:00
Gerd Moellmann
f0a7da4d26 (rmail-automatic-folder-directives): Add a custom
type, group and version.
2000-11-27 17:14:53 +00:00
Gerd Moellmann
771e538796 (rmail-confirm-expunge): Default to
y-or-n-p.
2000-11-22 22:37:39 +00:00
Eli Zaretskii
7e2605e79e (rmail-start-mail): Use display-multi-frame-p
instead of looking at window-system.
2000-07-31 15:41:39 +00:00
Gerd Moellmann
bdbeb193c4 (rmail-clear-headers): Don't throw an error
if rmail-ignored-headers is nil.
(rmail-retry-failure): Bind rmail-ignored-headers and
rmail-displayed-headers to nil.
2000-07-07 14:14:08 +00:00
Gerd Moellmann
c70d73590c (mail-unsent-separator): Changed "the" to "\\w+", as
exim can use "your message" instead of "the message".
2000-07-06 20:08:28 +00:00
Gerd Moellmann
07ae0d6685 (rmail-widen-to-current-msgbeg): Use rmail-msgbeg
and rmail-msgend to compute the restriction at the end, instead of
computing it.
2000-05-30 18:45:08 +00:00
Dave Love
ab59163d52 1999-01-23 Eric M. Ludlam <zappo@ultranet.com>
* rmailout.el (rmail-output-to-rmail-file): Added optional param STAY

	* rmail.el (rmail-automatic-folder-directives): New user variable.
	(rmail-show-message): Add call to `rmail-auto-file' during display.
	(rmail-auto-file): New function
2000-05-24 16:25:27 +00:00
Kenichi Handa
d17f2b920b (rmail-decode-quoted-printable): Use delete-region
and insert, not subst-char-in-region.
2000-05-20 00:09:21 +00:00
Dave Love
187962c499 rmail-show-message-hook): Customize and offer
goto-addr as an option.
2000-05-14 16:22:04 +00:00
Kenichi Handa
f03392a12d (rmail-expunge): When there's no deleted messages,
do nothing.
2000-04-25 23:49:40 +00:00
Gerd Moellmann
9f7c6da9c5 (rmail-confirm-expunge): New user-option.
(rmail-expunge): Ask for confirmation depending on the setting
of rmail-confirm-expunge.
2000-03-24 12:12:58 +00:00
Gerd Moellmann
6c5def8e73 (rmail-quit-hook): New variable. 2000-03-02 09:29:36 +00:00
Gerd Moellmann
7090859485 (rmail-resend): Verify buffer is really Rmail. 2000-02-25 15:44:18 +00:00
Gerd Moellmann
77e38f8bbb (rmail-retry-failure): Use
rmail-beginning-of-message before rmail-toggle-header, because the
former toggles headers.
2000-02-07 23:27:14 +00:00
Gerd Moellmann
b787fc059e Use new backquote syntax. 1999-11-15 14:26:07 +00:00
Dave Love
861e5a98bc (rmail-pop-password-error): Add alternative. 1999-10-14 21:21:10 +00:00
Richard M. Stallman
2b3c5a6879 (rmail-retry-failure): Unconditionally move to beginning of message. 1999-09-06 21:48:43 +00:00
Dave Love
8b9a64c2f8 (rmail-read-password): Deleted.
(rmail-get-pop-password): Use read-password.
1999-09-06 21:24:50 +00:00