aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/fetch-msg.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-31 11:29:57 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-31 11:29:57 -0400
commit143289bbd0736d72553a3c2a080aa3d125366b38 (patch)
tree6a2e97db785db1385063323708764cb93388a4d0 /commands/account/fetch-msg.go
parent1f23868652a2ce0e81bddd048e3e828efaff2d69 (diff)
downloadaerc-143289bbd0736d72553a3c2a080aa3d125366b38.tar.gz
Don't parse mail in worker; send a reader instead
Diffstat (limited to 'commands/account/fetch-msg.go')
-rw-r--r--commands/account/fetch-msg.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/commands/account/fetch-msg.go b/commands/account/fetch-msg.go
deleted file mode 100644
index 631a8eed..00000000
--- a/commands/account/fetch-msg.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package account
-
-import (
- "errors"
-
- "github.com/mohamedattahri/mail"
-
- "git.sr.ht/~sircmpwn/aerc2/widgets"
-)
-
-func init() {
- register("fetch-message", FetchMessage)
-}
-
-func FetchMessage(aerc *widgets.Aerc, args []string) error {
- if len(args) != 1 {
- return errors.New("Usage: :fetch-message")
- }
- acct := aerc.SelectedAccount()
- if acct == nil {
- return errors.New("No account selected")
- }
- store := acct.Messages().Store()
- msg := acct.Messages().Selected()
- store.FetchBodies([]uint32{msg.Uid}, func(msg *mail.Message) {
- aerc.SetStatus("got message body, woohoo")
- })
- return nil
-}