1
0
Fork 0
mirror of https://github.com/dadada/inbox2matrix.git synced 2025-06-07 09:43:55 +02:00

Fix: IMAP fetch on closed session

This commit is contained in:
Tim Schubert 2019-08-08 00:50:09 +02:00
parent 747da42861
commit 153c7b29fe
2 changed files with 4 additions and 4 deletions

View file

@ -1,13 +1,13 @@
FROM node:10
FROM node:current
ENV NODE_ENV production
WORKDIR /usr/src/app
COPY package*.json ./
COPY config ./
#COPY config ./
COPY inbox2matrix.js ./
RUN ulimit -a
RUN npm install
CMD [ "npm", "start" ]

View file

@ -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 {