Update of /cvsroot/mahogany/M/src/mail
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17041/mail
Modified Files:
SendMessageCC.cpp
Log Message:
Set the Date header each time the message is written (be it to save it as
draft, or to send it)
Index: SendMessageCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/SendMessageCC.cpp,v
retrieving revision 1.230
retrieving revision 1.231
diff -b -u -2 -r1.230 -r1.231
--- SendMessageCC.cpp 4 Oct 2004 12:30:22 -0000 1.230
+++ SendMessageCC.cpp 20 Jul 2005 12:47:01 -0000 1.231
@@ -1270,7 +1270,5 @@
// Date:
//
- // NB: we do allow the user to override the date header because this is
- // useful when editing a previously postponed message
- if ( !HasHeaderEntry(_T("Date")) )
+ if ( m_Envelope->remail && !HasHeaderEntry(_T("Date")) )
{
char tmpbuf[MAILTMPLEN];
@@ -1327,4 +1325,8 @@
RemoveHeaderEntry(_T("X-BCC"));
}
+
+ char tmpbuf[MAILTMPLEN];
+ rfc822_date (tmpbuf);
+ m_Envelope->date = (unsigned char *)cpystr(tmpbuf);
}
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates