Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1:/tmp/cvs-serv29856/include

Modified Files:
        MailFolderCmn.h 
Log Message:
Don't show subject while filtering spam (shut up header prefetch)

Index: MailFolderCmn.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MailFolderCmn.h,v
retrieving revision 1.83
retrieving revision 1.84
diff -b -u -2 -r1.83 -r1.84
--- MailFolderCmn.h     3 Oct 2003 11:05:15 -0000       1.83
+++ MailFolderCmn.h     3 Oct 2003 17:08:05 -0000       1.84
@@ -28,4 +28,5 @@
 
 #include "MEvent.h"     // for MEventOptionsChangeData
+#include "pointers.h"           // for DECLARE_REF_COUNTER
 
 // define this for some additional checks of folder closing logic
@@ -39,4 +40,5 @@
 
 class FilterRule;
+DECLARE_REF_COUNTER(FilterRule)
 
 /**
@@ -344,4 +346,30 @@
 
    friend class MfCloseEntry;
+};
+
+class FilterNewMailContext
+{
+public:
+   FilterNewMailContext(FilterRule *rule)
+   {
+      if( !m_instance )
+      {
+         m_instance = this;
+         m_rule.AttachAndIncRef(rule);
+      }
+   }
+   ~FilterNewMailContext()
+   {
+      if( m_instance == this )
+         m_instance = NULL;
+   }
+
+   static bool IsInStack() { return m_instance != NULL; }
+   static RefCounter<FilterRule> GetFilter() { return m_instance->m_rule; }
+
+private:
+   RefCounter<FilterRule> m_rule;
+   
+   static FilterNewMailContext *m_instance;
 };
 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to