Permalink
Browse files

Merge branch 'master' of github.com:eleith/emailjs

  • Loading branch information...
2 parents 13916d1 + 1c0021c commit c1e2cd0965c8703c609079bbaf5d2d8ccd588635 eleith committed Aug 3, 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 c1e2cd0

Please sign in to comment.