From 7e6c94ea233816a72cb4af783cc918b639eb19b0 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 11 Nov 2002 15:50:28 +0000 Subject: [w3m-dev 03408] edit From in w3mail.cgi * scripts/w3mmail.cgi.in: edit from as well From: AIDA Shinra --- scripts/w3mmail.cgi.in | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) (limited to 'scripts') diff --git a/scripts/w3mmail.cgi.in b/scripts/w3mmail.cgi.in index 8110130..a3fcaab 100755 --- a/scripts/w3mmail.cgi.in +++ b/scripts/w3mmail.cgi.in @@ -1,6 +1,6 @@ #!@PERL@ -$rcsid = q$Id: w3mmail.cgi.in,v 1.10 2002/01/30 04:27:32 ukai Exp $; +$rcsid = q$Id: w3mmail.cgi.in,v 1.11 2002/11/11 15:50:28 ukai Exp $; ($id = $rcsid) =~ s/^.*,v ([\d\.]*).*/$1/; ($prog=$0) =~ s/.*\///; @@ -46,13 +46,7 @@ if ($query =~ s/^\w+://) { print "
\n"; print "\n"; print "\n"; - if ($opt{'from'}) { - $v = &lang_html_quote($opt{'from'}); - print "
From:$v\n"; - print "\n"; - delete $opt{'from'}; - } - foreach $h ('to', 'cc', 'bcc', 'subject') { + foreach $h ('from', 'to', 'cc', 'bcc', 'subject') { $v = &lang_html_quote($opt{$h}); print "
\u$h:\n"; delete $opt{$h}; @@ -132,12 +126,7 @@ if ($query =~ s/^\w+://) { print "\n"; print "
\n"; print "\n"; - if ($opt{'from'}) { - print "
From:$v{'from'}\n"; - print "\n"; - delete $opt{'from'}; - } - foreach $h ('to', 'cc', 'bcc', 'subject') { + foreach $h ('from', 'to', 'cc', 'bcc', 'subject') { print "
\u$h:\n"; delete $opt{$h}; } @@ -160,6 +149,10 @@ if ($query =~ s/^\w+://) { print "
\n"; print "\n"; } else { +# XXX: quote? +# if ($opt{'from'}) { +# $sendmail_fromopt = '-f' . $opt{'from'}; +# } unless (open(MAIL, "|$SENDMAIL $SENDMAIL_OPT")) { print "Content-Type: text/html\r\n"; print "\r\n"; -- cgit v1.2.3