summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-07-23 10:12:52 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-07-23 10:12:52 +0200
commitde77e0af8e33497dc0a35139eb998c52d74378ce (patch)
tree34bd1e5041a052070c4c01f865a20163945e17dc /src
parentbf7dd05dac41754ebab42de9ea737cb1b289c5e0 (diff)
Do not print something if there is no To field
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r--src/main_view.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_view.rs b/src/main_view.rs
index e3e7629..c443854 100644
--- a/src/main_view.rs
+++ b/src/main_view.rs
@@ -104,7 +104,7 @@ impl MainView {
.to_string(),
from: msg.header("From")?.ok_or_else(|| anyhow!("Failed to get From for {}", msg.id()))?.to_string(),
- to: msg.header("To")?.map(|c| c.to_string()).unwrap_or_else(|| String::from("<->")),
+ to: msg.header("To")?.map(|c| c.to_string()).unwrap_or_else(|| String::from("")),
subject: msg.header("Subject")?.ok_or_else(|| anyhow!("Failed to get Subject for {}", msg.id()))?.to_string(),
})
})