echo $? that will tell you the exit code of the program.
Jeff On Tue, 2003-01-07 at 16:32, Alexander Russell wrote: > Hi, > > As an experiment, I tried to set up spam filtering in the following > way: > > 1. I made a "incoming" filter (called "spam filter"). > 2. The filter pipes the message to the shell command /usr/bin/spamc -c > and should fire if it doesn't return 0. (This is spamassassin which, I > believe, returns a 1 (with the -c flag) if it thinks the message is > spam.) > 3. If the criterion is met, it should move the message to a spam folder. > > Well, the long and short of it is that nothing happens; messages are > never moved to the spam folder. I have experimented with several > potential messages, and I think that spamc -c is working. Any ideas? > > I read mail via (s)imap, which presumably affect the way that filters > are applied. In any case, the above doesn't work even if I manually hit > "apply filters". > > Thanks in advance for any help. > > N.b. spamc -c returns a string like 4.8/5 to stout, how can I check that > the return value of this process is indeed a 1? -- Jeffrey Stedfast Evolution Hacker - Ximian, Inc. [EMAIL PROTECTED] - www.ximian.com _______________________________________________ evolution maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/evolution
