---- Changes since 1.470 ----
When replying to a message, the original character set is used. Also, a bug that prevented the character set from being displayed when viewing a message is fixed.
Messages with alternate HTML and text bodies are now send with the multipart/alternative content type, which fixes the problem of Gmail showing the body twice.
+The original sender's email address is now included in the 'wrote' line when replying to or forwarding a message.
local ($quote, $html_edit, $body);
local $cfg = defined(%userconfig) ? \%userconfig : \%config;
local @writers = &split_addresses($mail->{'header'}->{'from'});
-local $writer = &decode_mimewords($writers[0]->[1] || $writers[0]->[0]).
- " wrote ..";
+local $writer;
+if ($writers[0]->[1]) {
+ $writer = &decode_mimewords($writers[0]->[1])." <".
+ &decode_mimewords($writers[0]->[0])."> wrote ..";
+ }
+else {
+ $writer = &decode_mimewords($writers[0]->[0])." wrote ..";
+ }
local $tm;
if ($cfg->{'reply_date'} &&
($tm = &parse_mail_date($_[0]->{'header'}->{'date'}))) {