aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-08-20 00:11:35 -0700
committerGlenn Morris2010-08-20 00:11:35 -0700
commitfb89a65490016bfb747b80a6967dc619944ef945 (patch)
treef6031c62cba95ab19e572573f4364d03b3158616
parent96b1842de8277af1c53c645935dde26d9fd718cd (diff)
downloademacs-fb89a65490016bfb747b80a6967dc619944ef945.tar.gz
emacs-fb89a65490016bfb747b80a6967dc619944ef945.zip
Fix rmail-forward with non-sendmail sending function.
* lisp/mail/rmail.el (rmail-forward): Replace mail-text-start with its expansion, so as not to need sendmail. (mail-text-start): Remove declaration. (rmail-retry-failure): Require sendmail.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/mail/rmail.el13
2 files changed, 15 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 83578620420..c104d38cdfd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12010-08-20 Glenn Morris <rgm@gnu.org>
2
3 * mail/rmail.el (rmail-forward): Replace mail-text-start with its
4 expansion, so as not to need sendmail.
5 (mail-text-start): Remove declaration.
6 (rmail-retry-failure): Require sendmail.
7
12010-08-19 Stefan Monnier <monnier@iro.umontreal.ca> 82010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * subr.el (read-key): Don't hide the menu-bar entries (bug#6881). 10 * subr.el (read-key): Don't hide the menu-bar entries (bug#6881).
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index fbf5c534a28..fa0b7bef207 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -191,8 +191,6 @@ please report it with \\[report-emacs-bug].")
191 :group 'rmail-retrieve 191 :group 'rmail-retrieve
192 :type '(repeat (directory))) 192 :type '(repeat (directory)))
193 193
194(declare-function mail-position-on-field "sendmail" (field &optional soft))
195(declare-function mail-text-start "sendmail" ())
196(declare-function rmail-dont-reply-to "mail-utils" (destinations)) 194(declare-function rmail-dont-reply-to "mail-utils" (destinations))
197(declare-function rmail-update-summary "rmailsum" (&rest ignore)) 195(declare-function rmail-update-summary "rmailsum" (&rest ignore))
198 196
@@ -1643,8 +1641,6 @@ The duplicate copy goes into the Rmail file just after the original."
1643(declare-function rmail-summary-mark-deleted "rmailsum" (&optional n undel)) 1641(declare-function rmail-summary-mark-deleted "rmailsum" (&optional n undel))
1644(declare-function rfc822-addresses "rfc822" (header-text)) 1642(declare-function rfc822-addresses "rfc822" (header-text))
1645(declare-function mail-abbrev-make-syntax-table "mailabbrev.el" ()) 1643(declare-function mail-abbrev-make-syntax-table "mailabbrev.el" ())
1646(declare-function mail-sendmail-delimit-header "sendmail" ())
1647(declare-function mail-header-end "sendmail" ())
1648 1644
1649;; RLK feature not added in this version: 1645;; RLK feature not added in this version:
1650;; argument specifies inbox file or files in various ways. 1646;; argument specifies inbox file or files in various ways.
@@ -3686,7 +3682,8 @@ see the documentation of `rmail-resend'."
3686 ;; The mail buffer is now current. 3682 ;; The mail buffer is now current.
3687 (save-excursion 3683 (save-excursion
3688 ;; Insert after header separator--before signature if any. 3684 ;; Insert after header separator--before signature if any.
3689 (goto-char (mail-text-start)) 3685 (rfc822-goto-eoh)
3686 (forward-line 1)
3690 (if (or rmail-enable-mime rmail-enable-mime-composing) 3687 (if (or rmail-enable-mime rmail-enable-mime-composing)
3691 (funcall rmail-insert-mime-forwarded-message-function 3688 (funcall rmail-insert-mime-forwarded-message-function
3692 forward-buffer) 3689 forward-buffer)
@@ -3841,6 +3838,10 @@ The message should be narrowed to just the headers."
3841 (1- (point)) 3838 (1- (point))
3842 (point-max))))))) 3839 (point-max)))))))
3843 3840
3841(declare-function mail-sendmail-delimit-header "sendmail" ())
3842(declare-function mail-header-end "sendmail" ())
3843(declare-function mail-position-on-field "sendmail" (field &optional soft))
3844
3844(defun rmail-retry-failure () 3845(defun rmail-retry-failure ()
3845 "Edit a mail message which is based on the contents of the current message. 3846 "Edit a mail message which is based on the contents of the current message.
3846For a message rejected by the mail system, extract the interesting headers and 3847For a message rejected by the mail system, extract the interesting headers and
@@ -3932,6 +3933,8 @@ specifying headers which should not be copied into the new message."
3932 (goto-char (point-min)) 3933 (goto-char (point-min))
3933 (if bounce-indent 3934 (if bounce-indent
3934 (indent-rigidly (point-min) (point-max) bounce-indent)) 3935 (indent-rigidly (point-min) (point-max) bounce-indent))
3936 ;; FIXME better to replace sendmail functions.
3937 (require 'sendmail)
3935 (mail-sendmail-delimit-header) 3938 (mail-sendmail-delimit-header)
3936 (save-restriction 3939 (save-restriction
3937 (narrow-to-region (point-min) (mail-header-end)) 3940 (narrow-to-region (point-min) (mail-header-end))