diff options
author | Jordan <me@jordan.im> | 2023-02-05 23:14:29 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2023-02-05 23:14:29 -0700 |
commit | 8289fa9dba760089d7839f8103d81877822a6f68 (patch) | |
tree | 77d9f264602c091d7fc5bde756a77dd528847075 /pigeon.go | |
parent | 805b4e4e6f7716b730a7fc0b5ff8540660c30b8c (diff) | |
download | pigeon-8289fa9dba760089d7839f8103d81877822a6f68.tar.gz pigeon-8289fa9dba760089d7839f8103d81877822a6f68.zip |
pigeon: populate message content from EML over JSON
Diffstat (limited to 'pigeon.go')
-rw-r--r-- | pigeon.go | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -27,7 +27,6 @@ type Config struct { SMTPServer string `json:"smtp-server"` SMTPEmail string `json:"smtp-email"` SMTPPass string `json:"smtp-pass"` - Message string `json:"message"` Cooldown string `json:"cooldown"` IgnoreAlias bool `json:"ignore-alias"` } @@ -38,7 +37,6 @@ type Email struct { FromEmail string Subject string Date string - Message string } type worker struct { @@ -229,7 +227,6 @@ func (w *worker) handleUpdate(update *client.MailboxUpdate) { FromName: w.config.FromName, Subject: w.config.Subject, Date: time.Now().Format(time.RFC1123Z), - Message: w.config.Message, } if prevSend, exists := w.seen.emails[eml.ToEmail]; exists { log.Println("Address exists, checking time...") |