mirror of
https://github.com/dadada/inbox2matrix.git
synced 2025-06-07 17:43: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
|
@ -1,13 +1,13 @@
|
||||||
FROM node:10
|
FROM node:current
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
COPY config ./
|
#COPY config ./
|
||||||
|
COPY inbox2matrix.js ./
|
||||||
|
|
||||||
RUN ulimit -a
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
||||||
|
|
|
@ -71,11 +71,11 @@ function fetchAndReport(results) {
|
||||||
|
|
||||||
fetched.once('end', function() {
|
fetched.once('end', function() {
|
||||||
console.log('Done fetching all messages!');
|
console.log('Done fetching all messages!');
|
||||||
imap.end();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function processUnseen() {
|
function processUnseen() {
|
||||||
|
console.log("processUnseen");
|
||||||
imap.search(['UNSEEN'], (err, results) => {
|
imap.search(['UNSEEN'], (err, results) => {
|
||||||
if (err) console.log(err);
|
if (err) console.log(err);
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue