John E. Davis | 9 Dec 2008 05:30
Picon
Favicon

Re: Setting the From: and Reply-to: Headers in Jed

Duke <dukeofperl <at> ml1.net> 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 <at> ml1.net";
>}

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 <at> ml1.net";
  variable MailEdit_Reply_To = "dukeofperl <at> ml1.net";

  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
(Continue reading)


Gmane