Summary | phishing warning |
Queue | IMP |
Queue Version | HEAD |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | tmerritt (at) email (dot) arizona (dot) edu |
Created | 02/24/2005 (7418 days ago) |
Due | |
Updated | 03/01/2005 (7413 days ago) |
Assigned | |
Resolved | 03/01/2005 (7413 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
object to display the status message. We are not currently using the
fourth parameter to formatStatusMsg (the class parameter) since there
is no current style that renders the status message satisfactorily at
this time. I leave this to those who a) know CSS better than I and b)
have some sort of design talent. Further development should be done
via the dev@ list rather than the bug tracking system.
extracts a mime_part to send to _cleanHTML from the horde html viewer.
_cleanHTML could take an optional second parameter containing the
mime_contents object, that seems redundant though. Perhaps the
warning should just be in the imp html driver ?
Assigned to Michael Slusarz
Michael could jump in with a good idea too.
passed a mime_part object, not a mime_contents object and I couldn't
find a way to get to a mime_contents object without creating a new
one. I'll do that if that's acceptable, but it seems like a waste,
and viewAsAttachment already has that functionality.
MIME_Contents::formatStatusMessage was only a hint to the method, it
shouldn't be called statically. I don't know exactly off my head, but
I guess it would be something like
$this->contents->formatStatusMessage().
New Attachment: imp.phish2.patch
- It now uses MIME_Contents::formatStatusMessage to display the status
box. I had to modify the function to allow it to be called as
MIME_Contents::formatStatusMsg(), replacing this->viewAsAttachment
with MIME_Contents::viewAsAttachment. I also modified it to accept a
style as an optional 4th css parameter.
- The warning is now a gettext message
Thanks
State ⇒ Feedback
- In the first two preg_match calls, why do you expect a whitespace
like 'href= http://...' if the href attribute is *not* enclosed in
quotes? |\s+ should probably be |\s*
- You should use MIME_Contents::formatStatusMessage() for showing the
phishing warnings, see imp/lib/MIME/Viewer/html.php for examples. It
might also be a good thing to extend this method to also accept an
optional class name for the status box. That wouldn't break BC and
allows to show boxes that look more like warnings like the current
ones that even have a fixed style.
- The message could probably be tweaked to sound less diffuse. But
that could be done later. But at least it has to be a gettext message.
New Attachment: imp.phish.patch
State ⇒ Accepted
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ phishing warning
Queue ⇒ IMP
State ⇒ New
phising scams. I'd like to see something similar in imp. It would be
trivial enough to do in a way that would work in my environment using
checking for spam assassin test matches, but I don't know if that is
general purpose enough to be mainline. How does this idea sound, and
is there a more flexible way to implement it ?