summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-23 21:39:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-23 21:39:26 +0300
commitc790484ce0eeee9f44b8ab0aa1e44c6bc5f47c30 (patch)
tree96ae50acb4643c96d5d7d33254da5f7903126b36 /src/actions
parentbfdee54a34531631a021f9f112186504cebde4c7 (diff)
downloadmv-c790484ce0eeee9f44b8ab0aa1e44c6bc5f47c30.tar.gz
mv-c790484ce0eeee9f44b8ab0aa1e44c6bc5f47c30.tar.bz2
mv-c790484ce0eeee9f44b8ab0aa1e44c6bc5f47c30.tar.xz
mv-c790484ce0eeee9f44b8ab0aa1e44c6bc5f47c30.zip
Add support for /mailto chat command in new mail system.
Diffstat (limited to 'src/actions')
-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;
}