[Chandler-dev] Re: Decoupling "from" from "send as" in email, and related issues

Reid Ellis rae at osafoundation.org
Wed Jan 31 19:16:19 PST 2007


On Jan 31, 2007, at 21:55, Bryan Stearns wrote:
> Brian Kirsch wrote [comments on my decoupling proposal] (thanks!):
>> However, you are correct that the only time a email address really  
>> needs to be valid is the moment before a send. We could refactor  
>> so that right before
>> calling the mail service to send the item the detail view checks  
>> validity via the  EmailAddress.isValidEmailAddress on each string  
>> token in the 'to' field (cc? bcc?).
>
> I don't think the detail view can know: your SMTP server might  
> accept "bkirsch" by itself; all the detail view could really do is  
> check for gross structural errors (odd numbers of doublequotes,  
> etc.), and since the SMTP server's gonna do that anyway, why bother?

One reason to bother about basic parsing (like quotes) is that we  
need to know where one email address ends, and another begins. e.g.  
"Edward Affluent, the Third" <ed at rich.biz> is an email address, not  
two email addresses. This is used in the "+N" code to show the number  
of non-displayed addresses.

Reid



More information about the chandler-dev mailing list