Unable to mark mails as Spam from Footer

Report bugs and workarounds
Post Reply
pipjo
Posts: 43
Joined: 06 Jul 2017 09:08

Unable to mark mails as Spam from Footer

Post 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
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Unable to mark mails as Spam from Footer

Post by shawniverson »

What does the link look like? Do you have a sample message?
pipjo
Posts: 43
Joined: 06 Jul 2017 09:08

Re: Unable to mark mails as Spam from Footer

Post 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
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Unable to mark mails as Spam from Footer

Post by shawniverson »

That id looks fine in that url. I'm a bit confused.
pipjo
Posts: 43
Joined: 06 Jul 2017 09:08

Re: Unable to mark mails as Spam from Footer

Post by pipjo »

It's doing the same for every message I try and block from the footer.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Unable to mark mails as Spam from Footer

Post 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?
pipjo
Posts: 43
Joined: 06 Jul 2017 09:08

Re: Unable to mark mails as Spam from Footer

Post 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
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Unable to mark mails as Spam from Footer

Post 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.
pipjo
Posts: 43
Joined: 06 Jul 2017 09:08

Re: Unable to mark mails as Spam from Footer

Post 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.
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Unable to mark mails as Spam from Footer

Post by shawniverson »

I think I'll frame that reply :D
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: Unable to mark mails as Spam from Footer

Post 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.
Post Reply