Comments embedded below...

----- Original Message -----
From: Max Paperno <[EMAIL PROTECTED]>
To: inFusion Support List <[EMAIL PROTECTED]>
Sent: Monday, June 26, 2000 5:42 PM
Subject: [iMS] 2 minor heads-up


> Hi,
>
> Ran into a couple minor snags while implementing my new mail system that I
wanted to share.
>
> 1. I had some code in rcpt.cfm that looked like so:
>
> result=relay
> mx="<CFOUTPUT>#CheckDomain.RelayToMX#</CFOUTPUT>"
>
> Well, the stuff between the # signs actually threw an error (due to my
mistake), BUT it didn't crash the rcpt.cfm template!
>
> Instead, I ended up with a control file that had part of the error message
in the MX= line.  Looked something like this:
>
> MX=/B><P><P>ColdFusion
>
> I noticed the errors in the POST log when it was trying to resolve the MX
name.  Anyway, I fixed the error and put the CFOUTPUTS around the whole MX
line, instead of inside the quotes.
>

That's something that can happen in a flexible system like iMS.  You can do
things that aren't exactly right (like the bad MX) but iMS will accept it
and try to deliver the message.

>
> 2.  The individual list entries in form.RCPTList in DATA template don't
seem to always match the individual form.SMTPName list members in the RCPT
template.  Here's an example of what I mean.  I've only actually seen this
problem when CFMAIL is used to send email, but it might crop up with other
mailers.
>
> The original TO line in CFMAIL was set to "[EMAIL PROTECTED],
[EMAIL PROTECTED]".  Notice the space after the comma.  When this
mail came in to RCPT template, the individual recipients were properly found
in the DB when querying based on UserAlias=form.SMTPName.  However, when it
got to DATA template, and started looping over the form.RCPTList, the list
actually kept the original space after the comma. So, the user lookup failed
in DATA template because it was trying to find "
[EMAIL PROTECTED]" (with the leading space). Hope that's clear.
>
> Not a big deal, but it did catch me by surprise and caused a lost email.
Not sure if this would be considered an iMS bug or not. I took care of it by
stripping any whitespace from the RCPTlist in DATA before looping over it,
like so:
>


I think that I would consider this to be something to be fixed in iMS.  I
can have this fixed before 1.3 is released.

Regards,

Howie


> <CFLOOP INDEX="Recipient" LIST="#REReplace(form.RCPTList, "[[:space:]]",
"", "ALL")#">
>
>

> Hope that helps prevent some errors for people.
>
> Cheers,
> -Max



========================================================================
     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/iMS.htm

List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
========================================================================

Reply via email to