Bug 59158 - Add filter action that creates/triggers an event
Summary: Add filter action that creates/triggers an event
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: filtering (show other bugs)
Version: 1.5.1
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 170140 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-05-30 22:34 UTC by Edward Macgillivray
Modified: 2012-08-19 01:02 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edward Macgillivray 2003-05-30 22:34:07 UTC
Version:           1.5.1 (using KDE KDE 3.1.1)
Installed from:    RedHat RPMs
OS:          Linux

I would like to be able to have a filter trigger an event.  Specifically I am thinking that I would like notification of new mail arriving, but I don't want to be notified of ALL new mail.  Thus, if there was an action for filters that created/triggered an event, I could have it trigger the new mail event and get some kind of notification.

It would be sufficient to add a filter action that notifies in some way (possibly many ways), but that may be harder and less [generally] useful.

thanks
mac
Comment 1 Karl-Heinz Zimmer 2003-05-31 00:06:22 UTC
Subject: Re:  New: Add filter action that creates/triggers an event

On Friday 30 May 2003 22:34, Edward Macgillivray wrote:

> http://bugs.kde.org/show_bug.cgi?id=59158
>            Summary: Add filter action that creates/triggers an event

> I would like to be able to have a filter trigger an event.  Specifically
> I am thinking that I would like notification of new mail arriving, but I
> don't want to be notified of ALL new mail.

Could you use the action "execute command"?

There you can add the name of a shell script and this script could do
anything.
Or you fire up the dialog using the following command in the filter:

       kdialog --msgbox "You got interesting mail."

HTH,
Karl-Heinz
Comment 2 Mitsu Hadeishi 2003-05-31 00:26:32 UTC
I made a patch to KMail HEAD that allows you to disable new mail notification
for specific folders, which I think is a better solution than the above.  See
bug 57908 for more details.  I don't believe my patch has been integrated into
KMail HEAD yet.  I am using a version of KMail 1.5 which has my feature added
into it on my own system --- it's a great feature.

I think this is more useful than doing it on a per-filter basis.
Comment 3 Karl-Heinz Zimmer 2003-05-31 00:46:01 UTC
Subject: Re:  Add filter action that creates/triggers an event

On Saturday 31 May 2003 00:26, Mitsu Hadeishi wrote:
> http://bugs.kde.org/show_bug.cgi?id=59158

> 00:26 ------- I made a patch to KMail HEAD that allows you to disable new
> mail notification for specific folders, which I think is a better solution
> than the above.  See bug 57908 for more details.  I don't believe my patch
> has been integrated into KMail HEAD yet.  I am using a version of KMail
> 1.5 which has my feature added into it on my own system --- it's a great
> feature.
>
> I think this is more useful than doing it on a per-filter basis.

Mitsu, your feature sounds interesting, but please tell us *why* you think
it is more useful than doing it on a per-filter basis.
To me your feature seems to serve another purpose - so it is hard to under-
stand that it might be 'more useful': this is a bit like saying that an
apple is more useful than a banana.  :-)

example: If I want to be notified of all mails coming form abc@def.org
- - no matter which mailing list this person is writing to - then it might
be a good idea to use a per-filter solution, and (in this case) your
aproach might be not so good...

Karl-Heinz
Comment 4 Mitsu Hadeishi 2003-05-31 01:11:08 UTC
Well, the original poster of this bug specifically used the sentence "I am
thinking that I would like notification of new mail arriving, but I don't want
to be notified of ALL new mail."  As you may have noticed quite a few people
have requested some feature along these lines, including myself.

What I am thinking is that the typical situation is not that someone actually
cares about getting a specific notification for, say, a specific person.  Much
more often what is desired is what the original poster suggested, which is
getting notification for some but not all mail.  One way to implement this would
be to use  per-filter notification, but that has quite a few disadvantages.

For example, to make this useful one would have to turn off the standard new
mail notification, and ONLY get notified when specific filters are triggered. 
This means that you have to write a filter for every case where you want new
mail notification.  However, the much more common situation, I believe, is where
you want to write a filter that specifically turns OFF new mail notification,
rather than turns it on.  I.e., at least in my case and I think for a lot of
people, what you want is to be able to say "do not notify me if I get mail on a
mailing list or if I get spam, etc.  Notify me for all other mail."

Now in my case I already have about 1000 filters, so there's also the issue of
laboriously going through all those filters and turning mail notification on and
off for them individually (if it is a per-filter solution).  That to me is quite
cumbersome.

Similarly, I might decide that I actually want notification for a group of
people for a while, then I might decide I don't want it later.  If I can just
turn notification on and off on a per-folder basis, I can do it in one operation
instead of laboriously going through and marking specific people one at a time.

A more general version of my feature might be to have a different notification
depending on the folder --- different sounds or something.  But personally I
think the most common case is turning OFF notification for a certain class of email.
Comment 5 Maciej Pilichowski 2008-08-31 17:56:41 UTC
*** Bug 170140 has been marked as a duplicate of this bug. ***
Comment 6 Maciej Pilichowski 2008-08-31 18:01:29 UTC
My 2 cents -- why I wish for distinct notification per folder I am against the originally proposed solution, that filter creates event, and then you can set notification, because it saves no time for users.

I wish I could simply see N folders in notification window "notify on new mail in folder X" no matter if I have filters or not. It would be useful also to have this in folder properties.

Changing filters each time is tiresome and errorprone -- I cannot sift trough all the filter to check if I didn't missed one that causes message landing in specific folder.
Comment 7 Björn Ruberg 2009-12-18 01:11:47 UTC
I would do this with the help of folders. Simply filter interesting or uninteresting mails in different folders. In the property dialog you remove the check of "action when new/unseen mail arrives" for the uninteresting folder and leave it for the interesting.
Comment 8 Myriam Schweingruber 2012-08-18 08:40:08 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 9 Luigi Toscano 2012-08-19 01:02:27 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.