This simple module takes mail objects stored on AWS S3 from AWS SES and indexes them into your mongo database. You have to pass in the AWS Bucketname as described below and setup your AWS shared authentication and you should be good to go!
In order to use this module, you must have AWS shared credential set up on your computer. You also must run the
configureOptions() function in order to set your AWS S3 Bucket name. You can also choose to overwrite other options in the configuration (more on that below).
const getNewMessages = ;getNewMessages;
This is the default configuration:
Bucket: ''DB: 'Mail'MailSchema:headers: falsesubject: truefrom: trueto: truecc: truebcc: truedate: truemessageId: trueinReplyTo: true'reply-to': truereferences: falsehtml: falsetext: truetextAsHtml: falseattachments: trueread: trueset: false
You can overwrite any of the above values as long as you give it the same data type it was originally set to. Don't change the set value, it will be automatically changed to true when you run the