As shown, my RCPT template has only two possible outcomes (if/else).  So,
how is the DATA template being called without the <inset> variable I create
on the second line?  Should I have a <cfabort> tag following my result?


Regards,

Raven

> -----Original Message-----
> From: Howie Hamlin [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 11, 2003 5:30 PM
> To: inFusion Support List
> Subject: Re: [iMS] DATA Template Called From RCPT
> 
> 
> The DATA template is never called if there are no valid 
> recipients for a mail.  And, there are no valid recipients 
> unless your RCPT templates dictates that there are.
> 
> Regards,
> 
> Howie
> 
> ----- Original Message ----- 
> From: "Raven R. Cecil" <[EMAIL PROTECTED]>
> To: "inFusion Support List" <[EMAIL PROTECTED]>
> Sent: Monday, August 11, 2003 5:54 PM
> Subject: [iMS] DATA Template Called From RCPT
> 
> 
> > Howie,
> > 
> > My DATA template looks for #form.AccountName#, but it 
> doesn't always exist.
> > It seems the DATA template is being called by the RCPT 
> template even when
> > "unknownuser" is set, or the <inset> tag does not always create the
> > requested variable.
> > 
> > --------------------
> > --- code snippet ---
> > 
> > <cfif isValidAccount>
> > <cfoutput><inset accountname="#Mid(form.smtpto, Account.pos[1],
> > Account.len[1])#"></cfoutput>
> > result=accept
> > <cfelse>
> > <cfoutput><inlog text="[unknownuser] #form.smtpfrom# ->
> > #form.smtpto#"></cfoutput>
> > result=unknownuser
> > </cfif>
> > <eof>
> > 
> > --------------------
> > 
> > Is this a bug, or should I be doing something differently?
> > 
> > 
> > Regards,
> > 
> > Raven
> > 
> > 
> ......................................................................
> > "Patience and perseverance have a magical effect before which 
> > difficulties disappear and obstacles vanish." - John Quincy Adams
> > 
> > "They that give up essential liberty to obtain a little temporary 
> > safety deserve neither liberty nor safety." - Benjamin Franklin
> > 
> > "find / -user you -name "*base*" -exec chown us {} \;" - Linux Admin
> > 
> ......................................................................
==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at 
http://www.coolfusion.com/Support/
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/Developers/
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [EMAIL PROTECTED]
==^=======================================================


Reply via email to