summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeiko Schlichting <heiko@fu-berlin.de>2013-04-02 21:06:03 +0200
committerTodd Lyons <tlyons@exim.org>2014-04-29 17:06:33 -0700
commitd2af03f4c11273d6f52c9043119e24e732080885 (patch)
tree29e7684c859f5c5db70db4c453ca6344993df1f0 /src
parent2b4a568dfa3d79a9a968984cf5b23829c084a951 (diff)
Bug 1454: Option -oMm for message reference
Includes docs and test suite
Diffstat (limited to 'src')
-rw-r--r--src/src/exim.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/src/exim.c b/src/src/exim.c
index 3ab657fea..fa0cf4940 100644
--- a/src/src/exim.c
+++ b/src/src/exim.c
@@ -2989,6 +2989,23 @@ for (i = 1; i < argc; i++)
else if (Ustrcmp(argrest, "Mi") == 0) interface_address = argv[++i];
+ /* -oMm: Message reference */
+
+ else if (Ustrcmp(argrest, "Mm") == 0)
+ {
+ if (!mac_ismsgid(argv[i+1]))
+ {
+ fprintf(stderr,"-oMm must be a valid message ID\n");
+ exit(EXIT_FAILURE);
+ }
+ if (!trusted_config)
+ {
+ fprintf(stderr,"-oMm must be called by a trusted user/config\n");
+ exit(EXIT_FAILURE);
+ }
+ message_reference = argv[++i];
+ }
+
/* -oMr: Received protocol */
else if (Ustrcmp(argrest, "Mr") == 0) received_protocol = argv[++i];