projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70d18a8
)
Put plain text body first
author
Jamie Cameron
<jcameron@webmin.com>
Thu, 5 Mar 2009 08:22:38 +0000
(08:22 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Thu, 5 Mar 2009 08:22:38 +0000
(08:22 +0000)
mailboxes/send_mail.cgi
patch
|
blob
|
history
diff --git
a/mailboxes/send_mail.cgi
b/mailboxes/send_mail.cgi
index
73aa0e5
..
1eb50a4
100755
(executable)
--- a/
mailboxes/send_mail.cgi
+++ b/
mailboxes/send_mail.cgi
@@
-97,14
+97,14
@@
if ($in{'body'} =~ /\S/) {
# Add the plain-text body
local $mt = "text/plain";
if ($plainbody =~ /[\177-\377]/) {
-
push
(@attach,
+
unshift
(@attach,
{ 'headers' => [ [ 'Content-Type', $mt ],
[ 'Content-Transfer-Encoding',
'quoted-printable' ] ],
'data' => quoted_encode($plainbody) });
}
else {
-
push
(@attach,
+
unshift
(@attach,
{ 'headers' => [ [ 'Content-Type', $mt ],
[ 'Content-Transfer-Encoding',
'7bit' ] ],