mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
set mru time for a folder when messages are moved into it sr=mscott, part of 251296
This commit is contained in:
parent
c720390105
commit
212f54ff5a
@ -138,6 +138,8 @@ NS_MSG_BASE nsresult MSGApopMD5(const char *text, PRInt32 text_len, const char *
|
||||
NS_MSG_BASE void PRTime2Seconds(PRTime prTime, PRUint32 *seconds);
|
||||
NS_MSG_BASE void PRTime2Seconds(PRTime prTime, PRInt32 *seconds);
|
||||
NS_MSG_BASE void Seconds2PRTime(PRUint32 seconds, PRTime *prTime);
|
||||
// helper function to generate current date+time as a string
|
||||
NS_MSG_BASE void MsgGenerateNowStr(nsACString &nowStr);
|
||||
|
||||
// Appends the correct summary file extension onto the supplied fileLocation
|
||||
// and returns it in summaryLocation.
|
||||
|
@ -1708,6 +1708,10 @@ nsMsgLocalMailFolder::CopyMessages(nsIMsgFolder* srcFolder, nsISupportsArray*
|
||||
srcFolder->NotifyFolderEvent(mDeleteOrMoveMsgFailedAtom);
|
||||
return OnCopyCompleted(srcSupport, PR_FALSE);
|
||||
}
|
||||
|
||||
if (!(mFlags & MSG_FOLDER_FLAG_TRASH|MSG_FOLDER_FLAG_JUNK))
|
||||
SetMRUTime();
|
||||
|
||||
nsXPIDLCString uri;
|
||||
rv = srcFolder->GetURI(getter_Copies(uri));
|
||||
nsCAutoString protocolType(uri);
|
||||
@ -2292,14 +2296,10 @@ nsresult nsMsgLocalMailFolder::WriteStartOfNewMessage()
|
||||
if (mCopyState->m_dummyEnvelopeNeeded)
|
||||
{
|
||||
nsCString result;
|
||||
char timeBuffer[128];
|
||||
PRExplodedTime now;
|
||||
PR_ExplodeTime(PR_Now(), PR_LocalTimeParameters, &now);
|
||||
PR_FormatTimeUSEnglish(timeBuffer, sizeof(timeBuffer),
|
||||
"%a %b %d %H:%M:%S %Y",
|
||||
&now);
|
||||
nsCAutoString nowStr;
|
||||
MsgGenerateNowStr(nowStr);
|
||||
result.Append("From - ");
|
||||
result.Append(timeBuffer);
|
||||
result.Append(nowStr);
|
||||
result.Append(MSG_LINEBREAK);
|
||||
|
||||
// *** jt - hard code status line for now; come back later
|
||||
|
Loading…
Reference in New Issue
Block a user