- Subject: Re: Setting the From: and Reply-to: Headers in Jed
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Mon, 8 Dec 2008 23:30:29 -0500
Duke <dukeofperl@xxxxxxx> wrote:
> define mail_hook ()
>{
> mailedit_mode ();
> local_setkey ("mail_send", "^C^C");
> local_setkey ("mail_kill_buffer", "^Xk");
> variable SendMail_Cmd = "/usr/sbin/sendmail -t -oem -odb -f
> duke0fperl@xxxxxxx";
>}
When you declare a variable inside a function, it becomes local to the
function. The SendMail_Cmd and MailEdit_Reply_To commands need to be
made global:
variable SendMail_Cmd =
"/usr/sbin/sendmail -t -oem -odb -f duke0fperl@xxxxxxx";
variable MailEdit_Reply_To = "dukeofperl@xxxxxxx";
define mail_hook ()
{
mailedit_mode ();
local_setkey ("mail_send", "^C^C");
local_setkey ("mail_kill_buffer", "^Xk");
}
> When using Jed from within Alpine, (jed %s -tmp --mailedit-mode),
> again the mode in the status line shows up as "Text" instead of
> "mailedit".
How is Alpine calling jed? Does it substitute "%s" by the name of the
file?
> AS well, the following appearrs to be ignored:
> set_realname ("Duke Normandin");
> set_username ("dukeofperl");
> %set_hostname ("no.where.com");
> set_hostname ("ml1.net");
> set_emailaddress ("dukeofperl@xxxxxxx");
>
> Should this stuff also be in MailEdit_mode_hook?
No-- mailedit mode does not use those items because it leaves it up to
the mail-delivery agaent. The above functions are primarly used for
modes such as the changlog mode, which adds entries to changelog files.
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2008 date index]
[2008 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]