Ticket #1484601 (closed Patches: fixed)
"Always display images" patch
| Reported by: | benw | Owned by: | till |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-beta |
| Component: | Client Scripts | Version: | 0.1-rc1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I created this patch to allow behavior to have an option to always display remote images from a particular sender so you don't have to click "Display remote images" each time you load one of their messages (behavior similar to some commercial webmail services). I've also sent this to the dev list, I'm kinda new to this so sorry in advance if I'm doing it incorrectly.
A few things:
1) I didn't know the best way to get the raw email address from the $MESSAGE headers, so I wrote a simple method that uses preg_match to extract it. If there's a better way, please let me know and I'll update my patch.
2) Caching causes a bit of a glitch in my patch. If you click a message with remote objects, click Always display, it will add the sender to the address book and display the images. If you go right back to the message however it will show the cached version so you have to Shift-Reload or it will appear it was unsuccessful. I'd be grateful if anybody knows a way around this.
3) Only includes updates to the en_US locale, needs translations.
