Eximon: handle new-format message IDs
[exim.git] / src / exim_monitor / em_log.c
index 55925d78629494e09fa2169702cc8883f5b7c22f..fbcb6b1c01eed86a0038887fb358df0ec12ff19c 100644 (file)
@@ -108,7 +108,9 @@ length = Ustrlen(buffer);
 #ifdef ANONYMIZE
   {
   uschar *p = buffer + 9;
-  if (p[6] == '-' && p[13] == '-') p += 17;
+  if (  p[MESSAGE_ID_TIME_LEN] == '-'
+     && p[MESSAGE_ID_TIME_LEN + MESSAGE_ID_PID_LEN + 1] == '-')
+      p += MESSAGE_ID_LENGTH + 1;
 
   while (p < buffer + length)
     {