Changeset 0ac7d4


Ignore:
Timestamp:
Sep 26, 2018, 5:07:48 PM (14 months ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
8bf840
Parents:
a22fe7
Message:

if FROM-field is empty, mail will get sent with base identity. So display base identity instead!

Location:
content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • content/bindings/v_identity.xml

    ra22fe7 r0ac7d4  
    314314            <body><![CDATA[
    315315        virtualIdentityExtension.MyLog.debug("v_identity.xml blurEvent")
     316               
     317                if (!this.label) { // empty senders field, takeover value from base identity
     318                  var identity = this._AccountManager.getIdentity(this.getAttribute("identitykey"));
     319                  this.label = identity.fullName + " <" + identity.email + ">";
     320                }
     321               
    316322        this.inputEvent(); // timeout might prevent inputEvent to fire before blurEvent
    317323       
  • content/v_identity.js

    ra22fe7 r0ac7d4  
    135135
    136136          Log.debug("VIdentity_GenericSendMessage");
     137         
     138          // prevent sending if senders address is empty
     139          if (!main.elements.Obj_MsgIdentity.label) {
     140            Log.debug("VIdentity_GenericSendMessage: sender empty, aborting");
     141            main.elements.Obj_MsgIdentity.blurEvent();
     142            return;
     143          }
    137144
    138145          // check via virtual / non-virtual constraints and storage results if mail should be sent
Note: See TracChangeset for help on using the changeset viewer.