Bug 188108: Name forwarded emails appropriately

Patch by Magnus Melin (mkmelin+mozilla@iki.fi)
r=bienvenu
sr=mscott
This commit is contained in:
pkasting%google.com 2006-08-18 21:40:29 +00:00
Родитель 943d93f1e8
Коммит e103004eba
1 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -601,8 +601,15 @@ mime_draft_process_attachments(mime_draft_data *mdd)
{ {
if (tmpFile->real_name) if (tmpFile->real_name)
NS_MsgSACopy ( &(tmp->real_name), tmpFile->real_name ); NS_MsgSACopy ( &(tmp->real_name), tmpFile->real_name );
else else {
NS_MsgSACopy ( &(tmp->real_name), tmpSpec.get() ); if (PL_strstr(tmpFile->type, MESSAGE_RFC822))
// we have the odd case of processing an e-mail that had an unnamed
// eml message attached
NS_MsgSACopy( &(tmp->real_name), "ForwardedMessage.eml" );
else
NS_MsgSACopy ( &(tmp->real_name), tmpSpec.get() );
}
} }
} }