aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/commando.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-23 20:48:17 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-23 20:48:17 +0200
commitc883470c2ef977b8675b12428591bb003694e235 (patch)
tree09cd8fa950594e1ea13aa52492ce8116e07ef30b /internal/imap/commando.go
parent6bd87a567ef481b922f6baec2b475ec376c45443 (diff)
downloadfeed2imap-go-c883470c2ef977b8675b12428591bb003694e235.tar.gz
feed2imap-go-c883470c2ef977b8675b12428591bb003694e235.tar.bz2
feed2imap-go-c883470c2ef977b8675b12428591bb003694e235.zip
Restructure imap pkg
Diffstat (limited to 'internal/imap/commando.go')
-rw-r--r--internal/imap/commando.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/internal/imap/commando.go b/internal/imap/commando.go
index 171a507..1cf688e 100644
--- a/internal/imap/commando.go
+++ b/internal/imap/commando.go
@@ -17,23 +17,6 @@ type execution struct {
done chan<- error
}
-type addCommando struct {
- folder Folder
- messages []string
-}
-
-func (cmd addCommando) execute(conn *connection) error {
- return conn.putMessages(cmd.folder, cmd.messages)
-}
-
-type ensureCommando struct {
- folder Folder
-}
-
-func (cmd ensureCommando) execute(conn *connection) error {
- return conn.ensureFolder(cmd.folder)
-}
-
func (commander *commander) execute(command command) error {
done := make(chan error)
commander.pipe <- execution{command, done}