Skip to main content

Create temporary E-Mails & receive E-Mails with MinuteInbox through python

Project description

MinuteInbox Temporary E-Mail

GitHub Banner

Description

Create temporary e-mails and receive e-mails with MinuteInbox through python! It also parses the E-Mail adress MinuteInbox created for you; so you can directly access last and first name. And incase you needed it, it creates a company name out of them too 🎉

Example

You'll be able to use this, just as in the following example:

from minuteinbox import create_email, get_inbox
from time import sleep as s

# create an email
minuteinbox = create_email()
if minuteinbox:
	email = minuteinbox.get('email')
	first_name = minuteinbox.get('fname')
	last_name = minuteinbox.get('lname')
	company_name = minuteinbox.get('company')
	print('Current E-Mail: '+email+'\n'+'First & Last Name: '+first_name+' '+last_name+'\n'+'Company Name: '+company_name)


# get received email body
while True:
	inbox = get_inbox()
	if inbox != None:
		subject = inbox.get('subject')
		sender = inbox.get('sender')
		raw_body = inbox.get('raw_body') # raw text body
		clean_body = inbox.get('clean_body') # bs4 parsed body
		print('\nNew E-Mail titled: "'+subject+'", from: '+sender)
		print('\n'+'E-Mail Body:'+'\n'+clean_body)
		break
	s(3)

Output:

Current E-Mail: jahsiah.ayman@toiletkeys.net
First & Last Name: Jahsiah Ayman
Company Name: Ayja LLC

New E-Mail titled: "Meeting Minutes Defined", from: ahane 

E-Mail Body:
The meeting could be pretty intense and overwhelming for all members of the project. Therefore, it is natural that some of the participants are missing some details or slight information although they have taken personal notes on their device or paper. Kind Regards Copy Paste Emails

Known Bugs

If there is weird special characters in the subject or the senders name, MinuteInbox tends to just send an empty response instead. That in return causes an error in this code. I've not found a bug fix for that yet.

Disclaimer

I'm not associated in any way with MinuteInbox.com, if requested by them I will take down this repository. In this case please prove your Identity and send me an E-Mail. You can check my profile to find it.

Project details


Release history Release notifications | RSS feed

This version

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

minuteinbox-py-0.4.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file minuteinbox-py-0.4.tar.gz.

File metadata

  • Download URL: minuteinbox-py-0.4.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for minuteinbox-py-0.4.tar.gz
Algorithm Hash digest
SHA256 04e15c396b55468e01aa47848d92ce149acf74f26eef7aefd215436aba5d0677
MD5 98deda222e71f9f7c8f59224e4aa95ee
BLAKE2b-256 f58b9f3830a306fb0ad7dc96cbce502527711a587225481cccf90fafd0acd229

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page