@@ -47,7 +47,7 @@ module.exports = {
47
47
let type = 'flags' ; // currently hard coded, in the future might support other values as well, eg. X-GM-LABELS
48
48
let range = ( command . attributes [ 0 ] && command . attributes [ 0 ] . value ) || '' ;
49
49
50
- // if arguments include extenstions at index 1, then length is 4, otherwise 3
50
+ // if arguments include extensions at index 1, then length is 4, otherwise 3
51
51
let pos = command . attributes . length === 4 ? 1 : 0 ;
52
52
53
53
let action = ( ( command . attributes [ pos + 1 ] && command . attributes [ pos + 1 ] . value ) || '' ) . toString ( ) . toUpperCase ( ) ;
@@ -124,7 +124,7 @@ module.exports = {
124
124
_user : this . session . user . id . toString ( ) ,
125
125
_mailbox : this . selected . mailbox ,
126
126
_sess : this . id ,
127
- _message_count : messages . lentgh ,
127
+ _message_count : messages . length ,
128
128
_flags : flags . join ( ', ' ) ,
129
129
_store_action : action ,
130
130
_silent : silent ? 'yes' : '' ,
@@ -157,11 +157,13 @@ module.exports = {
157
157
// STORE returns MODIFIED as sequence numbers, so convert UIDs to sequence list
158
158
if ( modified && modified . length ) {
159
159
logdata . _modified = modified . length ;
160
- modified = modified . map ( uid => this . selected . uidList . indexOf ( uid ) + 1 ) . filter (
161
- seq =>
162
- // ensure that deleted items (eg seq=0) do not end up in the list
163
- seq > 0
164
- ) ;
160
+ modified = modified
161
+ . map ( uid => this . selected . uidList . indexOf ( uid ) + 1 )
162
+ . filter (
163
+ seq =>
164
+ // ensure that deleted items (eg seq=0) do not end up in the list
165
+ seq > 0
166
+ ) ;
165
167
}
166
168
167
169
let message = success === true ? 'STORE completed' : false ;
@@ -181,8 +183,8 @@ module.exports = {
181
183
typeof success === 'string'
182
184
? success . toUpperCase ( )
183
185
: modified && modified . length
184
- ? 'MODIFIED ' + imapTools . packMessageRange ( modified )
185
- : false ,
186
+ ? 'MODIFIED ' + imapTools . packMessageRange ( modified )
187
+ : false ,
186
188
message
187
189
} ;
188
190
0 commit comments