Automatically update the classification algorithm


It should be checked whether it is possible to automatically update the classification each time a mail is moved/add/deleted/changed.


martinstuder wrote Oct 29, 2012 at 8:28 AM

= Task 1 =
Do the updateable WEKA algoritms allow add, remove and update of text/classes.
Give (code) examples of how it works.

= Task 2 =
Test the hooks in Outlook.
What happens if
a) a mail is moved/added (e.g. new mail in inbox) /deleted/copied
b) a folder is added/deleted/moved/renamed

ltogg wrote Oct 29, 2012 at 1:51 PM

WEKA has an interface UpdateableClassifier: http://weka.sourceforge.net/doc.dev/weka/classifiers/UpdateableClassifier.html According to the book, page 554 and to the URL above, only one method must be implemented, which is updateClassifier(). There is no indication yet, that we can remove instances...

ltogg wrote Oct 29, 2012 at 2:46 PM

ltogg wrote Oct 29, 2012 at 3:29 PM


Mail moved:
Folder.BeforeItemMove : http://msdn.microsoft.com/en-us/library/office/bb147840%28v=office.12%29.aspx

Mail added (newly received):
NewMailEx (only when received in inbox?)
? ItemAdd : http://msdn.microsoft.com/en-us/library/office/aa171270%28v=office.11%29.aspx

Mail deleted:
Folder.BeforeItemMove : http://msdn.microsoft.com/en-us/library/office/bb147840%28v=office.12%29.aspx (MoveTo is either "Deleted Items folder" or "Null" when permanently deleted.)
MailItem.BeforeDelete : http://msdn.microsoft.com/en-us/library/office/bb220191%28v=office.12%29.aspx

Mail copied:
? Explorer.BeforeItemPaste : http://msdn.microsoft.com/en-us/library/office/bb147630%28v=office.12%29.aspx

Folder moved:
Folder.BeforeFolderMove : http://msdn.microsoft.com/en-us/library/office/bb147839%28v=office.12%29.aspx

Folder added:
? ItemAdd : http://msdn.microsoft.com/en-us/library/office/aa171270%28v=office.11%29.aspx

Folder deleted:
Folder.BeforeFolderMove : http://msdn.microsoft.com/en-us/library/office/bb147839%28v=office.12%29.aspx (MoveTo is either "Deleted Items folder" or "Null" when permanently deleted.)

Folder copied:
? Explorer.BeforeItemPaste : http://msdn.microsoft.com/en-us/library/office/bb147630%28v=office.12%29.aspx

Folder renamed:
? ItemChange : http://msdn.microsoft.com/en-us/library/office/aa171274%28v=office.11%29.aspx

wrote Oct 31, 2012 at 8:26 AM

ltogg wrote Oct 31, 2012 at 9:22 AM


using System.Windows.Forms;
MessageBox.Show("Test-Message", "Info", MessageBoxButtons.OK, MessageBoxIcon.None);

ltogg wrote Oct 31, 2012 at 2:34 PM

ltogg wrote Nov 1, 2012 at 4:22 PM

Is a problem with garbage collecting the reason that BeforeItemMove doesn't work?


ltogg wrote Nov 26, 2012 at 2:39 PM

As with all events, the object that is raising the event needs to be declared at the class level, so that it does not go out of scope when the .NET garbage collector comes through.


ltogg wrote Nov 26, 2012 at 2:41 PM

ltogg wrote Dec 3, 2012 at 1:56 PM

To check: Can we get a callback for mails that are copied from e.g. the desktop as well?

ltogg wrote Jan 15, 2013 at 7:52 AM

Getting callbacks from mails that are pasted from the desktop is not possible by using BeforeItemMove...

wrote Jan 15, 2013 at 7:53 AM

wrote Jan 15, 2013 at 7:59 AM

wrote Feb 13, 2013 at 8:49 PM