Open pqvst opened 8 years ago
You cannot fetch messages without opening a mailbox, you can only gather some mailbox stats from a mailbox without opening it (.status()
).
That's what I thought. So should there be a mailbox check in fetch, or is there any reason why that was left out?
if (!this._box)
throw new Error('No mailbox specified or currently selected');
No reason that I remember. Besides _fetch()
, there should also be if (this._box === undefined)
checks for expunge()
and _thread()
.
I believe it isn't possible to fetch (by uid) without opening a box?
The readme states:
However, the code doesn't do a check for an open box. Bug?