Commit Graph

58 Commits

Author SHA1 Message Date
Aleksander Machniak
9a2264ba0e Fix regression where messages with no text part (but e.g. application/zip) were not displayed as an attachment (#5357) 2016-07-15 09:47:07 +02:00
Aleksander Machniak
e8b6e726f6 Add message menu with viewsource and edit actions in message/rfc822 preview 2016-03-26 14:02:57 +01:00
Aleksander Machniak
ce3105c58f Reply/Reply-All/Forward/Change-format buttons for message/rfc822 preview 2016-03-24 17:07:31 +01:00
Aleksander Machniak
323fa20bc8 Message/rfc822 attachment preview (#5054) 2016-03-23 16:54:31 +01:00
Thomas Bruederli
4a408843b0 Protect download urls against CSRF using unique request tokens (#1490642)
Send X-Frame-Options headers with every HTTP response
2016-03-06 14:31:07 +01:00
Aleksander Machniak
4c0cb96a48 Enigma: Fix missing html/plain switch on multipart/signed messages (#1490649) 2016-02-07 13:30:48 +01:00
Aleksander Machniak
be346095a0 Fix handling of message/rfc822 attachments on replies and forwards (#1490607) 2015-12-17 09:12:06 +01:00
Thomas Bruederli
f7f75ff7d1 Unify detection of pgp/mime message part 2015-09-10 21:56:40 +02:00
Aleksander Machniak
63e7937d02 Change so rcube_message class does not depend on $_GET parameters 2015-09-10 08:53:11 +02:00
Aleksander Machniak
93e64008a6 Small code improvements 2015-08-05 09:30:51 +02:00
Aleksander Machniak
b92a66b3ee Make has_(html|text)_part and first_(html|text)_part methods consistent in arguments and functionality 2015-06-17 07:01:25 -04:00
Aleksander Machniak
a958748947 CS fixes 2015-06-07 15:26:33 +02:00
Aleksander Machniak
59d11dce33 Small code improvement 2015-05-20 09:51:11 +02:00
Aleksander Machniak
5b737d9f8d Fix bug where some unrelated attachments in multipart/related message were not listed (#1490355) 2015-04-17 11:05:06 +02:00
Aleksander Machniak
d61d668b64 Remove useless code 2015-04-08 08:57:21 +02:00
Aleksander Machniak
292292df32 Fix so unrecognized TNEF attachments are displayed on the list of attachments (#1490351) 2015-04-08 08:56:42 +02:00
Aleksander Machniak
98e4614b0d Fix so text/calendar parts are listed as attachments even if not marked as such (#1490325) 2015-04-06 13:10:06 +02:00
Aleksander Machniak
9af8e22b8e Plugin API: added message_part_body hook, fixes around message structure handling by plugins 2015-03-08 10:51:19 +01:00
Thomas Bruederli
ef29153a32 Improve display of pgp/mime and s/mime messges. Reverts commit f4154d91 2015-01-16 16:13:15 +01:00
Aleksander Machniak
9e4246d957 Code improvements and fixes (mostly unused variables and methods) 2014-11-16 14:04:53 +01:00
Aleksander Machniak
2883fcba2b Move TNEF decoder class to the Roundcube Framework (#1490055)
So, for now all dependencies of the Framework can be installed
with composer and we need only lib/Roundcube folder.
des.inc was never required and is less important since we do
encryption using openssl or mcrypt extensions.
2014-11-04 15:28:27 +01:00
Aleksander Machniak
d93019125c Allways call rcube_imap::set_folder() before rcube_imap::get_message_part() 2014-10-28 07:20:00 -04:00
Aleksander Machniak
68c41f1dff Fix regresion that caused double charset conversion in some messages (#1490121) 2014-10-28 09:06:29 +01:00
Aleksander Machniak
2da8300fb7 Correctly detect charset of attachment names in TNEF messages 2014-10-26 09:34:24 +01:00
Aleksander Machniak
2268aa676d Fix handling of uuencoded messages if messages_cache is enabled (#1490108) 2014-10-22 19:02:23 +02:00
Aleksander Machniak
48ba4414b3 Fix download of attachments that are part of TNEF message (#1490091)
Rcube_message_part::body content should never be modified by code out of the rcube_message.
Added convenient rcube_message::get_part_body() method, making rcube_message::get_part_content() deprecated.
2014-10-22 14:29:44 +02:00
Thomas Bruederli
188247894f Make multi-folder message identifiers work with folders containing commas 2014-04-08 19:11:12 +02:00
Thomas Bruederli
1d1fdcbf8c Fix splitting message identifiers into UID and folder values 2014-04-08 11:32:51 +02:00
Thomas Bruederli
e8cb51669a More fixes for multi-folder search (#1485234) 2014-04-07 16:24:37 +02:00
Thomas Bruederli
f8101fff1e Accept text/html parts inside multipart/mixed parts as HTML contents 2013-11-15 18:58:32 +01:00
Thomas Bruederli
596301c10b Reset $part_orig_mimetype variable in for-loop. This avoids attachments along with message/rfc822 parts being listed twice 2013-11-14 20:11:13 +01:00
Aleksander Machniak
5a2d2a6f75 Fix HTML part detection when encapsulated inside multipart/signed (#1489372) 2013-10-14 08:53:34 +02:00
Aleksander Machniak
170702fd13 We've encountered (malformed) messages with more than
one text/plain or text/html part here. There's no way to choose
which one is better, so we'll display first of them and add
others as attachments (#1489358)
2013-09-27 14:42:46 +02:00
Aleksander Machniak
ae853367ed Fix downloading binary files with (wrong) text/* content-type (#1489267) 2013-07-30 19:16:52 +02:00
Aleksander Machniak
bbd636740e Fix fatal error when parsing UUencoded messages (#1489119) 2013-05-23 15:34:51 +02:00
Aleksander Machniak
3725cfb245 Avoid uninitialized/unused variables 2013-05-07 15:12:22 +02:00
Thomas Bruederli
ddfdd8938d Extend fetched header block to 32K, require one of subjct, from or to headers 2013-04-25 13:01:13 +02:00
Thomas Bruederli
a021d6f187 Skip filename suffix check for embedded images; return blocked.gif instead of HTML warning when embedded (#1489029) 2013-04-10 23:12:23 +02:00
Aleksander Machniak
4fdaa02ac7 Fix handling of invalid characters in message headers and output (#1489032) 2013-04-06 19:28:47 +02:00
Aleksander Machniak
bd698341c4 Remove "HTML message" from attachments list while viewing a message in text mode (#1486939) 2013-04-03 09:17:03 +02:00
Aleksander Machniak
f111423755 Fix storing 'safe' flag on a message. The key for session value should include
folder name. A message with the same UID may exist in another folder.
2013-03-15 10:41:09 +01:00
Aleksander Machniak
0ef894ec29 Fix has_*_part() methods so they return same result no matter what
prefer_html option value is
2013-03-15 09:09:06 +01:00
Aleksander Machniak
574928200f Use $mime_parts not $parts in has_*_part() methods so detection is
correct no matter if prefer_html is enabled or not.
2013-03-14 13:20:28 +01:00
Aleksander Machniak
5c26bd49b1 Added rcube_message::has_text_part(), simplified has_html_part() so it always
works in "recursive mode" - removed $recursive argument.
2013-03-14 12:10:40 +01:00
Aleksander Machniak
567e45ba56 Fix HTML part detection for some specific message structures (#1488992) 2013-03-13 11:03:21 +01:00
Thijs Kinkhorst
8cfba1bb2a Test content_id with isset instead of a true/false value.
This broke html email in which one image had Content-ID: <0>, which is a
valid value but evaulates to false in this test.
2013-03-08 15:28:36 +01:00
Aleksander Machniak
ee89c6dff6 Display notice that message is encrypted also for application/pkcs7-mime messages (#1488526) 2013-03-02 16:13:08 +01:00
Thomas Bruederli
7ae7cdf195 Don't rely on Subject header only 2013-01-18 21:49:51 +01:00
Thomas Bruederli
4f9edbd799 Select 8 KB of message part for headers (to make sure we get them all) 2013-01-14 21:41:02 +01:00
Aleksander Machniak
cb0f030ae9 Support "multipart/relative" as an alias for "multipart/related" type (#1488886) 2012-12-30 13:09:52 +01:00