sdushantha / tmpmail Goto Github PK
View Code? Open in Web Editor NEWA temporary email right from your terminal written in POSIX sh
License: MIT License
A temporary email right from your terminal written in POSIX sh
License: MIT License
Hi, thanks a lot for tmpmail. It's a breeze to use. ๐
Perhaps we could pass an argument to the generation function in order to access an inbox for an email we created in the past? let's say, a login for a forum
tmpmail --generate foobar
[ Inbox for [email protected] ]
At the moment I am editing the /tmp/tmpmail/email_address
file to set it up.
I appreciate its good practice to keep those usernames random and unidentifiable but it's just in case you need to recover a password for a service or get any timely notification.
Would it not be useful to generate an address, and paste it into the clipboard with a flag?
I tried it with tmpmail -g | xclip
but it doens't oddly seem to work. Perhaps mpmail -g -cas extra flag to paste into a clipboard (with
-c` flag)?
You are using shuf
which is not POSIX-compliant.
I found an answer/solution on stackoverflow.
It seems that the proposed solution is not the most performant, but because you are shuffling only 5 values, that shouldn't be a problem.
Currently, for copy the email address, it needs to be done manually. That is,
Run tmpmail
then select and copy.
But it'd be quite helpful if an option could copy the address to clipboard by xclip
on X and wl-clipboard
on Wayland.
Like -c
or --copy-adress
Thanks (:
Sent myself an email with the subject text containing the char "รช".
./tmpmail
[ Inbox for [email protected] ]
column: Invalid or incomplete multibyte or wide character
The email is then unreadable as well.
If you only include those especial characters in the email body then i can be read
./tmpmail -t -r
column: Invalid or incomplete multibyte or wide character
To: [email protected]
From: [email protected]
Subject: aaaee
aaa?eeeeeee
where the ?='รช'
Pacstall is a community-driven AUR-like package manager for Ubuntu. We have an ongoing pull request to add tmpmail to our repository.
We have a few questions for you:
Many sites block the domain 1secmail.com and .net, so an alternative is needed for these cases.
GuerrillaMail also has an api and may be a good option to consider.
I have just installed and run the command tmpmail
but it is reporting that the missing dependencies for xclip
I am thinking if it is possible to allow for other clipboard such as wl-copy for wayland?
I'm currently using WSL with Ubuntu on Windows 10, when typing in ./tmpmail
, I get the expected result, but when I type in ./tmpmail [ID OF MAIL]
, I get the following error:
Wrong __data_start/_end pair
Aborted (core dumped)
I'm maintaining AUR package for tmpmail (link) and I've come across a small problem. The latest release (tag v1.2.0) points to a commit 3ba416b, however the version number in the source was not changed until ec2d321. I can also see that copying of the email address was introduced in b28789b as well as bumping the version number once again. I'm not sure which one should be used and weather this was deliberate or a mistake.
Thanks in advance!
Would be great to update tmpmail via Homebrew.
Thanks
Hey! I packaged tmpmail for nixpkgs a while back, but just noticed that you also update this project more often and even release versions.
Unfortunately I cannot seem to find the appropriate tags for each version, which would make packaging - updating and maintaing the package a lot easier in nixpkgs
Cheers
I think that I can make improvements to the code that processes the arguments and options, both in terms of clarity/brevity as well as robustness (e.g. error checking for optional arguments). I did a code change earlier that changed the syntax of the command, which was declined. Before I do another change, I want to double check on the current syntax and semantics of the command. This is my interpretation of how the command currently (or is supposed to) works. Is it accurate? Note that this is the output of a manpage that I wrote, and following manpage conventions, the brackets indicate optional and the pipe indicates xor.
NAME
tmpmail โ temporary mail
SYNOPSIS
tmpmail
tmpmail -h | --version
tmpmail -g [ADDRESS]
tmpmail [-t | -b BROWSER] -r | ID
OPTIONS
-b | --browser BROWSER
Specify BROWSER (default: w3m) that is used to render the HTML of
the email
-g | --generate [ADDRESS]
Generate a new email address, either the specified ADDRESS, or
randomly create one
-h | --help
Show help
-r | --recent
View the most recent email message
-t | --text
View the email as raw text, where all the HTML tags are removed
(default: html)
--version
Show version
ARGUMENTS
When called with no option and no argument, tmpmail lists the messages in
the inbox and their numeric IDs. When called with one argument, tmpmail
shows the email message with specified ID.
Hello,
I'm MB. A very nice and polite guy.
Here is an error message I'm getting. Any way to work around it?
mkdir: cannot create directory โ/tmpโ: Read-only file system ./tmpmail: 130: cannot create /tmp/tmpmail/email_address: Directory nonexistent
head: cannot open '/tmp/tmpmail/email_address' for reading: No such file or directory
The provider 1secmail.com offers several TLDs for its service, I would also like to have this selection in the CLI.
Thanks a lot
FYI, the latest version number shown on Github is 1.1.4, but the version shown in the tmpmail file itself is 1.1.9.
How long the received email will stay on the 1secmail server?
I noticed that after a bit is not present anymore. Would be good to know how long will be available.
Thanks
Hi,
the following line:
USERNAME=$(head /dev/urandom | tr -dc a-z | cut -c1-11)
returns the following error on FreeBSD:
tr: Illegal byte sequence
and no valid e-mail address can be generated.
I suggest to add the following line at the top of the script:
export LC_ALL=C
Thanks for the nice tool,
regards,
Riccardo
Lines 25 to 31 in b65d55b
Should be
TMPMAIL_DIR="/tmp/tmpmail"
# TMPMAIL_EMAIL_ADDRESS is where we store the temporary email address
# that gets generated. This prevents the user from providing
# the email address everytime they run tmpmail
TMPMAIL_EMAIL_ADDRESS="$TMPMAIL_DIR/email_address"
TMPMAIL_HTML_EMAIL="$TMPMAIL_DIR/tmpmail.html"
At the moment the flags have to be in a certain order.
For example if I want to view the most recent email and want the output to be as raw text, I have to run tmpmail --text --recent
for it work properly. Running tmpmail --recent --text
will ignore the --text
flag.
By allowing the flags to be used in any order would make it much easier to use.
Hi!
1secmail service doesn't seem to be working very well, at least for me. It most of the time works but it has frequent down times. Was this script designed only for 1secmail's api or is there any other service it supports, or reported working with this script?
I cant install it:
gCs-MacBook-Pro:~ gc$ curl -L "https://git.io/tmpmail" > tmpmail && chmod +x tmpmail
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:21 --:--:-- 0
curl: (6) Could not resolve host: raw.githubusercontent.com
Any help please?
Thank you in advance.
I'm trying to understand what's the timezone used for the emails in 1sec mail? Would anyone here know?
If an email is only sent as plaintext the script does not show the output because the body is delivered in a different field.
{
"id": 639,
"from": "[email protected]",
"subject": "Some subject",
"date": "2018-06-08 14:33:55",
"attachments": [{
"filename": "iometer.pdf",
"contentType": "application\/pdf",
"size": 47412
}],
"body": "Some message body\n\n",
"textBody": "Some message body\n\n",
"htmlBody": ""
}
See section Fetching single message under https://www.1secmail.com/api/
I keep having this errors, never had this in previous versions.
Any help please?
/usr/local/bin/tmpmail: line 198: [: : integer expression expected
/usr/local/bin/tmpmail: line 206: [: : integer expression expected
Thanks in advance.
In case you want to document it: https://aur.archlinux.org/packages/tmpmail-git/
Also, if you want to maintain the PKGBUILD, hit me up and you can co-maintain or I'll even transfer the ownership to you.
Not exactly an issue, but reporting an additional feature/enhancement.
Inspired by tmpmail
, I have written a kind of pure-pythonic utility to perform similar tasks. Its called pydispo
and you can find it at https://github.com/aakash30jan/pydispo. I have tried making it platform-independent and almost without external dependencies, but tried keeping the similar usage pattern as tmpmail
.
Thanks @sdushantha , I have already cited tmpmail
on my repo.
I have tested and looks like it can't. Can we have this feature possibly? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.