> > Firstly, people tend to delete the junk email folder, and this > > kills SB > > cold. Can it be tweaked a bit to just recreate the folder if it's > > missing, or does the design prevent this? If it's theoretically > > possible then I can have a go, since it's my itch, but I don't want to > > setup the python 222 environment and so forth if it's known that this > > won't work. > > There's no reason I can think of that this wouldn't work.
There are a couple of issues I can think of: If the user presses the "Delete" button on the folder, the entire folder generally gets moved to "Deleted Items" - however, the folder is still actually valid while it is there - spambayes just stores the "ID" of the folder, and this does not change when the folder is moved - even when moved to deleted items. By default Outlook will empty this folder as it terminates, so the next startup will find the folder invalid. However, some users may have disabled this automatic cleaning of "Deleted Items" - so the folder will *appear* to be missing, but still be working OK. I'm not sure if you also want to handle this case. A problem with restoring it is simply that SpamBayes doesn't actually store the name, or its location (as above, just its binary ID) A solution to this would be to detect the error and always create a folder of a specified name in the "root" (this name should be whatever the default name used by setup is - I can't recall now). This means SpamBayes may not recreate the folder with the original name or location, but at least would have a valid folder to work with. > (I'm not > sure what you mean by "python 222" - if you mean version 2.2.2 of > Python, note that Python 2.2 (actually 2.2.0) is the *minimum* > requirement, and the recommended version is Python 2.4.2). I keep hearing rumours of COM related errors with Python 2.4. While bug http://www.python.org/sf/1163244 remains alive I don't quite trust 2.4 - although I thought pywin32 worked around the bug it apparently doesn't do so in all cases. Sadly I'm struggling to find the time to dig into this as all my current work still only truly cares about 2.3. So for the outlook addin, I'd recommend sticking with 2.3.5 Mark _______________________________________________ [email protected] http://mail.python.org/mailman/listinfo/spambayes Check the FAQ before asking: http://spambayes.sf.net/faq.html
