Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv6885/src/mail
Modified Files:
MailFolderCC.cpp
Log Message:
folder may be already closed by the time we process mm_exists() from it
Index: MailFolderCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailFolderCC.cpp,v
retrieving revision 1.638
retrieving revision 1.639
diff -b -u -2 -r1.638 -r1.639
--- MailFolderCC.cpp 28 Aug 2002 00:05:02 -0000 1.638
+++ MailFolderCC.cpp 2 Sep 2002 10:39:24 -0000 1.639
@@ -4447,5 +4447,12 @@
void MailFolderCC::OnNewMail()
{
- CHECK_RET( m_MailStream, "OnNewMail: folder is closed" );
+ if ( !m_MailStream )
+ {
+ // the folder could have been closed after mm_exists() had been
+ // generated: this happens, in particular, when opening an invalid MBX
+ // folder as c-client first generates mm_exists() and then realizes that
+ // the folder is corrupt and closes it!
+ return;
+ }
// c-client is not reentrant, this is why we have to call this function
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates