{"id":13432873,"url":"https://github.com/sdushantha/tmpmail","last_synced_at":"2025-05-14T11:10:07.061Z","repository":{"id":37604293,"uuid":"295135995","full_name":"sdushantha/tmpmail","owner":"sdushantha","description":"A temporary email right from your terminal written in POSIX sh","archived":false,"fork":false,"pushed_at":"2024-08-17T14:43:42.000Z","size":224,"stargazers_count":3938,"open_issues_count":6,"forks_count":158,"subscribers_count":47,"default_branch":"master","last_synced_at":"2025-04-09T02:18:14.288Z","etag":null,"topics":["1secmail","aur","bash","commandline","disposable-email","linux","macos","posix","posix-sh","receive-emails","temporary-email","tmpmail"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdushantha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"custom":"https://www.buymeacoffee.com/sdushantha"}},"created_at":"2020-09-13T11:21:50.000Z","updated_at":"2025-04-08T18:49:12.000Z","dependencies_parsed_at":"2024-09-24T23:57:26.478Z","dependency_job_id":"e7e30d4d-6332-4149-b804-5aa93b999e39","html_url":"https://github.com/sdushantha/tmpmail","commit_stats":{"total_commits":135,"total_committers":24,"mean_commits":5.625,"dds":"0.45925925925925926","last_synced_commit":"637090f0f056df4550b52547f9cf4699f4bfd755"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Ftmpmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Ftmpmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Ftmpmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Ftmpmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdushantha","download_url":"https://codeload.github.com/sdushantha/tmpmail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254129489,"owners_count":22019628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["1secmail","aur","bash","commandline","disposable-email","linux","macos","posix","posix-sh","receive-emails","temporary-email","tmpmail"],"created_at":"2024-07-31T02:01:17.876Z","updated_at":"2025-05-14T11:10:06.960Z","avatar_url":"https://github.com/sdushantha.png","language":"Shell","readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg src=\"images/logo.png\"\u003e\n\u003c/h1\u003e\n\u003cp align=\"center\"\u003e A temporary email right from your terminal written in POSIX sh\u003c/p\u003e\u003cbr\u003e\n\n\u003cimg src=\"images/demo.gif\" align=\"right\"\u003e `tmpmail` is a command line utility written in POSIX `sh` that allows you to create a temporary email address\nand receive emails to the temporary email address. It uses 1secmail's [API](https://www.1secmail.com/api/)\nto receive emails.\n\nBy default `w3m` is used to render the HTML emails on the terminal.\nBut if you prefer another text based web browser or would rather view the email in a GUI web browser such as Firefox, simply\nuse the `--browser` argument followed by the command needed to launch the web browser of your choice.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## Dependencies\n- `w3m`\n- `curl`\n- [`jq`](https://github.com/stedolan/jq)\n- `xclip`\n\n## Installation\n### Install locally\n\n```bash\n# Download the tmpmail file and make it executable\n$ curl -L \"https://raw.githubusercontent.com/sdushantha/tmpmail/master/tmpmail\" \u003e tmpmail \u0026\u0026 chmod +x tmpmail\n\n# Then move it somewhere in your $PATH. Here is an example:\n$ mv tmpmail ~/bin/\n```\n\n### AUR\n`tmpmail` is available on the [AUR](https://aur.archlinux.org/packages/tmpmail-git/), which is currently being maintained by [Benjamin Bädorf](https://github.com/b12f)\n\n```bash\n$ yay -S tmpmail-git\n```\n\n### [Pacstall](https://github.com/pacstall/pacstall) (Debian/Ubuntu)\n`tmpmail` is available on the [pacstall-programs repository](https://github.com/pacstall/pacstall-programs/blob/master/packages/tmpmail-bin/tmpmail-bin.pacscript), which is being currently being maintained by [wizard-28](https://github.com/wizard-28)\n\n```\n$ pacstall -I tmpmail-bin\n```\n\n### Nixpkgs\n`tmpmail` is also available in the [nix package collection (only unstable currently)](https://search.nixos.org/packages?channel=unstable\u0026show=tmpmail\u0026from=0\u0026size=50\u0026sort=relevance\u0026query=tmpmail), which is maintained by [legendofmiracles](https://github.com/legendofmiracles)\n\nEither add it to your system packages, install it with nix-env or try it out in a ephemeral nix-shell `nix-shell -p tmpmail`\n\n### Docker\n\nrequirements:\n - [docker](https://www.docker.com/)\n - clone this repo\n\n```bash                                                                                        \n$ docker build -t mail .; # Dockerfile available in source code\n$ docker run -it mail;\n```   \n\n## Usage\n```console\n$ tmpmail --help\ntmpmail\ntmpmail -h | --version\ntmpmail -g [ADDRESS]\ntmpmail [-t | -b BROWSER] -r | ID\n\nWhen called with no option and no argument, tmpmail lists the messages in\nthe inbox and their numeric IDs.  When called with one argument, tmpmail\nshows the email message with specified ID.\n\n-b, --browser BROWSER\n        Specify BROWSER that is used to render the HTML of\n        the email (default: w3m)\n    --clipboard-cmd COMMAND\n        Specify the COMMAND to use for copying the email address to your\n        clipboard (default: xclip -selection c)\n-c, --copy\n        Copy the email address to your clipboard\n-d, --domains\n        Show list of available domains\n-g, --generate [ADDRESS]\n        Generate a new email address, either the specified ADDRESS, or\n        randomly create one\n-h, --help\n        Show help\n-r, --recent\n        View the most recent email message\n-t, --text\n        View the email as raw text, where all the HTML tags are removed.\n        Without this option, HTML is used.\n--version\n        Show version\n```\n\n### Examples\nCreate random email\n```console\n$ tmpmail --generate\nxoithrjagpx@1secmail.net\n```\n\nCreate custom email\n```console\n$ tmpmail --generate mycustomemail@1secmail.com\nmycustomemail@1secmail.com\n```\n\nView the inbox\n```console\n$ tmpmail\n[ Inbox for wdebivbyjor@1secmail.com ]\n\n83414443   username@example.com   Test Email\n```\n\nView the email\n```console\n$ tmpmail 83414443\n```\n\nView the most recent email\n```console\n$ tmpmail -r\n```\n\nView emails as pure text\n```console\n$ tmpmail -t 83414443\nTo: wdebivbyjor@1secmail.com\nFrom: username@example.com\nSubject: Test Email\n\nHello World\n\n[Attachments]\nhttps://is.gd/aBCdEf [apple.jpg]\nhttps://is.gd/AbCDeF [ball.jpg]\n```\n\n## Credits\nThis script is heavily inspired by Mitch Weaver's [`1secmail`](https://github.com/mitchweaver/bin/blob/master/OLD/1secmail) script\n","funding_links":["https://www.buymeacoffee.com/sdushantha"],"categories":["Shell","Command Line Utilities","\u003ca name=\"email\"\u003e\u003c/a\u003eEmail"],"sub_categories":["Internet"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdushantha%2Ftmpmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdushantha%2Ftmpmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdushantha%2Ftmpmail/lists"}