PDA

View Full Version : Spamsieve Data loss



helgeh
01-03-2007, 05:11 AM
Hi!

After Mail.app was not responding, I quit it immediately. But after that, Spamsieve lost all learned data. So I have to train it again. Unfortunately, I deleted all spam mails a few days ago.

Anyway, it would be very good, if Spamsieve would have a backup function that saves the content of the support folder. I would like to have this backup automatically once a day. Is it possible to do this with an AppleScript?

helgeh

Michael Tsai
01-03-2007, 10:33 AM
After Mail.app was not responding, I quit it immediately. But after that, Spamsieve lost all learned data.


Since Mail doesn't really have anything to do with SpamSieve's data, this could be a symptom of disk damage. Have you tried repairing using Disk Utility or DiskWarrior?



Anyway, it would be very good, if Spamsieve would have a backup function that saves the content of the support folder.


Where should it save it? Some applications, like NetNewsWire, automatically save backups within the Application Support folder, but it sounds like that's what you lost, so you would have lost the backups as well.



I would like to have this backup automatically once a day. Is it possible to do this with an AppleScript?


I would recommend instead that you implement a comprehensive backup strategy for your Mac. I'm sure you have data that's even more important than your SpamSieve corpus. But, yes, it's possible using AppleScript. Here's a script that uses DropDMG (http://c-command.com/dropdmg/):


set appSupport to (path to application support from user domain)'s POSIX path
set spamSieveFolder to appSupport & "SpamSieve/"
set destFolder to path to desktop from user domain
-- or something like 'set destFolder to "/Users/you/path/to/a/folder"'

tell application "DropDMG"
with timeout of 60 * 60 seconds
create image from path spamSieveFolder destination destFolder base name "SpamSieve Data" with append current date
end timeout
end tell