Permalink
Browse files

Fix conditional statements relating to address parsing

  • Loading branch information...
1 parent 5bc846c commit 4d25c09ae699cc0ae831476453b62adaa1ca06c7 @tedeh tedeh committed Jul 30, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 smtp/address.js
View
@@ -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]}];
}
@@ -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();

0 comments on commit 4d25c09

Please sign in to comment.