summaryrefslogtreecommitdiffstats
path: root/ui/src/components/mail/view.rs
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2019-09-23 09:30:23 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2019-09-23 09:30:23 +0300
commit26e4d50b402213c07c7d492ace8d6cd2e88a816d (patch)
treedb617824fc0244b72bc2a3abd2e729a17fdfa53d /ui/src/components/mail/view.rs
parented248be03179f0d188d0fff7f7fc7ea5647262e4 (diff)
Try to save sent messages elsewhere if Sent folder fails
If Sent folder wasn't correctly configured, the sent message would be lost. With this change it tries these folders in this order: 1. Sent 2. Inbox 3. Any other normal folder The check is done by looking at the special usage metadata on each folder. If everything fails, the message is saved in a file in the tmpfs.
Diffstat (limited to 'ui/src/components/mail/view.rs')
-rw-r--r--ui/src/components/mail/view.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/components/mail/view.rs b/ui/src/components/mail/view.rs
index 2767acd6..3bf69b2e 100644
--- a/ui/src/components/mail/view.rs
+++ b/ui/src/components/mail/view.rs
@@ -785,6 +785,7 @@ impl Component for MailView {
&decode(u, None),
name.as_ref().map(|n| n.clone()),
None,
+ true,
);
Command::new(&binary)
.arg(p.path())