chirag04 / mail-listener2

Mail listener library for node.js. Get notification when new email arrived.
MIT License
245 stars 116 forks source link

reading mail sequentially #38

Closed mohit125 closed 9 years ago

mohit125 commented 9 years ago

is there a property to set that enables to read mail sequentially,so that one can perform set of operation on after reading one mail and then move on to next , i think we can use seq no for this in any way , just a question

chirag04 commented 9 years ago

Initially you would get all the unread mails and then you can process them sequentially. After that you will get unread mails as and when they arrive.

Not sure what the use case is here.

mohit125 commented 9 years ago

well the use case was downloading attachment file for each mail and process on each mail(my requirements was downloading Google calendar invite.ics file) , it does work perfectly as each mail got a sequence number , can you consider putting a tag on stack overflow or any other so question can be asked there just a suggestion , well working on this i found that it won't download the invite.ice file when calendar request is send from Microsoft outlook, it downloads other attachments from outlook though, any suggestion on why that's happening

mohit125 commented 9 years ago

a little more research did this , actully there as a is property called content-disposition in mail that should contain attachment as a value ,if there is a attachment with the mail , in this case when you send a calendar request from outlook then , outlook just send a body text/plain to receiver , but mail client i.e gmail just interpret the calendar request as a attachment file ,you will get all this information in show original option of mail