Changeset 7991d3


Ignore:
Timestamp:
Jul 5, 2008, 12:17:51 PM (13 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
581917
Parents:
65eabe
Message:

skip adding found header-parts if they contain no email address

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_smartIdentity.js

    r65eabe r7991d3  
    215215            // move found addresses step by step to allIdentities, and change values if requested
    216216            for (i = 0; i < splitted.number; i++) {
     217                // if there is no email than it makes no sense to use it as a sender
     218                if (!splitted.emails.value[i].match(/^.*@.*$/)) {
     219                    vI_notificationBar.dump("## vI_smartIdentity:   skipping '" +
     220                    splitted.emails.value[i] + "', no email\n")
     221                    continue;
     222                }
     223
    217224                allIdentities.emails[allIdentities.number] = splitted.emails.value[i]
    218225               
Note: See TracChangeset for help on using the changeset viewer.