[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

buffer-local mail-envelope-from

From: Golubev I. N.
Subject: buffer-local mail-envelope-from
Date: Thu, 27 Dec 2001 18:40:24 (GMT)

Newer versions of `sendmail.el' from emacs-21.1 or mail-lib-1.40
allows to specify sendmail program `-f' option argument using
`mail-envelope-from' user variable (why this variable is declared
boolean while it is a string?).

But setting buffer-local value of that variable in sendmail-mode
buffer will not affect message sending since it will not affect
sendmail program option list creation which occurs in a temporary
buffer (tembuf) with default values of all buffer-local variables.

An ideal solution would be copying *all* buffer-local variables from
sendmail-mode buffer to tembuf.  Unless that is done, one has to
create temporary variable bindings like this.

--- sendmail.el 2001/12/23 15:17:24
+++ sendmail.el 2001/11/28 07:00:42
@@ -852,7 +852,8 @@
        (mailbuf (current-buffer))
        (program (if (boundp 'sendmail-program)
-                  "/usr/lib/sendmail")))
+                  "/usr/lib/sendmail"))
+       (mail-envelope-from mail-envelope-from))
          (set-buffer tembuf)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]