1
- # PursueMail
1
+ # EffectiveMail
2
2
3
3
## Dev
4
4
@@ -10,16 +10,16 @@ Use https://mailcatcher.me/ for local SMTP testing.
10
10
Download and configure with:
11
11
12
12
```
13
- go get github.com/PursuanceProject/pursuemail
14
- cd $(go env GOPATH)/src/github.com/PursuanceProject/pursuemail
13
+ go get github.com/elimisteve/effectivemail
14
+ cd $(go env GOPATH)/src/github.com/elimisteve/effectivemail
15
15
cp .env-sample .env
16
16
# !!! Customize .env !!!
17
17
```
18
18
19
19
Postgres setup:
20
20
21
21
```
22
- go get github.com/PursuanceProject/pursuemail
22
+ go get github.com/elimisteve/effectivemail
23
23
cd db
24
24
sudo -u postgres bash init_sql.sh
25
25
cd ..
@@ -29,8 +29,8 @@ Build and run:
29
29
30
30
```
31
31
go build
32
- source .env # Sets 'PGPASSWORD' environment variable so pursuemail can use it
33
- ./pursuemail
32
+ source .env # Sets 'PGPASSWORD' environment variable so effectivemail can use it
33
+ ./effectivemail
34
34
```
35
35
36
36
@@ -39,7 +39,7 @@ source .env # Sets 'PGPASSWORD' environment variable so pursuemail can use it
39
39
### Map Email Address to (Random) UUID
40
40
41
41
```
42
- curl -i localhost:9080/api/v1/email -d '{"email": "spam@pursuanceproject.org "}'
42
+ curl -i localhost:9080/api/v1/email -d '{"email": "spam@effective.af "}'
43
43
```
44
44
45
45
@@ -49,27 +49,27 @@ In the below examples, the emails sent to users will be encrypted if
49
49
and only if their PGP keys are found in ` ~/.gnupg/pubring.gpg ` ,
50
50
otherwise they will be sent unencrypted.
51
51
52
- If you want to tell PursueMail to only send an email if it is sent in
52
+ If you want to tell EffectiveMail to only send an email if it is sent in
53
53
encrypted form, add ` "secure_only": true ` to the top level of the JSON
54
54
POST body when doing any of the following API calls.
55
55
56
56
57
57
#### Send Email to One User by (UU)ID
58
58
59
59
```
60
- curl -i localhost:9080/api/v1/email/ec348de2-2430-46d6-9ed7-f65b12a4a75a/send -d '{"email_data": {"from": "team@pursuanceproject.org ", "subject": "4 tasks due today!", "body": "4 tasks due today: ..."}}'
60
+ curl -i localhost:9080/api/v1/email/ec348de2-2430-46d6-9ed7-f65b12a4a75a/send -d '{"email_data": {"from": "steve@effective.af ", "subject": "4 tasks due today!", "body": "4 tasks due today: ..."}}'
61
61
```
62
62
63
63
#### Send Bulk Email (to Multiple Users) by their Email Addresses
64
64
65
65
```
66
- curl -i localhost:9080/api/v1/email/bulksend -d '{"emails": ["activist1@riseup.net", "activist2@riseup.net"], "email_data": {"from": "team@pursuanceproject.org ", "subject": "2 tasks due today!", "body": "2 tasks due today in pursuance #827: ..."}}'
66
+ curl -i localhost:9080/api/v1/email/bulksend -d '{"emails": ["activist1@riseup.net", "activist2@riseup.net"], "email_data": {"from": "steve@effective.af ", "subject": "2 tasks due today!", "body": "2 tasks due today in pursuance #827: ..."}}'
67
67
```
68
68
69
69
#### Send Bulk Email (to Multiple Users) by their (UU)IDs
70
70
71
71
```
72
- curl -i localhost:9080/api/v1/email/bulksend -d '{"ids": ["ec348de2-2430-46d6-9ed7-f65b12a4a75a", "451724a2-ddb8-4fd9-8336-819316c6019a"], "email_data": {"from": "team@pursuanceproject.org ", "subject": "3 tasks due today!", "body": "3 tasks due today in pursuance #827: ..."}}'
72
+ curl -i localhost:9080/api/v1/email/bulksend -d '{"ids": ["ec348de2-2430-46d6-9ed7-f65b12a4a75a", "451724a2-ddb8-4fd9-8336-819316c6019a"], "email_data": {"from": "steve@effective.af ", "subject": "3 tasks due today!", "body": "3 tasks due today in pursuance #827: ..."}}'
73
73
```
74
74
75
75
#### Send _ Definitely-encrypted_ Email
0 commit comments