mirror of
https://github.com/dadada/inbox2matrix.git
synced 2025-06-08 01:53:57 +02:00
Fix: IMAP fetch on closed session
This commit is contained in:
parent
747da42861
commit
153c7b29fe
2 changed files with 4 additions and 4 deletions
|
@ -71,11 +71,11 @@ function fetchAndReport(results) {
|
|||
|
||||
fetched.once('end', function() {
|
||||
console.log('Done fetching all messages!');
|
||||
imap.end();
|
||||
});
|
||||
}
|
||||
|
||||
function processUnseen() {
|
||||
console.log("processUnseen");
|
||||
imap.search(['UNSEEN'], (err, results) => {
|
||||
if (err) console.log(err);
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue