userjack6880 / Open-Report-Parser

A Perl based tool to parse DMARC reports from an IMAP mailbox or from the filesystem, and insert the information into a database. Derived from Techsneeze's dmarcts-report-parser
GNU General Public License v3.0
34 stars 10 forks source link

[Bug]: Use of uninitialized value in concatenation (.) or string at ./report-parser.pl line 448. #34

Closed bugnumber9 closed 7 months ago

bugnumber9 commented 7 months ago

Describe the bug I ran the script for the 1st time and it produced the following error: Use of uninitialized value in concatenation (.) or string at ./report-parser.pl line 448.

Line 448 is this: printInfo("Processing ". $imap->message_count($imapdmarcfolder)." messages in folder <$imapdmarcfolder>.") if $dmarc_only >= 0; It's 1 line off of the original script because I added this line in the header since I'm running it in cPanel: use cPanelUserConfig;

My question is: can this error happen because the mailbox is still empty (because it currently is)? Or should I look for other causes of this error?

Software Version [] Version 0 Alpha 5

Server (please complete the following information):

bugnumber9 commented 7 months ago

To add to this. As of today, the mailbox is no longer empty but I still get the error I mentioned. What can cause the error and how to fix it?

bugnumber9 commented 7 months ago

I figured it out. I missed having to set $imapdmarcfolder and $imaptlsfolder to 'inbox' in the config file.