Re: [Evolution] shell command filter not sending message?



cheers( again );


Just define all criteria, that have to be met and as a last criteria set
'pipe message to shell command'. That will execute the command only,
when all other criteria are met. Action is void, so is the return status
of that shell command. ;-)

That should do the job, although it is not obvious for non programmers.

I thought about that, but didn't know if evo filtering could do the
trick that way. I have a lot of filters, so I don't think stopping on
false would work to well for me. ;)

OK, what about 'shell command' 'echo' instead? It really doesn't matter.

And if your last shell command Criterion always will return a code that
will fail that Filter, the Action even isn't evaluated.


I've got the script logging when it is called. It does get called. It
isn't a shell script, it is a python script.

So what do you expect is interpreting the shebang line, if not a shell?
#!/usr/bin/python


I know how that works, I just wanted to be clear in the event that the
mechanism was not set up to run non-shell scripts, like you mention:

Yeah, shell 'script' should be better shell 'command'...


I really assume, 'shell script' even could be 'wine msoffice'... >:->

I've seen somewhere int he archives that command arguments do not get
passed (and had verified that is true), so there may have been a "odd"
way of doing it. I'd really like to have a filter *action* that I could
pipe the message to. This, I believe, would also aid spamassassin
integration.

Command arguments _do_ get passed and you even can use pipes...


(BTW, when I do a reply-to-list on this, it winds up being the same as
reply-all :( if the list is not in the to: this seems to be the case but
I guess that's a separate issue. ;^) )

Reply-To-List works pretty fine for me.

...guenther


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




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