Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
/yopyPublic

A one file script to check, delete or write yopmail mails from command line

License

NotificationsYou must be signed in to change notification settings

law0/yopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation


A one file script to check, delete or write yopmail mails from command line

Requirement

pip3 install beautifulsoup4

Other requirements should already be installed in a standard linux python3 environment

Installation

git clone https://github.com/law0/yopy.git

Usage

# In yopy git directory./yopy.py --helpusage: yopy.py [-h] [-v] [--show number] [--delete number] [--delete-all] [--send] mailpositional arguments:  mail             mail address (without the @yopmail.com)optional arguments:  -h, --help       show this help message and exit  -v, --verbose    increase output verbosity  --show number    show mail with given number  --delete number  delete mail with given number  --delete-all     delete all mails in the inbox  --send           send an mail, reading from stdin                   Note that the mail must have the form:                    To: ADRESSE                    Subject: SUBJECT                                       CONTENT

Default usage, without args -> list the mails:

$ ./yopy.py mail_test_yopy0 from:'mail_test_yopy2@yopmail.com', subject:'test2'1 from:'mail_test_yopy2@yopmail.com', subject:'test1'

The first number can be used to show a mail:

$ ./yopy.py mail_test_yopy --show 1From: mail_test_yopy2@yopmail.comSubject: test1Does it work ?

Or delete one:

$ ./yopy.py mail_test_yopy --delete 1$ ./yopy.py mail_test_yopy0 from:'mail_test_yopy2@yopmail.com', subject:'test2'

To write a mail use redirection from a file or heredoc:(Works even if the sending mail doesn't exist yet)

$ ./yopy.py mail_test_yopy2 --send << EOF> To: mail_test_yopy> Subject: test5> > Works fine> It seems> EOF$ ./yopy.py mail_test_yopy0 from:'mail_test_yopy2@yopmail.com', subject:'test5'1 from:'mail_test_yopy2@yopmail.com', subject:'test3'2 from:'mail_test_yopy2@yopmail.com', subject:'test2'$ ./yopy.py mail_test_yopy --show 0From: mail_test_yopy2@yopmail.comSubject: test5Works fineIt seems$ ./yopy.py mail_test_yopy --show 1From: mail_test_yopy2@yopmail.comSubject: test3Youpi

About

A one file script to check, delete or write yopmail mails from command line

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp