Skip to content

Commit cc77a8c

Browse files
authored
Merge pull request emailjs#156 from lacivert/patch-2
search example the first arg: 'path'
2 parents 3e603e6 + b7195c8 commit cc77a8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,12 +474,14 @@ query = {unseen: true, header: ['subject', 'hello world']};
474474
query = {or: {unseen: true, seen: true}};
475475
// SEARCH UNSEEN NOT SEEN
476476
query = {unseen: true, not: {seen: true}}
477+
// SINCE 2011-11-23
478+
query = {since: new Date(2011, 11, 23, 0, 0, 0)}
477479
```
478480

479481
### Example
480482

481483
```javascript
482-
client.search({unseen: true}, {byUid: true}).then((result) => {
484+
client.search('INBOX', {unseen: true}, {byUid: true}).then((result) => {
483485
result.forEach((uid) => console.log('Message ' + uid + ' is unread'));
484486
});
485487
```

0 commit comments

Comments
 (0)