"Eric B." <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
>
> I am starting to play with IMAP subaddressing, and having a little trouble 
> with my MTA.  I am running Merak 8.0.3 which requirs subaddressing to be 
> defined as "username:folder"@domain.com.  Notice the quote (") marks - 
> they are intentional.  However, when I enable the RFC 822 validation in 
> ASSP, the email is rejected as an improper email address.
>
> I have skimmed the RFC 2822 document and from what I interpret from 
> section 3.4.1, an address can contain quotes.
>
> http://tools.ietf.org/html/rfc2822#section-3.4.1
> " An addr-spec is a specific Internet identifier that contains a
>   locally interpreted string followed by the at-sign character ("@",
>   ASCII value 64) followed by an Internet domain.  The locally
>   interpreted string is either a quoted-string or a dot-atom."
>
> I have additionally read through section 6 in RFC822 
> (http://tools.ietf.org/html/rfc822#section-6) and not found anything 
> specific that prohibits quotes in an address spec.
>
> However, the regex in ASSP will reject anything with a quote (") when 
> doing the RCF822 validation.
>
> Am I misinterpreting RFC822/2822, or should ASSP be modified such that any 
> address containing quote marks be allowed?  Furthermore, if I understand 
> the specs properly, any character is permissible within quotation marks as 
> well. So something like "eric)@@?#?$!"@domain.com would be valid, albeit 
> extremely odd....


Acutally - a quick followup to this.  I thought it was the RFC822 validation 
that was causing the problem.  But in fact it was ASSP's own RegEx that was 
causing the problem.  At the moment, ASSP using the following RegEx to 
determine a valid email address:
$EmailAdrRe="[^()<>@,;:\\\"\\[\\]\000-\040]+";

- anything that doesn't match that is automatically rejected.

Should this functionality be modified?  My email address of 
"username:folder"@domain.com is automatically rejected by ASSP even though 
it is a valid RFC822/2822 email address.  If I modify the RegEx and remove 
the : and " as invalid chars, the email address is accepted sucessfully even 
with RFC822 validation enabled.

Should this regex be redefined to be more complete?  Something more along 
the lines of the follwoing (am not a perl regex expert, so bear with me):
$EmailAdrRe="((\\\".+\\\")|([^()<>@,;\\[\\]\000-\040]))+"

thoughts?

Thx,

Eric




-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to