From htyagi at eng.ucsd.edu Fri Oct 18 10:38:32 2013 From: htyagi at eng.ucsd.edu (Himanshu Tyagi) Date: Fri, 18 Oct 2013 01:38:32 -0700 Subject: [Spambayes] Installing SpamBayes on MAC OS X 10.8.5 Message-ID: <07504BC1-A8BE-4759-AAFE-2B12FF94EC82@umd.edu> Hi, I have been trying to install SpamBayes on my MAC OS X 10.8.5. I keep on getting the following error when I run sb_server.py or sb_imapfilter.py. Please help. Traceback (most recent call last): File "sb_server.py", line 1088, in run() File "sb_server.py", line 1076, in run prepare() File "sb_server.py", line 1002, in prepare state.prepare(can_stop) File "sb_server.py", line 805, in prepare self.createWorkers() File "sb_server.py", line 868, in createWorkers self.mdb = spambayes.message.Message().message_info_db File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/message.py", line 356, in _get_message_info_db return self._get_class_message_info_db() File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/message.py", line 349, in _get_class_message_info_db klass._message_info_db = open_storage(nm, typ) File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/message.py", line 306, in open_storage return klass(data_source_name) File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/message.py", line 230, in __init__ self.load() File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/message.py", line 234, in load self.dbm = dbmstorage.open(self.db_name, self.mode) File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/dbmstorage.py", line 70, in open return f(db_name, mode) File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/dbmstorage.py", line 40, in open_best return f(*args) File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/dbmstorage.py", line 20, in open_dbhash return bsddb.hashopen(*args) AttributeError: 'NoneType' object has no attribute 'hashopen' Exception AttributeError: "'MessageInfoDB' object has no attribute 'db'" in > ignored From skip at pobox.com Fri Oct 18 19:54:54 2013 From: skip at pobox.com (Skip Montanaro) Date: Fri, 18 Oct 2013 12:54:54 -0500 Subject: [Spambayes] Installing SpamBayes on MAC OS X 10.8.5 In-Reply-To: <07504BC1-A8BE-4759-AAFE-2B12FF94EC82@umd.edu> References: <07504BC1-A8BE-4759-AAFE-2B12FF94EC82@umd.edu> Message-ID: > File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/dbmstorage.py", line 20, in open_dbhash > return bsddb.hashopen(*args) > AttributeError: 'NoneType' object has no attribute 'hashopen' SpamBayes is unable to import any variant of the bsddb module. It looks like you are using the Apple-provided version of Python. On my (much older) version of Mac OS X (Snow Leopard, 10.6.x), neither the bsddb nor the bsddb3 modules are available. The bsddb185 module is provided by Apple, but the underlying 1.85 version of Berkeley DB is broken badly, and so not supported by SpamBayes. Your best bet is probably to install bsddb3 from PyPI: https://pypi.python.org/pypi/bsddb3/6.0.0 Skip From a12j02 at sbcglobal.net Mon Oct 28 16:57:36 2013 From: a12j02 at sbcglobal.net (A. J.) Date: Mon, 28 Oct 2013 10:57:36 -0500 Subject: [Spambayes] Problem with SpamBayes Proxy: Cannot configure Message-ID: <26ED57D35E014F6C871999888BE6F25E@AJHP> I couldn?t find any other workable email address, though I think I checked all your pages. Your ?Send Help Message? page does not provide an email address. Please forward if this is not the correct email address. ?I am using SpamBayes Proxy Version 1.1b2 (March 6, 2010) (binary), with version 2.5.2 (release25-maint, Feb 23 2008, 14:19:11) [MSC v.1310 32 bit (Intel)] of Python; my operating system is Windows 6.1.7601.2 (Service Pack 1). I have trained 0 ham and 0 spam.? I don?t know if the above is an example or is actually my information. My operating system is Windows 7 Home Premium and my email program is Windows Live Mail. This is my server information, none of which as far as I can see matches the instructions on configuring. But maybe I?m just dumb (certainly true on computers). Server information: Incoming mail server is POP3 server. Incoming mail (POP3): inbound.att.net Outgoing mail (SMTP): outbound.att.net Port number: Incoming mail (POP3): 995 _________ On the Configuration Page for Remote Servers, I have used ?pop3.inbound.att.net:995?, ?inbound.att.net?, ?localhost?, possibly others. for SpamBayes Ports, I have used 995, 110, 8110, 8880 On any of these combinations, when I click on Save, this is what I see on http://localhost:8880/home: The website cannot display the page HTTP 500 ________ When I click on Review Messages from the icon, below is what I see on http://localhost:8880/home: No POP3 proxies running. There are no untrained messages to display. [And I have been receiving emails.-ajp] __________ I have read the FAQs, the help page, and the readme page, but cannot comprehend them, I suppose. What do I do next? A. J. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dale at BriannasSaladDressing.com Mon Oct 28 18:37:24 2013 From: dale at BriannasSaladDressing.com (Dale Schroeder) Date: Mon, 28 Oct 2013 12:37:24 -0500 Subject: [Spambayes] Problem with SpamBayes Proxy: Cannot configure In-Reply-To: <26ED57D35E014F6C871999888BE6F25E@AJHP> References: <26ED57D35E014F6C871999888BE6F25E@AJHP> Message-ID: <526EA0D4.7010302@BriannasSaladDressing.com> A.J., Based on what you have provided, it appears that the following values should be used in the web config page: Remote Servers: *inbound.att.net:995* (att uses yahoo mail servers) SpamBayes Ports: *8110* (although this could be any unused port) Then, you would configure Windows Live Mail's pop3 server setting to use localhost (or 127.0.0.1) for the server on port 8110 (or the port you chose above). Create filters to sort the mail classified by spambayes. Security/Encryption settings (ssl, tls, etc.) would remain as you currently have them. Additionally, everything I have read on this list suggests that on Windows 7, spambayes should _not_ be installed in "Program Files". Many suggest "C:\spambayes" instead. HTH, Dale On 10/28/2013 10:57 AM, A. J. wrote: > I couldn't find any other workable email address, though I think I > checked all your pages. Your "Send Help Message" page does not > provide an email address. Please forward if this is not the correct > email address. > "I am using SpamBayes Proxy Version 1.1b2 (March 6, 2010) (binary), > with version 2.5.2 (release25-maint, Feb 23 2008, 14:19:11) [MSC > v.1310 32 bit (Intel)] of Python; my operating system is Windows > 6.1.7601.2 (Service Pack 1). I have trained 0 ham and 0 spam." > I don't know if the above is an example or is actually my > information. My operating system is Windows 7 Home Premium and my > email program is Windows Live Mail. > This is my server information, none of which as far as I can see > matches the instructions on configuring. But maybe I'm just dumb > (certainly true on computers). > Server information: > Incoming mail server is POP3 server. > Incoming mail (POP3): inbound.att.net > Outgoing mail (SMTP): outbound.att.net > Port number: > Incoming mail (POP3): 995 > _________ > _On the Configuration Page_ > for Remote Servers, I have used "pop3.inbound.att.net:995", > "inbound.att.net", "localhost", possibly others. > for SpamBayes Ports, I have used 995, 110, 8110, 8880 > On any of these combinations, when I click on Save, this is what I see > on http://localhost:8880/home: > The website cannot display the page HTTP 500 > ________ > When I click on Review Messages from the icon, below is what I see on > http://localhost:8880/home: > *No POP3 proxies running.* > ** > *There are no untrained messages to display. *[And I have been > receiving emails.-ajp] > __________ > I have read the FAQs, the help page, and the readme page, but cannot > comprehend them, I suppose. > What do I do next? > A. J. > > > > _______________________________________________ > SpamBayes at python.org > https://mail.python.org/mailman/listinfo/spambayes > Info/Unsubscribe: http://mail.python.org/mailman/listinfo/spambayes > Check the FAQ before asking: http://spambayes.sf.net/faq.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From dale at BriannasSaladDressing.com Mon Oct 28 21:48:17 2013 From: dale at BriannasSaladDressing.com (Dale Schroeder) Date: Mon, 28 Oct 2013 15:48:17 -0500 Subject: [Spambayes] Problem with SpamBayes Proxy: Cannot configure In-Reply-To: <00C09F6A5E40417F8807F20BA91A37EF@AJHP> References: <00C09F6A5E40417F8807F20BA91A37EF@AJHP> Message-ID: <526ECD91.6060601@BriannasSaladDressing.com> The failure would be because SpamBayes is not functioning. Until it is, you will need to revert the Windows Mail config as it was before. Once you get spambayes working, then make the client changes. My spambayes server is on a remote host, so an outbound firewall rule for tcp port 8880 was required; however, I have assumed you are running spambayes on the same system as Windows Live, so that should not be an issue. I'll do my best to guide you in the error messages you've listed below. Truthfully, it looks like some of the defaults were not set during the install; or perhaps, a default bayescustomize.ini file was not created for you. On 10/28/2013 1:28 PM, A. J. wrote: > Dale, > Forgot to mention that I now cannot receive/send emails after making > the changes you suggested. > Get this error message from Windows Live Mail: > Unable to send or receive messages for the AJ Mail account. The > connection to the server has failed. > Server: 'localhost' > Windows Live Mail Error ID: 0x800CCC0E > Protocol: POP3 > Port: 8110 > Secure(SSL): Yes > Socket Error: 10061 > A. J. > *From:* A. J. > *Sent:* Monday, October 28, 2013 1:23 PM > *To:* Dale Schroeder > *Subject:* Re: [Spambayes] Problem with SpamBayes Proxy: Cannot configure > Dale, > I really appreciate your prompt response. > I made the changes you suggested (yellow highlight below). > But when I click on Save, I still see this message on > http://localhost:8880/home: > The website cannot display the page HTTP 500 > When I click on ?Refresh the page?, this is what I get: > *Errors Detected* > # 'None' is not a value valid for [SMTP Proxy Options] Train as ham > address > # 'None' is not a value valid for [SMTP Proxy Options] Train as spam > address > # 'None' is not a value valid for [SMTP Proxy Options] Lookup message in > cache. Valid values are: False,True > These options should be on the main config page. The section in brackets identifies the configuration section on the web page and is located immediately below the pop3 proxy options. The 1st two can be blank, but the word "none" is not allowed. The third has only 2 options, as indicated in the error message. I believe the default is false. ># > > # 'None' is not a value valid for [Storage Options] Storage file name > # 'None' is not a value valid for [Storage Options] Message information > file name > # 'None' is not a value valid for [Storage Options] Cache messages. > Valid values are: False,True > # 'None' is not a value valid for [Storage Options] Suppress caching of > bulk ham. Valid values are: False,True > # 'None' is not a value valid for [Storage Options] Maximum size of > cached messages > Storage Options is the 2nd to last section on the main config page. The 1st 2 options are the full paths of where you would like to store your mail databases (including the database file name). A good place would be the directory where your bayescustomize.ini file is located. 3rd value, I use true. 4th value, I use false 5th value, I use 1000000 ># > > # 'None' is not a value valid for [Statistics Options] Ham cutoff > # 'None' is not a value valid for [Statistics Options] Spam cutoff > These should be located at the bottom of the main config page. I am currently using 0.6 for spam and 0.5 for ham. If you cannot see these options on the web config page, then I surmise that your installation is corrupt, and you will need to reinstall. You could also edit the bayescustomize.ini file manually. Below is my sanitized ini file, but note that some of these options are from the advanced and experimental config pages and are not require for a working spambayes. [html_ui] allow_remote_connections:* #you probably want this value to be localhost or 127.0.0.1 default_ham_action:discard default_spam_action:discard default_unsure_action:discard display_score:True [Headers] notate_subject: notate_to: header_score_digits:3 include_score:True [Storage] messageinfo_storage_file:/var/spambayes/spambayes.messageinfo.db #on a Windows machine this would be something like file:C:\path\to\file no_cache_large_messages:1000000 persistent_storage_file:/var/spambayes/hammie.db #on a Windows machine this would be something like file:C:\path\to\file ham_cache:/var/spambayes/pop3proxy-ham-cache #on a Windows machine this would be something like C:\path\to\directory spam_cache:/var/spambayes/pop3proxy-spam-cache #on a Windows machine this would be something like C:\path\to\directory unknown_cache:/var/spambayes/pop3proxy-unknown-cache #on a Windows machine this would be something like C:\path\to\directory cache_expiry_days:3 [pop3proxy] listen_ports:8110 remote_servers:mail.some_server.com allow_remote_connections:192.168.x.* #you probably don't want anything this open. I'm using one server for an entire office. [smtpproxy] ham_address: listen_ports:8025 remote_servers: spam_address: allow_remote_connections: [Categorization] spam_cutoff:0.6 ham_cutoff:0.5 [Tokenizer] summarize_email_prefixes:True summarize_email_suffixes:True mine_received_headers:True x-pick_apart_urls:True x-fancy_url_recognition:False Dale > I have no idea how to correct these. They are not on the > Configuration page. I have looked through everything and can not find > where these options are presented. > _____ > I now get this message on the Configuration page: > POP3 proxy running on *995*, proxying to *inbound.att.net:110*. > Active POP3 conversations: *0*. > POP3 conversations this session: *0*. > Emails classified this session: *0* spam, *0* ham, *0* unsure. > Total emails trained: Spam: *0* Ham: *0* > *More statistics...* You can > configure your SpamBayes > system using the *Configuration page* > . > *Database has no training information. SpamBayes will classify all > messages as 'unsure', ready for you to train.* > > _______ > There are still no messages listed: > > There are no untrained messages to display. Return *Home* > , or *check again* > . > > ______ > > ?Many suggest "C:\spambayes" instead.? -- I have no idea how to do > this, and afraid to try not knowing what I?m doing. > Thanks very much for your help, > A. J. > _____________________________________________________ > *From:* Dale Schroeder > *Sent:* Monday, October 28, 2013 12:37 PM > *To:* A. J. ; spambayes at python.org > > *Subject:* Re: [Spambayes] Problem with SpamBayes Proxy: Cannot configure > A.J., > > Based on what you have provided, it appears that the following values > should be used in the web config page: > > Remote Servers: *inbound.att.net:995* (att uses yahoo mail servers) > SpamBayes Ports: *8110* (although this could be any unused port) > > Then, you would configure Windows Live Mail's pop3 server setting to > use *localhost* (or 127.0.0.1) for the server on port *8110* (or the > port you chose above). Create filters to sort the mail classified by > spambayes. Security/Encryption settings (ssl, tls, etc.) would remain > as you currently have them. > > Additionally, everything I have read on this list suggests that on > Windows 7, spambayes should _not_ be installed in "Program Files". > Many suggest "C:\spambayes" instead. > > HTH, > Dale > > > On 10/28/2013 10:57 AM, A. J. wrote: >> I couldn?t find any other workable email address, though I think I >> checked all your pages. Your ?Send Help Message? page does not >> provide an email address. Please forward if this is not the correct >> email address. >> ?I am using SpamBayes Proxy Version 1.1b2 (March 6, 2010) (binary), >> with version 2.5.2 (release25-maint, Feb 23 2008, 14:19:11) [MSC >> v.1310 32 bit (Intel)] of Python; my operating system is Windows >> 6.1.7601.2 (Service Pack 1). I have trained 0 ham and 0 spam.? >> I don?t know if the above is an example or is actually my >> information. My operating system is Windows 7 Home Premium and my >> email program is Windows Live Mail. >> This is my server information, none of which as far as I can see >> matches the instructions on configuring. But maybe I?m just dumb >> (certainly true on computers). >> Server information: >> Incoming mail server is POP3 server. >> Incoming mail (POP3): inbound.att.net >> Outgoing mail (SMTP): outbound.att.net >> Port number: >> Incoming mail (POP3): 995 >> _________ >> _On the Configuration Page_ >> for Remote Servers, I have used ?pop3.inbound.att.net:995?, >> ?inbound.att.net?, ?localhost?, possibly others. >> for SpamBayes Ports, I have used 995, 110, 8110, 8880 >> On any of these combinations, when I click on Save, this is what I >> see on http://localhost:8880/home: >> The website cannot display the page HTTP 500 >> ________ >> When I click on Review Messages from the icon, below is what I see on >> http://localhost:8880/home: >> *No POP3 proxies running.* >> ** >> *There are no untrained messages to display. *[And I have been >> receiving emails.-ajp] >> __________ >> I have read the FAQs, the help page, and the readme page, but cannot >> comprehend them, I suppose. >> What do I do next? >> A. J. >> >> >> _______________________________________________ >> SpamBayes at python.org >> https://mail.python.org/mailman/listinfo/spambayes >> Info/Unsubscribe:http://mail.python.org/mailman/listinfo/spambayes >> Check the FAQ before asking:http://spambayes.sf.net/faq.html > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kdericson at gmail.com Mon Oct 28 21:32:05 2013 From: kdericson at gmail.com (keith ericson) Date: Mon, 28 Oct 2013 20:32:05 +0000 (UTC) Subject: [Spambayes] Bug in Outlook 2010 for SpamBayes Addin References: <4E25DAF3A10AB340B0C9D9176352F75F024EC62045@SBSERVER.sbusiness.local> <20070.15943.711668.50222@montanaro.dyndns.org> Message-ID: pobox.com> writes: > J?rgen> When starting Outlook 2010 the following error occurs: "There > J?rgen> was an error initializing the SpamBayes addin. Please re-start > J?rgen> Outlook and try again". > Please try installing in a non-default directory, for instance, install in > C:\Spambayes instead of (I think) C:\Program Files. > Skip Installing in non-default directory worked for me. Thanks! From pwilliams at subtool.com Tue Oct 29 19:26:55 2013 From: pwilliams at subtool.com (Paul Williams) Date: Tue, 29 Oct 2013 14:26:55 -0400 Subject: [Spambayes] Spambayes not from Trusted site Message-ID: <005501ced4d4$72a3dd60$57eb9820$@subtool.com> I had the same problem with Windows XP SP3 and Outlook 2007. It's because SpamBayes doesn't have a digital signature from a trusted site. I fixed it by going to Tools / Trust Center / Add-ins in Outlook and UNCHECKING the "Apply macro security to installed add-ins" box. Paul Williams Suburban Tool, Inc. 4141 N. Atlantic Boulevard Auburn Hills, MI 48326 Phone: 248-391-7800 Extension 110 Fax: 248-391-7462 pwilliams at subtool.com -------------- next part -------------- An HTML attachment was scrubbed... URL: