fix save as draft on imap servers that don't like empty flag list sr=mscott 248240

This commit is contained in:
bienvenu%nventure.com 2004-07-02 23:45:27 +00:00
Родитель 644a66a1e2
Коммит 824cfec9df
1 изменённых файлов: 10 добавлений и 5 удалений

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

@ -5123,12 +5123,17 @@ void nsImapProtocol::UploadMessageFromFile (nsIFileSpec* fileSpec,
{ {
command.Append(" append \""); command.Append(" append \"");
command.Append(escapedName); command.Append(escapedName);
command.Append("\" ("); command.Append("\"");
if (flags)
{
command.Append(" (");
SetupMessageFlagsString(flagString, flags, SetupMessageFlagsString(flagString, flags,
GetServerStateParser().SupportsUserFlags()); GetServerStateParser().SupportsUserFlags());
command.Append(flagString); command.Append(flagString);
command.Append(") {"); command.Append(")");
}
command.Append(" {");
dataBuffer = (char*) PR_CALLOC(COPY_BUFFER_SIZE+1); dataBuffer = (char*) PR_CALLOC(COPY_BUFFER_SIZE+1);
if (!dataBuffer) goto done; if (!dataBuffer) goto done;