chirag04/mail-listener2

reading mail sequentially

Closed this issue · 3 comments

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

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.

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

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