On Tue, 2002-11-12 at 12:28, Monte Ohrt wrote:
> Two things:
> 
> 1) incoming mail needs to go through a spam filter:
> 
> /usr/bin/bogofilter
> 
> (returns 0 or 1)

If
[Pipe Message to Shell Command][/usr/bin/bogofilter][returns][1]
Then
[Move to Folder][Spam]

Evolution will spawn a /usr/bin/bogofilter process and pipe the message
into bogofilter's stdin.

There is no need for a "< %s"

> 
> 2) selected e-mail needs to go through a filter by right-clicking &
> "apply filters"

Not doable.

> 
> /usr/bin/bogofilter -S
> 
> (tells bogofilter to identify e-mail as spam)
> 
> I accomplish #2 by marking the e-mail as "Important" which I actually
> use as a spam id in the filters. The appropriate shell command is then
> executed, but it doesn't look like bogofilter got it :( It does work
> manually from the command line, so I think bogofilter itself is fine.

The problem is that we do not pass command-line arguments (it is
non-trivial to parse command-line options).

Instead, write a wrapper script and have Evolution run that.

Jeff

> 
> Monte
> 
> On Tue, 2002-11-12 at 11:10, Jeffrey Stedfast wrote:
> > What exactly are you trying to do?
> > 
> > Jeff
> > 
> > On Tue, 2002-11-12 at 10:52, Monte Ohrt wrote:
> > > Hi,
> > > 
> > > What is the proper syntax for a shell command filter?
> > > 
> > > I tried:
> > > /usr/bin/foo
> > > 
> > > and guessed, maybe netscape style?
> > > /usr/bin/foo < %s
> > > 
> > > Neither seem to get the message content to the shell command stdin. I
> > > couldn't find any instructions or examples in the manual either.
> > > 
> > > Thanks
> > > Monte
> > > 
> > > 
> > > _______________________________________________
> > > evolution maillist  -  [EMAIL PROTECTED]
> > > http://lists.ximian.com/mailman/listinfo/evolution
-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
[EMAIL PROTECTED]  - www.ximian.com


_______________________________________________
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution

Reply via email to