imap-simple: sync description format of search()

The description of the `search()` method uses the phrase "in the previously opened mailbox", which is inconsistent with what's used in `onmail()`, `append()` and `moveMessage()`, i.e. "in the currently open mailbox". This change rewords the first passage to match the other ones.
This commit is contained in:
Waldir Pimenta 2019-02-20 15:22:31 +00:00 committed by GitHub
parent 9e673d252d
commit e529abd8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ export class ImapSimple extends NodeJS.EventEmitter {
getBoxes(callback: (err: Error, boxes: Imap.MailBoxes) => void): void;
getBoxes(): Promise<Imap.MailBoxes>;
/** Search for and retrieve mail in the previously opened mailbox. */
/** Search for and retrieve mail in the currently open mailbox. */
search(searchCriteria: any[], fetchOptions: Imap.FetchOptions, callback: (err: Error, messages: Message[]) => void): void;
search(searchCriteria: any[], fetchOptions: Imap.FetchOptions): Promise<Message[]>;