projects/guix·blob java-team · refs

34 lines · 889 B

1From a5ecd1b2302d0def2f6f8349747022a615a9f017 Mon Sep 17 00:00:00 2001
2From: Tamas K Lengyel <[email protected]>
3Date: Tue, 26 May 2020 13:27:50 -0600
4Subject: [PATCH] Don't limit to email with @gmail.com
5
6---
7 go/sendgmail/main.go | 4 ----
8 1 file changed, 4 deletions(-)
9
10diff --git a/go/sendgmail/main.go b/go/sendgmail/main.go
11index b35ef23..405aa1b 100644
12--- a/go/sendgmail/main.go
13+++ b/go/sendgmail/main.go
14@@ -30,7 +30,6 @@ import (
15 "log"
16 "net/smtp"
17 "os"
18- "strings"
19
20 "golang.org/x/oauth2"
21 googleOAuth2 "golang.org/x/oauth2/google"
22@@ -52,9 +51,6 @@ func init() {
23
24 func main() {
25 flag.Parse()
26- if atDomain := "@gmail.com"; !strings.HasSuffix(sender, atDomain) {
27- log.Fatalf("-sender must specify an %v email address.", atDomain)
28- }
29 config := getConfig()
30 tokenPath := fmt.Sprintf("%v/.sendgmail.%v.json", os.Getenv("HOME"), sender)
31 if setUp {
32--
332.32.0
34