aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-06-29 01:15:19 +0200
committerRobin Jarry <robin@jarry.cc>2024-08-03 20:19:37 +0200
commit954c812d840030f3013ef06621dd537c8b14b23d (patch)
treee1a3a7a0119c246f8969a64691e69c9b7abc0bfe /app
parentcd92da0e893ab6741bb6d411434edbb03a570c7d (diff)
downloadaerc-954c812d840030f3013ef06621dd537c8b14b23d.tar.gz
reply: allow copying to current folder
Add a new copy-to-replied setting in accounts.conf to copy sent replies to the same folder than their replied message. Requested-by: Tristan Partin <tristan@partin.io> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Tristan Partin <tristan@partin.io>
Diffstat (limited to 'app')
-rw-r--r--app/account.go2
-rw-r--r--app/compose.go4
2 files changed, 5 insertions, 1 deletions
diff --git a/app/account.go b/app/account.go
index 9786b930..0f0a58bd 100644
--- a/app/account.go
+++ b/app/account.go
@@ -248,7 +248,7 @@ func (acct *AccountView) newStore(name string) *lib.MessageStore {
role = string(dir.Role)
}
backend := acct.AccountConfig().Backend
- store := lib.NewMessageStore(acct.worker,
+ store := lib.NewMessageStore(acct.worker, name,
acct.sortCriteria(uiConf),
uiConf.ThreadingEnabled,
uiConf.ForceClientThreads,
diff --git a/app/compose.go b/app/compose.go
index 38d94359..7c580032 100644
--- a/app/compose.go
+++ b/app/compose.go
@@ -132,6 +132,10 @@ func (c *Composer) SelectedDirectory() string {
return c.seldir
}
+func (c *Composer) Parent() *models.OriginalMail {
+ return c.parent
+}
+
func (c *Composer) SwitchAccount(newAcct *AccountView) error {
if c.acct == newAcct {
log.Tracef("same accounts: no switch")