> If you have one line in filters.in.tab and one line in the corresponding > ..tab file, the filter will run *once* per message (iif the message is > being delivered locally). The message is removed from the memroy queue > while delivering, so if you see simultaneous filter invocations, they come > from different messages. >
Well that sure describes what is supposed to happen. But that is not what IS happeneing. There is exactly one filter line in filters.in.tab, and one line in the corresponding filetr tab (as I showed), exactly one email gets processed. As I did say, the filter is running at least twice for a SINGLE INBOUND MESSAGE. As I understand thats not what is supposed to happen - please instead help me understand why its happening and how to make it not happen. Tony ----- Original Message ----- From: "Davide Libenzi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 18, 2004 10:01 AM Subject: [xmail] Re: Filters Run More than Once > On Tue, 18 May 2004 [EMAIL PROTECTED] wrote: > > > I have a puzzling thing.... xmail 1.16 /1.17 On Win2kServer (patched up to > > date), filters launched from filters.in.tab seem to launch multiple copies > > of the filter almost all at once. I have written the same filter in two > > different languages and get the same behavior. I was surprised - I really > > thought it had something to do with the langauge the filter was written in. > > But Noooooo . . . > > > > I have simplified the filter untill all it does is log the fact that it > > started, and then it exits. XMAIL does get the return code in every > > case..... and responds the way it should. BUT, it runs the filter several > > times?! There is almost no chance its a program loop in the filter, and the > > filter is NOT self reentrant. It really is like three lines long at this > > point. Open, log startup, and exit. > > > > After receiving ONE email only, here is the log for Joe, showing it runs > > twice. (It should run only once): > > 05-18-2004 03:39:59: Started.(@@FROM @@RRCPT passed are just fine and > > dandy) > > 05-18-2004 03:40:00: Started. (@@FROM @@RRCPT passed are not valid in this > > copy) > > > > filters.in.tab > > "*"[tab]"[EMAIL PROTECTED]"[tab] "0.0.0.0/0"[tab] "0.0.0.0/0"[tab] "concq.tab" > > CRLF > > > > \filters\concq.tab (php version of the filter) > > "c:\\php\\php.exe -q c:\\xmail\\mailroot\\filters\\conc.php"[tab] > > "@@FROM"[tab]"@@RRCPT" CRLF > > or > > \filters\concq.tab (VB Version of the filter) > > "conc.exe"[tab] "@@FROM"[tab]"@@RRCPT" CRLF > > > > Even more strange, it seems like the more complex the filter - and the > > longer it takes to run - the more "extra" copies of itself it runs. And the > > @@FROM And other parameters are all wrong every occurance of the filter > > except the first one of the bunch. > > If you have one line in filters.in.tab and one line in the corresponding > ..tab file, the filter will run *once* per message (iif the message is > being delivered locally). The message is removed from the memroy queue > while delivering, so if you see simultaneous filter invocations, they come > from different messages. > > > > > - Davide > > - > To unsubscribe from this list: send the line "unsubscribe xmail" in > the body of a message to [EMAIL PROTECTED] > For general help: send the line "help" in the body of a message to > [EMAIL PROTECTED] > > - To unsubscribe from this list: send the line "unsubscribe xmail" in the body of a message to [EMAIL PROTECTED] For general help: send the line "help" in the body of a message to [EMAIL PROTECTED]