[Vtigercrm-commits] [vtiger development] #4116: In emails module : cannot assign emails within <> in bcc
vtiger development
vtiger-tickets at trac.vtiger.com
Tue Aug 14 06:16:41 EDT 2007
#4116: In emails module : cannot assign emails within <> in bcc
-----------------------------+----------------------------------------------
Reporter: etienne.jodoin | Owner: etienne.jodoin
Type: defect | Status: reopened
Priority: unassigned | Milestone: 5.0.4
Component: vtigercrm | Version: 5.0.3
Resolution: | Keywords:
-----------------------------+----------------------------------------------
Comment (by etienne.jodoin):
in function findAngleBracket, after :
{{{
for(i=0;i<strlen;i++){
}}}
Replace :
{{{
if(mailadd[i] == '<' && gt == 0){
lt = 1;
}
if(mailadd[i] == '>' && lt == 1){
gt = 1;
}
if(mailadd[i] != '<' && lt == 1 && gt == 0)
ret = ret + mailadd[i];
}
if(/^[a-z0-9]([a-z0-9_\-\.]*)@([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/.test(ret)){
}}}
By :
{{{
if(mailadd.charAt(i) == '<' && gt == 0){
lt = 1;
}
if(mailadd.charAt(i) == '>' && lt == 1){
gt = 1;
}
if(mailadd.charAt(i) != '<' && lt == 1 && gt == 0)
ret = ret + mailadd.charAt(i);
}
if(/^[a-zA-Z0-9]([a-zA-Z0-9_\-\.]*)@([a-zA-Z0-9_\-\.]*)(\.[a-zA-Z]{2,3}(\.[a-zA-Z]{2}){0,2})$/.test(ret)){
}}}
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/4116#comment:5>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list