aboutsummaryrefslogtreecommitdiff
path: root/modules/commands.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-01 17:52:04 +0100
committerGravatar jesopo2018-10-01 17:52:04 +0100
commita76f2065514e7b160d6de4165b5ff9d025c96429 (patch)
treea368363eaf5c801c3763d3d28f9de5e7ea7dd334 /modules/commands.py
parentThe correct msgid reply tag (at the moment) is '+draft/reply' (diff)
signature
It's 'draft/msgid' not just 'msgid', also actually store 'msgid' in self._msgid
Diffstat (limited to 'modules/commands.py')
-rw-r--r--modules/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands.py b/modules/commands.py
index c29ba006..8a00b2a4 100644
--- a/modules/commands.py
+++ b/modules/commands.py
@@ -14,7 +14,7 @@ class Out(object):
self.target = target
self._text = ""
self.written = False
- self._msgid = None
+ self._msgid = msgid
def write(self, text):
self._text += text
@@ -104,7 +104,7 @@ class Module(ModuleManager.BaseModule):
if hasattr(hook.function, "__self__"):
module_name = hook.function.__self__._name
- msgid = event["tags"].get("msgid", None)
+ msgid = event["tags"].get("draft/msgid", None)
stdout = StdOut(module_name, target, msgid)
stderr = StdErr(module_name, target, msgid)