summaryrefslogtreecommitdiff
path: root/src/components/mail/listing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mail/listing.rs')
-rw-r--r--src/components/mail/listing.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/mail/listing.rs b/src/components/mail/listing.rs
index 849d2370..5a0e9d06 100644
--- a/src/components/mail/listing.rs
+++ b/src/components/mail/listing.rs
@@ -1889,6 +1889,15 @@ impl Component for Listing {
.push_back(UIEvent::Action(Tab(New(Some(Box::new(mgr))))));
return true;
}
+ UIEvent::Action(Action::Compose(ComposeAction::Mailto(ref mailto))) => {
+ let account_hash = context.accounts[self.cursor_pos.0].hash();
+ let mut composer = Composer::with_account(account_hash, context);
+ composer.set_draft(mailto.into());
+ context
+ .replies
+ .push_back(UIEvent::Action(Tab(New(Some(Box::new(composer))))));
+ return true;
+ }
UIEvent::StartupCheck(_)
| UIEvent::MailboxUpdate(_)
| UIEvent::EnvelopeUpdate(_)