You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

2. June 2010, 03:59:42

Shoham

Posts: 222

esafe report not working

My organization uses Aladdin's email security solution named esafe.
This product scans incoming mail and sends a report containing all blocked messages in the shape of a form where you can select to 'release' or 'learn and release' the mail from the quarantine back into your inbox.
Problem: Opera mail can display this form but when hitting 'Submit',' an empty email is generated instead of an email with the desired release directions to esafe.

Here's what the esafe report looks like in code -
http://files.myopera.com/Shoham/files/esafe.txt


2. June 2010, 06:20:23

burnout426

Posts: 13196

You need to create a site preference for the site and identify or mask as Firefox.

2. June 2010, 08:05:08

Shoham

Posts: 222

The thing is, it's not a site - it's an email message with the form inside, and unlike Outlook where you can view message in a browser, I don't see how I can make it show in a regular Opera window (and then create site preference).

2. June 2010, 08:35:35

burnout426

Posts: 13196

O.K. Understood.

Looks like you'll have to contact Alladdin, see what they can do and see if you can push the update to your organization.

Meanwhile, I'll try to look for a workaround.

2. June 2010, 09:28:20

burnout426

Posts: 13196

Actually, it probably won't work in mail anyway. Opera doesn't execute JS in emails and the JS is needed to work around severe bugs in Opera with <form action="mailto:".

In Opera's defense, action="mailto:" is ancient. Barely anyone uses it and there's a good reason. Its behavior isn't defined and is inconsistent across browsers. It also differs between method="get" and method="post". Only HTML5 (which is not final) defines action="mailto:" behavior and no browser supports that yet.

But, even if the JS could be executed in the email, you'd need some way to identify as Firefox and there isn't in this case. (Unless you could get Aladdin to fix it.)

2. June 2010, 12:23:10

Shoham

Posts: 222

Actually, it never works from the email - not even in Outlook. You have to open the message in a browser in order to submit a request. Perhaps the JS workaround can help me at this stage?
Opera creates an empty message without any content.

2. June 2010, 12:35:14

burnout426

Posts: 13196

Actually, it never works from the email - not even in Outlook. You have to open the message in a browser in order to submit a request.



Oh, so it's file.html attached to the message. In that case, you'll have to save it to disk and then open it. Then, you can add a site preference for localhost and identify as Firefox. (But, that will affect all pages, so remember that.)

You won't be able to just open the attachment as you can't add a site preference for "attachment:/" pages.

2. June 2010, 12:41:38

burnout426

Posts: 13196

Or, you can just modify the page before you load it and change the script in it to:

function mailMe(){
    var Result = "";
    var forms = document.forms[1];
    var action = forms.action;
    var inputs = document.getElementsByTagName('INPUT');
    var requester = 'requester=' + inputs[0].value + "&" + String.fromCharCode(0x0A);
    var selects = document.getElementsByTagName('select');
    for (var i = 0; i < selects.length; i++) {
        var selopt = selects[i].options[selects[i].selectedIndex].value;
        if (selopt != "NoAction") {
            Result += selects[i].name + '=' + selects[i].options[selects[i].selectedIndex].value + "&";
        }
    }
    location = action + "&body=" +  escape(requester) + escape(Result);
    return false;
}


As in, get rid of all the browser detection.

12. June 2010, 06:33:54

Shoham

Posts: 222

I tried your suggestions but still no success.
The file showing for "view in a browser" in Outlook is a mhtml file, which, when opened in Opera generates an empty email. When saving it as a regular html the email generated looks to short and doesn't do the job.

I resigned to checking the spam filter on Outlook. Bah.

12. June 2010, 14:31:31

burnout426

Posts: 13196

Opera supports mhtml files. Must be something wrong with the particular one Outlook generates.

Forums » Opera for Windows/Mac/Linux » Opera mail, chat and news