Bug 64267 - clicking on email address/mailto link in message body doesn't set the correct From (identity) - bustage fix for .emls; r=bienvenu

This commit is contained in:
Jim Porter 2011-07-06 20:08:05 -05:00
Родитель 5b5d257277
Коммит be7a0b5df5
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -103,6 +103,11 @@ nsresult nsMsgComposeContentHandler::GetBestIdentity(
rv = msgHdr->GetFolder(getter_AddRefs(folder));
NS_ENSURE_SUCCESS(rv, rv);
// nsIMsgDBHdrs from .eml messages have a null folder, so bail out if that's
// the case.
if (!folder)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIMsgIncomingServer> server;
rv = folder->GetServer(getter_AddRefs(server));
NS_ENSURE_SUCCESS(rv, rv);