XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> filter development

Closed TopicStart new topicStart Poll

> filter development, how to stop delivery
TimWallace
Posted: Mar 10 2004, 04:25 PM
Quote Post


Newbie
*

Group: Members
Posts: 13
Member No.: 754
Joined: 1-October 03



I posted a similar question a couple of days ago, but I got no results and the message got moved, so I decided to post again with a more generic question.

I am attempting to use a filter written in C. If certain conditions are met, I don't want to deliver the incoming message. I'm returning a 5 to accomplish this. However, the message is still being delivered. I know the filter is being called, becuase there is logging logic in there, and I see the log entries.

Maybe I just didn't understand the documentation on David's site pertaining to filters. Could someone either point me to a clear explanation of setting up for filters or give me a step-by-step regarding the correct tabs to create/use?

Thanks.
PMEmail Poster
Top
atomant
Posted: Mar 10 2004, 08:35 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



You have understood wright. Looks like you have a problem in a filter - it is not returning 5. Run xmail in debug mode so you can see the return code from filter.


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
TimWallace
Posted: Mar 12 2004, 11:51 PM
Quote Post


Newbie
*

Group: Members
Posts: 13
Member No.: 754
Joined: 1-October 03



I saw somewhere in my search for an answer that someone was returning a 99 from there C filter. I attempted this and now my filter works. Why? I could have sworn the documentation said to return a 4, 5, or 6 to stop delivery. I wouldn't mind except for two things: 1) XMail is returning a msg to the sender, which I don't necessarily want to do; and 2) the documentation doesn't match real-world results.

What gives?
PMEmail Poster
Top
atomant
Posted: Mar 13 2004, 08:42 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



Which version of Xmail are you running? If it is prior to 1.16 then you have exit codes 97,98,99,100 othervise they are 4,5,6,7.


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
TimWallace
Posted: Mar 15 2004, 03:42 PM
Quote Post


Newbie
*

Group: Members
Posts: 13
Member No.: 754
Joined: 1-October 03



I am running a pre-1.16 version. That would be why then. Thanks for your help in clarifying the situation.
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | XMail Server | Next Newest »

Closed TopicStart new topicStart Poll