On Wed, Oct 17, 2001 at 07:40:16AM +0200, Gerald Richter wrote: > > > getting it ready to go live and played with EMBPERL_MAIL_ERRORS_TO > > > > > Everything now works great, except that I'm getting 3 copies of > > > every error email. Has anyone else experienced this? The emails have > > > different message IDs and all are sent one after the other. > > > > Right, after getting some time to look at this further I noticed that > > Embperl was sending the error mail at the end of every Execute. ie in > > epmain.c::EndOutput > > but only if bAppendToMain is not set, so it should only be send at the end > of the main page
What exactly do you mean by main page? The requested URI or the base.epl file? > > Most of my pages follow this basic outline: > > > > base.epl: > > Do init stuff > > Execute(layout.epl) > > > > layout.epl: > > Do layout stuff and somewhere in this do > > Execute(*) for the content > > > > It seems that even when I placed a "die" in base.epl the same error > > page was being sent on the cleanup of *, of layout.epl and base.epl. > > > > Two questions: > > 1. Is the error message ever different at any of these points? (I > > couldn't see any difference when I tested with errors in any of > > these places but I did only cause errors with die) > > The last message may contains more errors, in case addtionaly errors occurs > between the first and the last mail, but the last message will contain _all_ > errors. Right. Thats about what I thought. > > 2. If not, then what are the reasons against only sending the error > > mail at the end of base.epl and skipping it for the other nested > > Executes? > > If Embperl really sends more than one mail in your case, then it's a bug in > Embperl and I have to look deeper into it and fix it Well, it really does :) I'll probably have time over the next few days to stick some debugging print statements in Embperl myself. If I don't turn up anything really useful then I'll send a copy of an embperl log for a request and my apache config. About the only thing I can think of that might make a difference is that I'm using EMBPERL_OBJECT_STOPDIR and most of the website epl structure files are in there. I'll post again in a day or so. Thanks Gerald -- Andrew O'Brien Product Engineer email: [EMAIL PROTECTED] Switch Online Group Pty Limited phone: +61 2 9299 1133 ABN 89 092 286 327 fax: +61 2 9299 1134 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
