mirror of
https://github.com/moparisthebest/mail
synced 2024-11-23 01:12:19 -05:00
reading and writing to multiple recipients works
This commit is contained in:
parent
87d26383f5
commit
4b638a0dee
@ -53,6 +53,8 @@ define(function(require) {
|
||||
mail.from.forEach(checkPublicKey);
|
||||
// display recipient security status
|
||||
mail.to.forEach(checkPublicKey);
|
||||
// display recipient security status
|
||||
Array.isArray(mail.cc) && mail.cc.forEach(checkPublicKey);
|
||||
});
|
||||
|
||||
function checkPublicKey(user) {
|
||||
|
@ -62,7 +62,9 @@ define(function(require) {
|
||||
|
||||
$scope.writerTitle = 'Reply';
|
||||
// fill recipient field
|
||||
$scope.to[0].address = re.from[0].address;
|
||||
$scope.to.unshift({
|
||||
address: re.from[0].address
|
||||
});
|
||||
// fill subject
|
||||
$scope.subject = 'Re: ' + ((re.subject) ? re.subject.replace('Re: ', '') : '');
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
</p>
|
||||
<div ng-switch="state.mailList.selected.cc !== undefined">
|
||||
<p class="address" ng-switch-when="true">
|
||||
CC: <span ng-repeat="u in state.mailList.selected.cc" class="label" ng-class="{'label-primary': u.secure === false}" data-icon-append="{{(u.secure === false) ? '' : (u.secure === true) ? '' : ''}}" ng-mouseover="getFingerprint(u.address)" popover="#fingerprint-info">{{u.name || u.address}}</span>
|
||||
Cc: <span ng-repeat="u in state.mailList.selected.cc" class="label" ng-class="{'label-primary': u.secure === false}" data-icon-append="{{(u.secure === false) ? '' : (u.secure === true) ? '' : ''}}" ng-mouseover="getFingerprint(u.address)" popover="#fingerprint-info">{{u.name || u.address}}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div><!--/.headers-->
|
||||
|
@ -19,12 +19,6 @@
|
||||
<input id="cc{{$index}}" value="{{recipient.address}}" ng-model="recipient.address" ng-trim="false" ng-class="{'label': recipient.secure === true, 'label label-primary': recipient.secure === false && recipient.valid !== true}" auto-size="recipient.address" spellcheck="false" ng-change="onAddressUpdate(cc, $index)" address-input="cc" tabindex="1">
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
<span>Bcc:</span>
|
||||
<span ng-repeat="recipient in bcc track by $index">
|
||||
<input id="bcc{{$index}}" value="{{recipient.address}}" ng-model="recipient.address" ng-trim="false" ng-class="{'label': recipient.secure === true, 'label label-primary': recipient.secure === false && recipient.valid !== true}" auto-size="recipient.address" spellcheck="false" ng-change="onAddressUpdate(bcc, $index)" address-input="bcc" tabindex="1">
|
||||
</span>
|
||||
</p>
|
||||
</div><!--/.address-headers-->
|
||||
|
||||
<div class="subject-box">
|
||||
|
Loading…
Reference in New Issue
Block a user