Michael M Slusarz [Thu, 13 Nov 2008 03:21:22 +0000 (20:21 -0700)]
Use new rendering code.
getSummary() now only returns a single part info. It is the job of the
calling code to plan the UI output and step through the message
accordingly. This should (eventually) prevent us from having to create
Horde_Mime_Viewer objects for every part of the message, and should be a
bit more memory friendly (since we are only dealing with a part at a
time.
Michael M Slusarz [Wed, 12 Nov 2008 23:56:29 +0000 (16:56 -0700)]
Update to new render() return format.
Michael M Slusarz [Wed, 12 Nov 2008 23:41:52 +0000 (16:41 -0700)]
Tweak output from render().
Return data by ID - allows us to chain MIME drivers. Also, always return
all information by default, for ease of handling the return value
further down the chain.
Michael M Slusarz [Wed, 12 Nov 2008 23:40:42 +0000 (16:40 -0700)]
Allow 'mode' to be passed into view.php.
Michael M Slusarz [Wed, 12 Nov 2008 21:47:59 +0000 (14:47 -0700)]
notification -> mdn; update the Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 21:45:16 +0000 (14:45 -0700)]
Use canDisplayInline().
Michael M Slusarz [Wed, 12 Nov 2008 21:44:10 +0000 (14:44 -0700)]
Track Horde_Mime_Viewer changes; add canDisplayInline().
Michael M Slusarz [Wed, 12 Nov 2008 21:39:51 +0000 (14:39 -0700)]
Require (again) a Horde_Mime_Part object when creating
Bite the bullet and required the Horde_Mime_Part object when creating a
Horde_Mime_Viewer instance. Especially for embedded parts, or for
multiparts that may have to recursively look through the subparts, the
information stored in the MIME part may be needed for things like
determining whether a driver can display a part with the given mode.
Michael M Slusarz [Wed, 12 Nov 2008 20:59:08 +0000 (13:59 -0700)]
Fix mimeIdArithmetic().
Michael M Slusarz [Wed, 12 Nov 2008 20:58:51 +0000 (13:58 -0700)]
Update report Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:52:11 +0000 (11:52 -0700)]
Add smil description; some other tweaks.
Michael M Slusarz [Wed, 12 Nov 2008 18:51:54 +0000 (11:51 -0700)]
This value might be 0 - use isset() instead.
Michael M Slusarz [Wed, 12 Nov 2008 18:51:40 +0000 (11:51 -0700)]
Update wordperfect Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:51:27 +0000 (11:51 -0700)]
Update webcpp Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:51:14 +0000 (11:51 -0700)]
Update vcard Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:51:00 +0000 (11:51 -0700)]
Update TNEF Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:50:38 +0000 (11:50 -0700)]
Update srchighlite Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:50:23 +0000 (11:50 -0700)]
Update smil Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:50:05 +0000 (11:50 -0700)]
Update RTF Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:49:51 +0000 (11:49 -0700)]
Update RPM viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:49:37 +0000 (11:49 -0700)]
Update richtext Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:49:20 +0000 (11:49 -0700)]
Update openoffice Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:49:05 +0000 (11:49 -0700)]
Update mspowerpoint Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:48:51 +0000 (11:48 -0700)]
Use file_get_contents().
Michael M Slusarz [Wed, 12 Nov 2008 18:47:50 +0000 (11:47 -0700)]
Update debian Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 18:47:31 +0000 (11:47 -0700)]
Fix return value.
Michael M Slusarz [Wed, 12 Nov 2008 06:57:04 +0000 (23:57 -0700)]
Make sure to pass along any params to other Viewers
Michael M Slusarz [Wed, 12 Nov 2008 06:53:08 +0000 (23:53 -0700)]
Forward any parameters passed to this Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 06:52:34 +0000 (23:52 -0700)]
Fix address book search and status reporting
Still need to work on unblock image related activities.
Michael M Slusarz [Wed, 12 Nov 2008 06:51:35 +0000 (23:51 -0700)]
Make sure we include ID of this part.
Michael M Slusarz [Wed, 12 Nov 2008 06:17:17 +0000 (23:17 -0700)]
Allow a modified name to be passed from a renderer
Michael M Slusarz [Wed, 12 Nov 2008 06:14:56 +0000 (23:14 -0700)]
Update zip Viewers.
Michael M Slusarz [Wed, 12 Nov 2008 06:14:35 +0000 (23:14 -0700)]
Fix key name.
Michael M Slusarz [Wed, 12 Nov 2008 06:14:14 +0000 (23:14 -0700)]
Determine fallback filename.
Michael M Slusarz [Wed, 12 Nov 2008 05:39:49 +0000 (22:39 -0700)]
No need for external status message anymore.
Michael M Slusarz [Wed, 12 Nov 2008 05:38:35 +0000 (22:38 -0700)]
Update tgz Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 05:38:24 +0000 (22:38 -0700)]
Fix some factory/singleton usage.
Michael M Slusarz [Wed, 12 Nov 2008 05:23:23 +0000 (22:23 -0700)]
Finish implementing Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 05:18:48 +0000 (22:18 -0700)]
Update rar Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 04:52:57 +0000 (21:52 -0700)]
Update plain Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 04:49:41 +0000 (21:49 -0700)]
phpdoc
Michael M Slusarz [Wed, 12 Nov 2008 04:49:20 +0000 (21:49 -0700)]
Update CSS Viewer
Michael M Slusarz [Wed, 12 Nov 2008 04:49:10 +0000 (21:49 -0700)]
Update audio Driver.
Michael M Slusarz [Wed, 12 Nov 2008 04:37:14 +0000 (21:37 -0700)]
Fix status rendering in alternative parts.
Michael M Slusarz [Wed, 12 Nov 2008 04:36:43 +0000 (21:36 -0700)]
Make the max size of image viewable inline configurable
Michael M Slusarz [Wed, 12 Nov 2008 04:36:17 +0000 (21:36 -0700)]
Update source Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 04:36:02 +0000 (21:36 -0700)]
Update php Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 04:35:41 +0000 (21:35 -0700)]
Update enscript code Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 04:01:58 +0000 (21:01 -0700)]
Update MSWord Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 01:59:08 +0000 (18:59 -0700)]
Fix display
Michael M Slusarz [Wed, 12 Nov 2008 01:58:21 +0000 (18:58 -0700)]
Sanity checking.
Since it is technically possible to pass in MIME IDs through URL
params, we need to sanity check when stripping parts.
Michael M Slusarz [Wed, 12 Nov 2008 01:52:30 +0000 (18:52 -0700)]
Don't allow stripping of message/rfc822 parts.
Michael M Slusarz [Wed, 12 Nov 2008 01:52:11 +0000 (18:52 -0700)]
Update msexcel Viewer.
Michael M Slusarz [Wed, 12 Nov 2008 00:18:26 +0000 (17:18 -0700)]
Remove alternative_display pref.
With the ability to view all parts, there is no reason to have a status
message listing other alternative parts.
Michael M Slusarz [Tue, 11 Nov 2008 23:55:04 +0000 (16:55 -0700)]
Fix comparison.
Michael M Slusarz [Tue, 11 Nov 2008 23:38:11 +0000 (16:38 -0700)]
Updated appledouble Viewer.
Michael M Slusarz [Tue, 11 Nov 2008 23:37:56 +0000 (16:37 -0700)]
Use same table structure to display status msgs.
Michael M Slusarz [Tue, 11 Nov 2008 23:37:45 +0000 (16:37 -0700)]
Tweak status display.
Michael M Slusarz [Tue, 11 Nov 2008 23:37:35 +0000 (16:37 -0700)]
Fix typo
Michael M Slusarz [Tue, 11 Nov 2008 22:46:25 +0000 (15:46 -0700)]
Update enriched Viewer.
Michael M Slusarz [Tue, 11 Nov 2008 22:46:09 +0000 (15:46 -0700)]
Update enriched Viewer.
Michael M Slusarz [Tue, 11 Nov 2008 22:01:30 +0000 (15:01 -0700)]
Rework download all/strip all links
Move Download All and Strip All links to a separate message action
dropdown since they are not used very often (it also makes the screen
look cleaner). Also add the ability to switch between attachment view
(currently the default) and view all parts (which, for most users, is
normally not useful but every once awhile - especially during
development - it is very useful to be able to view the entire structure
of a message).
Michael M Slusarz [Tue, 11 Nov 2008 20:06:20 +0000 (13:06 -0700)]
Status reporting updates.
Michael M Slusarz [Tue, 11 Nov 2008 20:06:05 +0000 (13:06 -0700)]
Convert charset if viewing inline.
Michael M Slusarz [Tue, 11 Nov 2008 20:04:57 +0000 (13:04 -0700)]
Output status messages.
Michael M Slusarz [Tue, 11 Nov 2008 20:04:40 +0000 (13:04 -0700)]
Update PDF viewer.
Michael M Slusarz [Tue, 11 Nov 2008 20:03:33 +0000 (13:03 -0700)]
Check for UTF-8 browsers when viewing text inline
Michael M Slusarz [Tue, 11 Nov 2008 19:42:21 +0000 (12:42 -0700)]
Update PDF viewer.
Michael M Slusarz [Tue, 11 Nov 2008 19:42:04 +0000 (12:42 -0700)]
Fix status text output.
Michael M Slusarz [Tue, 11 Nov 2008 18:59:52 +0000 (11:59 -0700)]
Only skip part if inline, not info
Also, disable another status related thing for now.
Michael M Slusarz [Tue, 11 Nov 2008 12:00:41 +0000 (05:00 -0700)]
IMP specific RFC 822 viewer no longer needed.
Michael M Slusarz [Tue, 11 Nov 2008 11:59:02 +0000 (04:59 -0700)]
Updated RFC 822 viewer.
Michael M Slusarz [Tue, 11 Nov 2008 11:57:35 +0000 (04:57 -0700)]
Fix MIME ID assignment for embedded RFC 822 parts
Also, all decoding should be done before passing into Horde_Mime_Part.
This makes sense - we should only do encoding in places where we might
be working with encoded data (i.e. message parsing).
Michael M Slusarz [Tue, 11 Nov 2008 11:57:20 +0000 (04:57 -0700)]
Fix some decoding issues.
Michael M Slusarz [Tue, 11 Nov 2008 09:01:13 +0000 (02:01 -0700)]
multipart/related now working (with HTML msgs)
Michael M Slusarz [Tue, 11 Nov 2008 08:58:59 +0000 (01:58 -0700)]
Allow user-defined params to Viewer.
Also, a better algorithm to determine whether we can view a part in a
popup window.
Michael M Slusarz [Tue, 11 Nov 2008 08:58:20 +0000 (01:58 -0700)]
These function no longer needed.
Michael M Slusarz [Tue, 11 Nov 2008 08:03:21 +0000 (01:03 -0700)]
Update images driver.
image/* parts are now viewing correctly (only tested on popup window so
far).
Michael M Slusarz [Tue, 11 Nov 2008 08:02:42 +0000 (01:02 -0700)]
Hide status messages; better attachment list display
Michael M Slusarz [Tue, 11 Nov 2008 08:02:23 +0000 (01:02 -0700)]
Small fix to display properly (for now)
Michael M Slusarz [Tue, 11 Nov 2008 07:39:20 +0000 (00:39 -0700)]
Nits; expand API a bit.
Michael M Slusarz [Tue, 11 Nov 2008 07:38:55 +0000 (00:38 -0700)]
Clean up images Driver to new API.
Michael M Slusarz [Tue, 11 Nov 2008 07:38:26 +0000 (00:38 -0700)]
Horde_Browser:: is an optional dependency.
Michael M Slusarz [Tue, 11 Nov 2008 05:47:12 +0000 (22:47 -0700)]
More rendering fixes/improvements.
multipart/alternative driver now works on basic messages. Be more
liberal about what an 'attachment' is for now. Determination of what
should be shown inline ultimately rests with view code, not base
IMP_Contents library code. Also, it is necessary to determine the
rendered data before we can create the list of attachments (since the
attachments may already be displayed in the body).
Michael M Slusarz [Tue, 11 Nov 2008 05:45:58 +0000 (22:45 -0700)]
Fix html driver to work for now.
Michael M Slusarz [Tue, 11 Nov 2008 05:44:21 +0000 (22:44 -0700)]
Add a 'ids' output to render().
This parameter indicates the list of MIME IDs that this viewer's render
output was responsible for.
Michael M Slusarz [Tue, 11 Nov 2008 05:44:04 +0000 (22:44 -0700)]
Fix function declarations.
Michael M Slusarz [Tue, 11 Nov 2008 03:42:57 +0000 (20:42 -0700)]
Message display tweaking.
IMP 5 now can successfully display simple messages containing text/plain
and text/html data. Playing around with the formatting a bit, but my
desire is to *always* show the Mime part summary for every part we can
display inline and *never* show inline parts in the attachment list.
This is important because there is no other way to
strip/download/display in a new window the parts that are shown inline.
This goes back to the way we used to display things long ago (IMP 3),
but that is probably the better way to do this. However, this has much
work that can be done to it - for now, just need to be able to display
the parts so I can continue implementing other things.
Michael M Slusarz [Tue, 11 Nov 2008 03:42:31 +0000 (20:42 -0700)]
Fix several typos.
Michael M Slusarz [Tue, 11 Nov 2008 00:11:45 +0000 (17:11 -0700)]
Phpdoc; first crack at _buildMessage().
First attempt at writing the code that will rebuild a Horde_Mime_Message
object with all embedded parts expanded. This is more of a placeholder
than anything else since I probably won't get to PGP and S/MIME
rendering for awhile.
Michael M Slusarz [Tue, 11 Nov 2008 00:04:48 +0000 (17:04 -0700)]
Phpdoc; use is_null().
Michael M Slusarz [Mon, 10 Nov 2008 23:42:05 +0000 (16:42 -0700)]
Use new Horde_Mime_Viewer API.
Michael M Slusarz [Mon, 10 Nov 2008 23:38:33 +0000 (16:38 -0700)]
More API tweaking.
Add the ability to get embedded parts. Phpdoc. Have render() deal with
setting all necessary default return values.
Michael M Slusarz [Mon, 10 Nov 2008 22:56:06 +0000 (15:56 -0700)]
Add Horde_Mime::mimeIdArithmetic().
Michael M Slusarz [Mon, 10 Nov 2008 22:12:22 +0000 (15:12 -0700)]
Reworking Driver API some more.
Michael M Slusarz [Mon, 10 Nov 2008 22:12:07 +0000 (15:12 -0700)]
More MIME->Mime conversions
Michael M Slusarz [Mon, 10 Nov 2008 21:46:37 +0000 (14:46 -0700)]
More MIME->Mime fixes. More work on render API.
Rendering API is starting to solidify. Give calling code full control
over the information to parse. Determine inline/info rendering status
when obtaining summary information.
Michael M Slusarz [Mon, 10 Nov 2008 19:51:36 +0000 (12:51 -0700)]
Remove CVS header tags.
Michael M Slusarz [Mon, 10 Nov 2008 19:29:18 +0000 (12:29 -0700)]
Update IMP_Spam
Michael M Slusarz [Mon, 10 Nov 2008 19:18:33 +0000 (12:18 -0700)]
Horde_Mime_MDN -> Horde_Mime_Mdn