Code Monkey home page Code Monkey logo

stevenmaude / go-mailin8 Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 56 KB

:mailbox_with_mail: Display the latest mail from a temporary inboxes.com email address, at the command line. Useful for getting throwaway confirmation email links, without needing to visit the nada site in browser.

License: GNU General Public License v3.0

Go 85.31% Dockerfile 4.38% Makefile 10.31%
disposable-email mailinator confirmation-emails disposable email nada temporary-email

go-mailin8's Introduction

go-mailin8's People

Contributors

dependabot[bot] avatar stevenmaude avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

go-mailin8's Issues

Broken due to site redesign

It uses Angular and websockets, and is likely a pain to access. So I may abandon this project.

However, I found nada.email which you can do a simple:

>>> headers = {'Referer': 'https://app.getnada.com/inbox/'}
>>> r1 = requests.get('https://app.getnada.com/api/v1/inboxes/[email protected]', headers=headers)
>>> r1.content
# gives you JSON with a 'uid' key
>>> r2 = requests.get('https://app.getnada.com/api/v1/messages/<uid>, headers=headers)
# gives you JSON with 'html' key which is what we want

Much simpler.

Certificate error

Hy there,

I'm getting a certificate error trying to fetch mails.

failed to get message ID: Get https://getnada.com/api/v1/inboxes/[email protected]: x509: certificate signed by unknown authority

Any idea? Thanks!

Messages may contain multiple parts

One example I've seen:

    "parts": [
        {
            "headers": {
                "content-transfer-encoding": "8bit",
                "content-type": "text/plain; charset = \"utf-8\""
            },
            "body": "..."
        },
        {
            "headers": {
                "content-transfer-encoding": "8bit",
                "content-type": "text/html; charset = \"utf-8\""
            },
            "body": "..."
        }

Consider implementing an API

Instead of just downloading latest message.

This would let you:

  • retrieve any of the messages in an inbox;
  • delete messages.

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.