Page 1 of 1

Unable to mark mails as Spam from Footer

Posted: 07 Jul 2017 15:58
by pipjo
Hi all,

Me again, the annoying newbie.

A spam came through eFa today so I clicked on the link in the footer and was presented with the following page:
Error variable is empty at /var/www/cgi-bin/learn-msg.cgi line 51

I have checked learn-msg.cgi line 51 is the if below:

open(FILE, '/etc/sysconfig/EFA_trusted_networks') or die ("Trusted Networks Fil$
@trustednetworks = <FILE>;
close (FILE);

if ($id eq "" ){
die "Error variable is empty";
}

That's about as far as I can get as my CGI is slightly worse than my ADA (in other words really poor).

Can anyone suggest anything?

Thanks

PJ

Re: Unable to mark mails as Spam from Footer

Posted: 09 Jul 2017 22:02
by shawniverson
What does the link look like? Do you have a sample message?

Re: Unable to mark mails as Spam from Footer

Posted: 10 Jul 2017 00:05
by pipjo
The footer looks like this:

This message has been scanned for viruses and dangerous content by

E.F.A. Project, and is believed to be clean.



Click here to report this message as spam.

http://spam.pipjo.co.uk/cgi-bin/learn-m ... 08cab565e4

Re: Unable to mark mails as Spam from Footer

Posted: 14 Jul 2017 23:10
by shawniverson
That id looks fine in that url. I'm a bit confused.

Re: Unable to mark mails as Spam from Footer

Posted: 15 Jul 2017 02:30
by pipjo
It's doing the same for every message I try and block from the footer.

Re: Unable to mark mails as Spam from Footer

Posted: 15 Jul 2017 12:53
by shawniverson
To rule out that something is happening to the url in your mail client...

Try copying the url and pasting it into a browser tab. Any difference?

Re: Unable to mark mails as Spam from Footer

Posted: 15 Jul 2017 14:05
by pipjo
Same both ways. If you want to have a go with it feel free to use this link as I'm trying to block the sender anyway.

http://spam.pipjo.co.uk/cgi-bin/learn-m ... e1281a8e50

Thanks for your help

PJ

Re: Unable to mark mails as Spam from Footer

Posted: 15 Jul 2017 18:01
by shawniverson
I see your problem, the url is getting redirected to port 5272, and the parameters are getting dropped.

If I prefix the port to the address before hitting, it works.

You need to modify the inline sig template to include the non-standard port after the hostname.

Re: Unable to mark mails as Spam from Footer

Posted: 15 Jul 2017 18:07
by pipjo
Ah, that makes sense. Will update that in a bit. Thanks again for all your help.

It takes a special type of person to give up their free time to help complete strangers, we're lucky you're one of them.

Re: Unable to mark mails as Spam from Footer

Posted: 16 Jul 2017 14:20
by shawniverson
I think I'll frame that reply :D

Re: Unable to mark mails as Spam from Footer

Posted: 21 Jul 2017 03:28
by pdwalker
pipjo wrote: 15 Jul 2017 18:07It takes a special type of person to give up their free time to help complete strangers, we're lucky you're one of them.
If you really want to say "thanks", pay it forward to someone else who needs the help.