Set Sent, Drafts, and Templates flags.

This commit is contained in:
putterman%netscape.com 1999-06-25 21:37:52 +00:00
parent 97284f9713
commit 3c10978bf8

View File

@ -219,7 +219,14 @@ nsresult nsMsgLocalMailFolder::AddSubfolder(nsAutoString name, nsIMsgFolder **ch
folder->SetFlag(MSG_FOLDER_FLAG_TRASH); folder->SetFlag(MSG_FOLDER_FLAG_TRASH);
else if(name == "Unsent Messages" || name == "Outbox") else if(name == "Unsent Messages" || name == "Outbox")
folder->SetFlag(MSG_FOLDER_FLAG_QUEUE); folder->SetFlag(MSG_FOLDER_FLAG_QUEUE);
//These should probably be read in from a preference. Hacking in here for the moment.
else if(name == "Sent")
folder->SetFlag(MSG_FOLDER_FLAG_SENTMAIL);
else if(name == "Drafts")
folder->SetFlag(MSG_FOLDER_FLAG_DRAFTS);
else if(name == "Templates")
folder->SetFlag(MSG_FOLDER_FLAG_TEMPLATES);
mSubFolders->AppendElement(folder); mSubFolders->AppendElement(folder);
folder->SetParent(this); folder->SetParent(this);
*child = folder; *child = folder;