Skip to content

Conversation

@dapanas
Copy link

@dapanas dapanas commented Oct 20, 2017

This pull request includes changes and improvements from another forks.

The changes are:

  • Avoid to process the same email multiple times
  • Fix unread param on empty response
  • Add a restart function to reconnect to imap server
  • Enhanced logging for the new features
  • Pass email object to attachment event
  • Update mime dependency version to ^1.0.0 because mime 2.0.0 package break the API

Every commit was made by me giving the right credit to the original authors.

connectif-dev-team and others added 7 commits October 19, 2017 19:53
Set mime dependency version to ^1.0.0 because mime 2.0.0 package breaks the API
Update readme to describe what changes are included and be in line with the name of the new library and new features.
Copy link

@uapasha uapasha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for your work! I hope it would be merged soon

}, function(err){
if( err ) {
}, function (err) {
console.log('all process');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

console.log is redundant

"name": "mail-listener2",
"version": "0.3.1",
"description": "Mail listener library for node.js. Get notification when new email arrived.",
"name": "mail-listener2-updated",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name is wrong

"url": "http://chiragjain.tumblr.com"
"name": "Daniel Pérez",
"email": "dapanas@gmail.com",
"url": "http://blogcito.info"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

url, homepage, author are wrong

* Add a restart function to reconnect to imap server
* Enhanced logging for the new features
* Pass email object to attachment event
* Update mime dependency version to ^1.0.0 because mime 2.0.0 package break the API
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description should be fixed

```javascript

var MailListener = require("mail-listener2");
var MailListener = require("mail-listener2-updated");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package name is wrong

this.imap.removeAllListeners('mail');
this.imap.removeAllListeners('update');

console.log('calling imap connect');
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these two consoles probably can be removed

@dapanas
Copy link
Author

dapanas commented Nov 21, 2017

Hi @uapasha,

The latest commit was made after the pull request in order to create a new package for npm. That's why you found another package name, author and url. My bad creating the pull request from master and not from specific commit. Sorry.

The pull request was done with this commit: f6a9fe7.

@dapanas dapanas closed this Nov 21, 2017
@dapanas
Copy link
Author

dapanas commented Nov 21, 2017

Closed and replaced by #74.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants