-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
73 lines (53 loc) · 1.51 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
############ SETUP ############
Place the files in the bin folder in the way of your $PATH. Then go to the
folder where you placed them and do:
$ ln -s listmail countmail
$ ln -s listmail getmail
$ ln -s listmail readmail
$ ln -s listmail replymail
$ ln -s listmail newmail
$ ln -s listmail rmmail
$ mkdir ~/Mail
First call listmail. Follow the instructions on the screen.
Use the file ${HOME}/.config/postman/sort.sh to sort your mail.
Next install fetchmail, msmtp, detox.
$ sudo apt install fetchmail msmtp detox
Next create the file ~/.fetchmailrc with the following content:
------------------------------------------
defaults
no rewrite
poll imap.gmail.com port 993 protocol IMAP
user YOUR_USER_NAME@gmail.com
password YOUR_SECRET_PASSWORD
ssl
smtphost smtp.gmail.com/465
mda postman
------------------------------------------
Then create the file ~/.msmtprc with the following content:
------------------------------------------
defaults
auth on
tls on
account THIS_ACCOUNT_NAME
host smtp.gmail.com
port 587
from YOUR_USER_NAME@gmail.com
user YOUR_USER_NAME@gmail.com
password YOUR_SECRET_PASSWORD
account default: THIS_ACCOUNT_NAME
------------------------------------------
############ USAGE ############
# retrieve mail
$ getmail
# list mail in folder
$ listmail ~/Mail/new
$ listmail ~/Mail/inbox
$ listmail ~/Mail/sent
# read mail
$ readmail ~/Mail/new NUMBER_OF_MAIL
# reply to mail
$ replymail ~/Mail/new NUMBER_OF_MAIL
# remove mail
$ rmmail ~/Mail/inbox NUMBER_OF_MAIL
# flush ~/Mail/new
$ rm ~/Mail/new/*