Code Monkey home page Code Monkey logo

0x4447_product_s3_email_lambda_inbound's People

Contributors

davidgatti avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

0x4447_product_s3_email_lambda_inbound's Issues

Error: Calendar invite attachment

When parsing emails with .ical and other attachments, we get a file called undefined as if it did not have a name - this requires investigation

Empty and weird path names.

Error Symptoms

When a title of an email contains for example / slashes, then they are treated as paths

Error Message

n/a

Tech Specs

This is my environment:

n/a

Emails with all caps are saved in the wrong folder

Error Symptoms

When an email contains the To: field in all caps, the email will end up in the Sent folder since it won't match the domain name from SES. We need to make sure to normalize the string in to low cap.

TypeError: Cannot read property 'replace' of undefined

Error Symptoms

Issue with email that don't have a title.

Error Message

2019-02-24T22:13:07.554Z	455a49be-125c-4cfd-bd64-5e3af8c7fe83	TypeError: Cannot read property 'replace' of undefined
at /var/task/index.js:286:41
at new Promise (<anonymous>)
at extract_data (/var/task/index.js:235:9)
at /var/task/index.js:45:11
at <anonymous>

Tech Specs

n/a

New feature: add .eml extension

My Problem

The raw email is saved with no extension, by adding the .eml extension the file would be interpreted by all major email clients.

Solution

Add the extension when the object is copied.

Handle spam email

Error Symptoms

Spam email won't have a To field. They will have To: undisclosed-recipients:;. Because of this the code will crash since there is no email to be seen.

Error Message

TypeError: Cannot read property 'match' of undefined
at /var/task/index.js:337:8
at new Promise (<anonymous>)
at extract_data (/var/task/index.js:323:9)
at /var/task/index.js:65:11
at <anonymous>

Possible solution

Create a fork that will handle spam emails and good ones.

New feature: Importing emails are not well organized

My Problem

When the emails are uploaded by hand to backup, the emails are not sorted correctly, everything ends up in the Inbox folder.

Solution

Check if it is possible to read the confirmed domain in SES, and use those to check the To field and filter the emails with that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.