Hello, First I want to say thank you for making such a wonderful product available to everyone! It has worked wonders for me. I have a small feature request though. I am using Outlook and my computer and speakers are always on but I leave my monitor off when I'm not using my computer. When I receive email I hear Outlook's new mail sound but I have no way of telling whether the message is spam or not without going to my computer and turning on the monitor. Is there any way to have SpamBayes play a sound every time is marks a message a spam and maybe a different sound for possible spam? That way if I hear a new message come in I could just wait a few seconds to hear whether it was marked spam. If I happen to get multiple messages at time I may miss realizing that some Ham messages came in with some spam but that's ok with me. What do you think? I think others might find that feature useful. Anyway, great product! I'm an engineer and found out about from EDN (Electronic Design News) magazine. Cheers! Rayfes
[Rayfes]
I have a small feature request though. I am using Outlook and my computer and speakers are always on but I leave my monitor off when I'm not using my computer. When I receive email I hear Outlook's new mail sound but I have no way of telling whether the message is spam or not without going to my computer and turning on the monitor. Is there any way to have SpamBayes play a sound every time is marks a message a spam and maybe a different sound for possible spam? That way if I hear a new message come in I could just wait a few seconds to hear whether it was marked spam. If I happen to get multiple messages at time I may miss realizing that some Ham messages came in with some spam but that's ok with me.
What do you think? I think others might find that feature useful.
That is a pretty good idea. If someone can nail down the exact feature request, I think we could add it. The issues as I see them: * Play the sound for *every* mail that SpamBayes processes, or only at the end of a "batch"? * If a batch, what exactly is a batch, considering the "background" filtering option? * If a batch and there are multiple classifications in the batch, do we play all sounds? * If so, in what order? * Sounds can be played synchronously, or asynchronously. Which one do we choose? If async and a sound is playing when we want to play a new one, do we stop the old one? If sync and many mails are processed, is it possible we may queue 10 minutes worth of sound-effects? * and probably others. Ultimately, these answers need to be expressed as a set of options that will exist in the INI file - from the above list, I doubt that 3 simple "spam/ham/unsure_sound_filename" options will do. [Manuel]
Concerning this feature, it has been discussed here last week. I'll find that post in a jiffy:
There it is: Tony Meyers answer to the same request on "[Spambayes] Outlook sound":
I've added this to [ 774978 ] Hide envelope icon when only spam received, since it's essentially the same thing. It *might* get added
It sounds slightly different - in that request, it sounds like a replacement for Outlooks 'play sound' is requested - ie, "play a single sound exactly once, but only when the new message is not spam", much in the same way that it is asking for a replacement for Outlooks 'tray icon', again with the qualification 'but only when the new message is not spam'. In 774978, we are being asked to re-implement concepts internal to Outlook, but external to SpamBayes. In the above request, it seems the concepts remain internal to SpamBayes, and make no reference to builtin Outlook functionality (other than possibly 'you may like to disable it' :). If that remains true, I'd be happy to see a different feature request opened. Mark.
Mark Hammond wrote:
[Rayfes]
Is there any way to have SpamBayes play a sound every time is marks a message a spam and maybe a different sound for possible spam?
That is a pretty good idea. If someone can nail down the exact feature request, I think we could add it. The issues as I see them: * Play the sound for *every* mail that SpamBayes processes, or only at the end of a "batch"? * If a batch, what exactly is a batch, considering the "background" filtering option?
My thoughts: I think once per batch would be best. Especially when I first start Outlook after the weekend and receive a bunch of e-mails at once, one per message would get very annoying. Per batch is also more like the Outlook behavior. As far as defining a batch, I would probably use a timer similar to, but not exactly like, the background filter. When the first message is processed, set the timer. Each time a new message is processed, reset the timer. If no new message is processed before the timer expires then play the appropriate sound. The trick is making sure that this timer doesn't expire before the background filter timer, but that shouldn't be too difficult.
* If a batch and there are multiple classifications in the batch, do we play all sounds? * If so, in what order?
Seems like most people mainly want to know if there is anything interesting to look at before opening Outlook. To that end, I would play only the sound for the "most interesting" classification which I think most people would define as ham->unsure->spam. I would also look at which sounds are configured so that, for example, if no ham sound is configured then I would consider the unsure sound to be the most interesting.
* Sounds can be played synchronously, or asynchronously. Which one do we choose?
If we are playing only the one most interesting sound after each batch, then I would just play it synchronously.
Ultimately, these answers need to be expressed as a set of options that will exist in the INI file - from the above list, I doubt that 3 simple "spam/ham/unsure_sound_filename" options will do.
Seems like we might be able to get by with these 3 plus a "batch accumulation delay" setting. Other possibilities to make it more configurable would be defining the "most interesting" order, and an option to play the sounds for all detected classifications instead of the most interesting. Is there an existing win32all function to play an arbitrary sound file? If there is, I'd be glad to start looking into implementing this. -- Kenny Pitt
[Kenny Pitt]
... Is there an existing win32all function to play an arbitrary sound file? If there is, I'd be glad to start looking into implementing this.
It's available from base Python; see PlaySound() at http://www.python.org/doc/current/lib/module-winsound.html and you want (at least) the SND_FILENAME flag.
I appreciate you guys working on this feature and keeping me in the loop! I'm sorry I don't have anything useful to offer, I'm a computer chip designer, software is too non-deterministic for me. :) Thanks, Rayfes
participants (4)
-
Kenny Pitt -
Mark Hammond -
Rayfes Mondal -
Tim Peters