Re: [Evolution] Filters...



On Thu, 2005-06-23 at 17:31 +0200, Andre Klapper wrote:
hi,

Am Donnerstag, den 23.06.2005, 10:56 -0400 schrieb Paul Coene:
> Is there any way to setup a filter to know whether or not it is
> looking at the last message?  I'd like to perform an action, but only
> if the current message is the last one to be processed.

what is a "last message to be processed"? the last downloaded one in
that session? please explain the context, i don't get this at all. (if
it's the last message to be processed by the filter, you cannot set up
the filter that finds out if it is the last message, because each
statement is based on the other one.) :-/

My application is as follows:

Evolution filters that "play sound" currently do this asynchronously, so if I get multiple messages that want to play multiple  sounds, they end up playing on top of one another.  As a "fix" I wrote a smell program that I can pipe to using a filter that matches ALL, that plays the sound then exits.  This works, as the "pipe-to-program" IS synchronous.  However... each sound that plays delays the rest of mail retrieval.....

So, what I want to do is change my filter to just add commands to a script file each time a sound is to be played.  This way mail retrieval is fast... but I have no way of knowing when mail retrieval is done, to run the script.  I'd like to be able to check in a filter if the message being processed is the last one downloaded in the current session so I can run the script.

--

On my way to my ideal weight for the first time in my life:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]