atlantis-software / mailx Goto Github PK
View Code? Open in Web Editor NEWPOP,IMAP and SMTP clients
POP,IMAP and SMTP clients
I am calling the message delete function, which returns successful, and the message doesn't show in the inbox anymore when I log into the mail interface. Although the unread message counter still shows (1) for a supposedly empty inbox.
The main problem is that inbox.getNextMessage still grabs the deleted message. So now I have a phantom email in the inbox that I can't delete through code, or the interface.
Hi ! When i run example
var store = mailx.store('pop3', 'pop.host.com', 110, 'login', 'password');
store.connect(function(err) {
if (err) {
return console.log('connect error', err);
}
store.getInboxMessages(0, function(err, messages) {
if (err) {
return console.log('inbox error', err);
}
messages.forEach(function(message,index) {
console.log(message.subject);
if (index === messages.length - 1) {
message.delete(function(err, data) {
console.log('message deleted!', data);
store.close(function(err, data) {
console.log('store.close err:', err);
});
});
}
});
});
});
then i got messages succesfully but got error No mailbox is currently selected while try to delete message
Whenever I use this module I get this warning in the console:
(node) crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
Tracing that deprecation message down I get this:
$ node --trace-deprecation index.js
Trace: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
at Object.exports._printDeprecationMessage (internal/util.js:30:13)
at Object.deprecated [as createCredentials] (internal/util.js:54:22)
at POP3Client.starttls (/Users/markbradshaw/Documents/projects/node-reporter/node_modules/mailx/lib/poplib.js:179:39)
at /Users/markbradshaw/Documents/projects/node-reporter/node_modules/mailx/lib/poplib.js:418:10
at Socket.<anonymous> (/Users/markbradshaw/Documents/projects/node-reporter/node_modules/mailx/lib/poplib.js:139:11)
at emitOne (events.js:90:13)
at Socket.emit (events.js:182:7)
at readableAddChunk (_stream_readable.js:153:18)
at Socket.Readable.push (_stream_readable.js:111:10)
at TCP.onread (net.js:529:20)
Hi,
I like the api of mailx and was looking to use it for a new project, however it seems like the 2 inbox methods: getInboxMessages & getNextMessage automatically fetch attachments.
How can I get a list of message headers first and then i needed fetch the attachment data later if needed ?
Is there a way to read the mails in descending order of received date using this library? Practically reading mails in ascending order doesn't make it a "perfect" mail client. This feature might be useful.
Thanks,
Prithwiraj Bose
sribasu.com
I can receive mail form tom.com by https://www.npmjs.com/package/poplib
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.