
POSIX sh로 작성된, 터미널에서 바로 사용할 수 있는 임시 이메일
터미널에서 바로 사용할 수 있는 임시 이메일, POSIX sh로 작성됨
tmpmail은 POSIX sh로 작성된 명령줄 유틸리티로, 임시 이메일 주소를 생성하고 해당 주소로 이메일을 수신할 수 있습니다. 1secmail의 API를 사용하여 이메일을 수신합니다.
기본적으로 w3m을 사용하여 터미널에서 HTML 이메일을 렌더링합니다. 하지만 다른 텍스트 기반 웹 브라우저를 선호하거나 Firefox와 같은 GUI 웹 브라우저에서 이메일을 보고 싶다면, --browser 인수 뒤에 원하는 웹 브라우저를 실행하는 명령을 지정하면 됩니다.
w3mcurljqxclip# tmpmail 파일을 다운로드하고 실행 권한을 부여합니다
$ curl -L "https://raw.githubusercontent.com/sdushantha/tmpmail/master/tmpmail" > tmpmail && chmod +x tmpmail
# 그런 다음 $PATH에 있는 디렉터리로 이동합니다. 예시:
$ mv tmpmail ~/bin/
tmpmail은 AUR에서 사용할 수 있으며, 현재 Benjamin Bädorf가 유지 관리하고 있습니다.
$ yay -S tmpmail-git
tmpmail은 pacstall-programs 저장소에서 사용할 수 있으며, 현재 wizard-28이 유지 관리하고 있습니다.
$ pacstall -I tmpmail-bin
tmpmail은 nix 패키지 컬렉션(현재 unstable만)에서도 사용할 수 있으며, legendofmiracles가 유지 관리하고 있습니다.
시스템 패키지에 추가하거나, nix-env로 설치하거나, 임시 nix-shell nix-shell -p tmpmail에서 사용해 볼 수 있습니다.
요구 사항:
$ docker build -t mail .; # 소스 코드에 있는 Dockerfile
$ docker run -it mail;
$ tmpmail --help
tmpmail
tmpmail -h | --version
tmpmail -g [ADDRESS]
tmpmail [-t | -b BROWSER] -r | ID
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.
-b, --browser BROWSER
Specify BROWSER that is used to render the HTML of
the email (default: w3m)
--clipboard-cmd COMMAND
Specify the COMMAND to use for copying the email address to your
clipboard (default: xclip -selection c)
-c, --copy
Copy the email address to your clipboard
-d, --domains
Show list of available domains
-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.
Without this option, HTML is used.
--version
Show version
랜덤 이메일 생성
$ tmpmail --generate
[email protected]
사용자 지정 이메일 생성
$ tmpmail --generate [email protected]
[email protected]
받은 편지함 보기
$ tmpmail
[ Inbox for [email protected] ]
83414443 [email protected] Test Email
이메일 보기
$ tmpmail 83414443
최근 이메일 보기
$ tmpmail -r
이메일을 일반 텍스트로 보기
$ tmpmail -t 83414443
To: [email protected]
From: [email protected]
Subject: Test Email
Hello World
[Attachments]
https://is.gd/aBCdEf [apple.jpg]
https://is.gd/AbCDeF [ball.jpg]
이 스크립트는 Mitch Weaver의 1secmail 스크립트에서 큰 영감을 받았습니다.