Bug 3253776 --> Get New Mail for the RSS account fails if chosen from the get new mail toolbar button drop down.

If the server doesn't have an inbox to ask for new mail, just pass in the root folder and let the incoming server figure it out.
This commit is contained in:
scott%scott-macgregor.org 2004-07-30 23:30:18 +00:00
Родитель 03093b486e
Коммит f01765e2a1
1 изменённых файлов: 5 добавлений и 2 удалений

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

@ -709,9 +709,12 @@ function GetInboxFolder(server)
function GetMessagesForInboxOnServer(server)
{
dump ("GetMessagesForInboxOnServer uri = " + server.serverURI + "\n");
var inboxFolder = GetInboxFolder(server);
if (!inboxFolder) return;
// if the server doesn't support an inbox it could be an RSS server or some other server type..
// just use the root folder and the server implementation can figure out what to do.
if (!inboxFolder)
inboxFolder = server.rootFolder;
var folders = new Array(1);
folders[0] = inboxFolder;