Fix bug in debug mode
Benjamin Renard

Benjamin Renard commited on 2016-01-20 17:54:40
Showing 1 changed files, with 1 additions and 11 deletions.

... ...
@@ -67,12 +67,7 @@ search_user_from_mailid "$MAILID"
67 67
 
68 68
 [ $DEBUG -eq 1 ] && echo "User not found. Try to detect original mail ID with message ID in log"
69 69
 
70
-if [ $DEBUG -eq 1 ]
71
-then
72
-	MSGID=$( mailid_to_messageid "$MAILID" -d )
73
-else
74 70
 MSGID=$( mailid_to_messageid "$MAILID" )
75
-fi
76 71
 
77 72
 if [ -z "$MSGID" ]
78 73
 then
... ...
@@ -82,12 +77,7 @@ fi
82 77
 
83 78
 [ $DEBUG -eq 1 ] && echo "Message ID found : $MSGID. Try to detect original mail ID with this message ID"
84 79
 
85
-if [ $DEBUG -eq 1 ]
86
-then
87
-	ORIGMAILID=$( messageid_to_original_mailid "$MAILID" -d )
88
-else
89
-	ORIGMAILID=$( messageid_to_original_mailid "$MAILID" )
90
-fi
80
+ORIGMAILID=$( messageid_to_original_mailid "$MSGID" )
91 81
 
92 82
 if [ -z "$ORIGMAILID" ]
93 83
 then
94 84