Questions tagged [node-imap]

41 questions
0
votes
0 answers

Node imap - unstable internet connection and socket error

I have implemented node imap (https://github.com/mscdex/node-imap). Listening for emails in an opened inbox. Works fine and without any problem. However, while working with a very unstable internet connection, it seems that the connection is lost…
yBrodsky
  • 4,981
  • 3
  • 20
  • 31
0
votes
0 answers

Node module 'imap' is returning 401 after sometime while performing any operation

In our project, we are using 'imap' node module to connect to ms office outlook mail server and also we are doing many operations like fetch, getBoxes, search, setFlags etc using imap module. Our server is trying to perform the above actions on mail…
Mrunal
  • 1
0
votes
1 answer

Unable to get custom headers using imap

I am able to send a email with custom headers using Nodemailer module. But I am unable to get these custom headers when I retrieve email using node Imap module I tried usign mailparser module but still I am unable to see custom headers. If I open…
Rajjy
  • 176
  • 13
0
votes
1 answer

node-imap, mail event not working when multiple email comes

I am using node-imap library to read mail, mail event is not getting triggered 2nd time after initialization. below is my code also, its giving Error: read ECONNRESET as error after 1st retrival of the email. Expecting imap.once('mail', function (x)…
pushpak
  • 198
  • 2
  • 10
0
votes
0 answers

How imap.seqno works in nodejs?

My Node app is using imap module to retrieve emails: var f = imap.seq.fetch('1:3', { bodies: ['HEADER.FIELDS (FROM TO SUBJECT DATE)', 'TEXT'], struct: true }); The app fetches emails with seqno 1-3 in gmail mail box. However I did…
user938363
  • 9,990
  • 38
  • 137
  • 303
0
votes
1 answer

Using node-imap, how do i move emails into another folder?

I have been trying to use node-imap to move emails from my inbox into a folder i created called "processed". But whenever i run my code, a random number of emails were moved. Those emails that were not moved throws this error: Error: Error in IMAP…
ikikika
  • 79
  • 6
0
votes
1 answer

Library callback result via get API nodejs

I'm trying to fetch all the mails from an inbox in nodejs and i'm using this library IMAP, I was successful in getting all the mails in my local machine, now I want to provide it as an get API, so i'm using express server and created a get url but…
0
votes
1 answer

Node-imap append new email to drafts

Been using node-imap , I'm trying to save emails to drafts, it looks like this: var imap = new Imap({ user: this.emailUsername, password: this.emailPassword, host: this.host, port: this.port, …
Kerim092
  • 1,367
  • 1
  • 12
  • 32
0
votes
1 answer

How to retrieve sent box items from node-imap or node-inbox module

Here is my code but its not working for sent message folder. I have tried using node-imap and node-inbox and node-maillistner2 module but none of them were able to retrieve the sent message box. I am using ymail account and imap server. var inbox…
0
votes
1 answer

Get messages since beginning using IMAP in node

I am using mail-listener package of npm to get all inbox messages since a specific date. Here is my code for getting inbox messages, 'listener':function(credit,userid = this.userId,date = (new Date()).toString()){ if(credit.port === "143"…
JMA
  • 974
  • 3
  • 13
  • 41
0
votes
1 answer

Node Imap - close the opened box?

I am using node-imap to connect to an email server. I have around 20 users for which I open a connection to the server and listen for new emails. The problem is that in order to be able to do: imap.once('mail', function(numNewMsgs) { …
yBrodsky
  • 4,981
  • 3
  • 20
  • 31
1 2
3