The Spam DBM may not have the best interface in the world but it is one of the best anti-spam tool I saw so I am adding it to the image (in fact the interface with changes by darkwyrm looks worse than the original one, IMHO).

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29284 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bruno G. Albuquerque
2009-02-22 13:45:40 +00:00
parent 08f9d40010
commit ae2bf46029
5 changed files with 12 additions and 24 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ BEOS_BIN = "[" addattr alert arp base64 basename bc beep bootman bzip2
printf profile ps ptx pwd query quit rc readlink release renice rescan rlog
rm rmattr rmindex rmdir roster route
safemode screen_blanker screenmode sed setdecor settype setversion setvolume
seq sh sha1sum shar shred shuf shutdown sleep sort split stat strace stty su
sum sync sysinfo
seq sh sha1sum shar shred shuf shutdown sleep sort spamdbm split stat strace
stty su sum sync sysinfo
tac tail tar tcpdump tcptester tee telnet telnetd test top touch tput tr
traceroute translate true tsort tty
uname unchop unexpand unmount uniq unrar unshar unzip unzipsfx <bin>updatedb
@@ -126,7 +126,7 @@ static const char *kAGMSBayesBeepGenuineName = "SpamFilter-Genuine";
static const char *kAGMSBayesBeepSpamName = "SpamFilter-Spam";
static const char *kAGMSBayesBeepUncertainName = "SpamFilter-Uncertain";
static const char *kServerSignature = "application/x-vnd.agmsmith.AGMSBayesianSpamServer";
static const char *kServerSignature = "application/x-vnd.agmsmith.spamdbm";
AGMSBayesianSpamFilter::AGMSBayesianSpamFilter (BMessage *settings)
@@ -237,7 +237,7 @@ AGMSBayesianSpamFilter::ProcessMailMessage (
directory_which places[] = {B_COMMON_BIN_DIRECTORY,B_BEOS_BIN_DIRECTORY};
for (int32 i = 0; i < 2; i++) {
find_directory(places[i],&path);
path.Append("AGMSBayesianSpamServer");
path.Append("spamdbm");
if (!BEntry(path.Path()).Exists())
continue;
get_ref_for_path(path.Path(),&ref);
+1 -1
View File
@@ -89,7 +89,7 @@ int32 gDictCount = 0;
// int32 level = L_BEGINNER;
const char* kSpamServerSignature =
"application/x-vnd.agmsmith.AGMSBayesianSpamServer";
"application/x-vnd.agmsmith.spamdbm";
const char* kDraftPath = "mail/draft";
const char* kDraftType = "text/x-vnd.Be-MailDraft";
const char* kMailFolder = "mail";
+1 -1
View File
@@ -2591,7 +2591,7 @@ TMailWindow::TrainMessageAs(const char *CommandWord)
directory_which places[] = {B_COMMON_BIN_DIRECTORY,B_BEOS_BIN_DIRECTORY};
for (int32 i = 0; i < 2; i++) {
find_directory(places[i],&path);
path.Append("AGMSBayesianSpamServer");
path.Append("spamdbm");
if (!BEntry(path.Path()).Exists())
continue;
get_ref_for_path(path.Path(),&ref);
+6 -18
View File
@@ -544,11 +544,11 @@ directory, available from http://sourceforge.net/projects/bemaildaemon/ */
*/
static float g_MarginBetweenControls; /* Space of a letter "M" between them. */
//static float g_LineOfTextHeight; /* Height of text the current font. */
static float g_LineOfTextHeight; /* Height of text the current font. */
static float g_StringViewHeight; /* Height of a string view text box. */
static float g_ButtonHeight; /* How many pixels tall buttons are. */
static float g_CheckBoxHeight; /* Same for check boxes. */
//static float g_RadioButtonHeight; /* Also for radio buttons. */
static float g_RadioButtonHeight; /* Also for radio buttons. */
static float g_PopUpMenuHeight; /* Again for pop-up menus. */
static float g_TextBoxHeight; /* Ditto for editable text controls. */
@@ -1689,7 +1689,7 @@ ostream& PrintUsage (ostream& OutputStream)
OutputStream << "Buggy Command: " << PropInfoPntr->name << endl;
break;
}
WrapTextToStream (OutputStream, PropInfoPntr->usage);
WrapTextToStream (OutputStream, (char *)PropInfoPntr->usage);
OutputStream << endl;
}
@@ -4762,8 +4762,6 @@ status_t ABSApp::PurgeOldWords (char *ErrorMessage)
void ABSApp::ReadyToRun ()
{
#if 0
DatabaseWindow *DatabaseWindowPntr;
float JunkFloat;
BButton *TempButtonPntr;
@@ -4914,14 +4912,12 @@ void ABSApp::ReadyToRun ()
DisplayErrorMessage ("Unable to create window.");
g_QuitCountdown = 0;
}
else
else {
DatabaseWindowPntr->Show (); /* Starts the window's message loop. */
DatabaseWindowPntr->Minimize (g_ServerMode);
}
}
#endif // end all the unnecessary #if 0'ed code
SetPulseRate (500000);
g_AppReadyToRunCompleted = true;
}
@@ -7072,14 +7068,6 @@ DatabaseWindow::DatabaseWindow ()
goto ErrorExit;
AddChild (m_WordsViewPntr);
/* Minimize the window if we are starting up in server mode. This is done
before the window is open so it doesn't flash onto the screen, and possibly
steal a keystroke or two. The ControlsView will further update the minimize
mode when it detects changes in the server mode. */
Minimize (g_ServerMode);
return;
ErrorExit: