summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 557d7891a..1ed0d3c81 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1638,7 +1638,19 @@ impHandler(mailTo)
{
if (mailWindow == nullptr)
return false;
- mailWindow->createMail(event.args);
+ const std::string args = event.args;
+ if (settings.enableNewMailSystem)
+ {
+ mail2Handler->queueCheckName(MailQueueType::EditMail,
+ args,
+ std::string(),
+ std::string(),
+ 0);
+ }
+ else
+ {
+ mailWindow->createMail(args);
+ }
return true;
}