summary refs log tree commit diff stats
path: root/commands/delete-message.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/delete-message.go')
-rw-r--r--commands/delete-message.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/commands/delete-message.go b/commands/delete-message.go
deleted file mode 100644
index be56dbb..0000000
--- a/commands/delete-message.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package commands
-
-import (
-	"errors"
-
-	"git.sr.ht/~sircmpwn/aerc2/widgets"
-)
-
-func init() {
-	Register("delete-message", DeleteMessage)
-}
-
-func DeleteMessage(aerc *widgets.Aerc, args []string) error {
-	if len(args) != 1 {
-		return errors.New("Usage: :delete-message")
-	}
-	acct := aerc.SelectedAccount()
-	if acct == nil {
-		return errors.New("No account selected")
-	}
-	store := acct.Messages().Store()
-	msg := acct.Messages().Selected()
-	store.Delete([]uint32{msg.Uid})
-	return nil
-}
=08a0eed699b8ea07d37163aba610c8e04feee003'>08a0eed6 ^
14a38052 ^
ac07e589 ^
60338448 ^

ce2c1efc ^
60338448 ^
e99038ea ^
ce2c1efc ^
ce2c1efc ^
60338448 ^
34c84469 ^















ce2c1efc ^
34c84469 ^















c8a3ccbe ^
34c84469 ^
52daf072 ^






2104d1a7 ^

52daf072 ^









2104d1a7 ^
52daf072 ^

33352536 ^
52daf072 ^

33352536 ^
52daf072 ^



33352536 ^
2104d1a7 ^
33352536 ^





52daf072 ^

2104d1a7 ^
b1635a5c ^
33352536 ^

52daf072 ^
33352536 ^

52daf072 ^
33352536 ^
8aeb85f0 ^
52daf072 ^
33352536 ^

52daf072 ^
33352536 ^


2104d1a7 ^
33352536 ^
2104d1a7 ^
33352536 ^

52daf072 generated by cgit-pink 1.4.1-2-gfad0 (git 2.36.2.497.gbbea4dcf42) at 2025-01-09 10:38:17 +0000
8' href='#n118'>118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154