Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-parser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dmarcts-report-parser.pl')
-rwxr-xr-xdmarcts-report-parser.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/dmarcts-report-parser.pl b/dmarcts-report-parser.pl
index ddc8367..611eba4 100755
--- a/dmarcts-report-parser.pl
+++ b/dmarcts-report-parser.pl
@@ -296,7 +296,13 @@ if ($reports_source == TS_IMAP) {
$processedReport++;
if ($processResult & 4) {
# processXML returned a value with database error bit enabled, do nothing at all!
- next;
+ if ($imapmovefoldererr) {
+ # if we can, move to error folder
+ moveToImapFolder($imap, $msg, $imapmovefoldererr);
+ } else {
+ # do nothing at all
+ next;
+ }
} elsif ($processResult & 2) {
# processXML return a value with delete bit enabled.
$imap->delete_message($msg)