Skip to content

Commit

Permalink
Fix conditional statements relating to address parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tedeh committed Jul 30, 2012
1 parent 5bc846c commit 4d25c09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions smtp/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Address.prototype =
if(this.pos >= this.field.length)
{
// Bad email address, no domain
if(plist)
if(plist.length)
returnlist = [{label:this.commentlist.join(SPACE), address:plist[0]}];
}

Expand Down Expand Up @@ -142,11 +142,11 @@ Address.prototype =

else
{
if(plist)
if(plist.length)
returnlist = {label:this.commentlist.join(SPACE), address:plist[0]};

else if(this.specials.indexOf(this.field[this.pos]) != -1)
this.post++;
this.pos++;
}

this.gotonext();
Expand Down

0 comments on commit 4d25c09

Please sign in to comment.