Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomAction.pm errors after latest upgrade #281

Closed
hunter-nl opened this issue Feb 2, 2021 · 2 comments
Closed

CustomAction.pm errors after latest upgrade #281

hunter-nl opened this issue Feb 2, 2021 · 2 comments
Labels

Comments

@hunter-nl
Copy link

I see the following errors appearing after I upgraded today:

Feb  2 16:37:35 mail MailScanner[18845]: MailScanner Email Processor version 5.4.1 starting...
Feb  2 16:37:35 mail MailScanner[18845]: Could not use Custom Function code /usr/share/MailScanner/perl/custom/CustomAction.pm, it could not be "require"d. Make sure the last line is "1;" and the module is correct with perl -wc (Error: Global symbol "$year" requires explicit package name (did you forget to declare "my $year"?) at /usr/share/MailScanner/perl/custom/CustomAction.pm line 154.
Feb  2 16:37:35 mail MailScanner[18845]: Global symbol "$mon" requires explicit package name (did you forget to declare "my $mon"?) at /usr/share/MailScanner/perl/custom/CustomAction.pm line 154.
Feb  2 16:37:35 mail MailScanner[18845]: Global symbol "$mday" requires explicit package name (did you forget to declare "my $mday"?) at /usr/share/MailScanner/perl/custom/CustomAction.pm line 154.
Feb  2 16:37:35 mail MailScanner[18845]: Global symbol "$hour" requires explicit package name (did you forget to declare "my $hour"?) at /usr/share/MailScanner/perl/custom/CustomAction.pm line 154.
Feb  2 16:37:35 mail MailScanner[18845]: Global symbol "$min" requires explicit package name (did you forget to declare "my $min"?) at /usr/share/MailScanner/perl/custom/CustomAction.pm line 154.
Feb  2 16:37:35 mail MailScanner[18845]: Global symbol "$sec" requires explicit package name (did you forget to declare "my $sec"?) at /usr/share/MailScanner/perl/custom/CustomAction.pm line 154.
Feb  2 16:37:35 mail MailScanner[18845]: Compilation failed in require at /usr/share/MailScanner/perl/MailScanner/Config.pm line 752.
Feb  2 16:37:35 mail MailScanner[18845]: )
Feb  2 16:37:35 mail MailScanner[18845]: Reading configuration file /etc/MailScanner/MailScanner.conf
@shawniverson
Copy link
Member

Yank that CustomAction.pm for now I'll fix and push another update.

@shawniverson
Copy link
Member

Fixed in commit 9141589

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants