w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 026053a6e1e0cdbaf71c19de3f025bbcc99f0f26
parent 3d26e0a2d803e86d6515e7f57a3e07e57293c600
Author: ukai <ukai>
Date:   Mon, 11 Nov 2002 15:50:28 +0000

[w3m-dev 03408] edit From in w3mail.cgi
* scripts/w3mmail.cgi.in: edit from as well
From: AIDA Shinra <aida-s@jcom.home.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mscripts/w3mmail.cgi.in | 19++++++-------------
2 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2002-11-12 AIDA Shinra <aida-s@jcom.home.ne.jp> + * [w3m-dev 03408] edit From in w3mail.cgi + * scripts/w3mmail.cgi.in: edit from as well + +2002-11-12 AIDA Shinra <aida-s@jcom.home.ne.jp> + * [w3m-dev 03408] fix Bug#87472 MOUSE_SCROLL_LINE should be a run-time option * fm.h (relative_wheel_scroll): added diff --git a/scripts/w3mmail.cgi.in b/scripts/w3mmail.cgi.in @@ -46,13 +46,7 @@ if ($query =~ s/^\w+://) { print "<form action='file://$0' method='POST'>\n"; print "<input type='hidden' name='cookie' value='$local_cookie'>\n"; print "<table>\n"; - if ($opt{'from'}) { - $v = &lang_html_quote($opt{'from'}); - print "<tr><td>From:<td>$v\n"; - print "<input type='hidden' name='from' value=\"$v\">\n"; - delete $opt{'from'}; - } - foreach $h ('to', 'cc', 'bcc', 'subject') { + foreach $h ('from', 'to', 'cc', 'bcc', 'subject') { $v = &lang_html_quote($opt{$h}); print "<tr><td>\u$h:<td><input type='text' name=\"$h\" value=\"$v\">\n"; delete $opt{$h}; @@ -132,12 +126,7 @@ if ($query =~ s/^\w+://) { print "<input type='submit' name='action' value='Send'>\n"; print "<hr>\n"; print "<table>\n"; - if ($opt{'from'}) { - print "<tr><td>From:<td>$v{'from'}\n"; - print "<input type='hidden' name='from' value=\"$v{'from'}\">\n"; - delete $opt{'from'}; - } - foreach $h ('to', 'cc', 'bcc', 'subject') { + foreach $h ('from', 'to', 'cc', 'bcc', 'subject') { print "<tr><td>\u$h:<td><input type='text' name=\"$h\" value=\"$v{$h}\">\n"; delete $opt{$h}; } @@ -160,6 +149,10 @@ if ($query =~ s/^\w+://) { print "<input type='submit' name='action' value='Preview'><br>\n"; print "</body></html>\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";