Commit Graph

305 Commits

Author SHA1 Message Date
b16e1b62a2 Bug 726203 - Incorrect part ID used for multipart/related attachments 2015-03-09 14:30:44 +01:00
3f403cae3f Bug 743410 - White-spaces lost in plain text message printouts 2015-02-18 14:24:48 +01:00
b2b9f8c465 Bug 744444 - Typo (encrpyted) in translatable strings 2015-02-17 19:37:41 +01:00
e95f67eb8a S/MIME mail parser not used, but compiled
Due to missing config.h the ENABLE_SMIME was not declared, thus the type
for the S/MIME parser was not registered, neither used, which showed
S/MIME signed or encrypted messages as attachments, instead of deciphering
their content.
2015-02-12 12:07:31 +01:00
a4af2d6aee Postscript attachments not shown in message preview
The application/postscript mime type had been handled by the text-hightlight
module, but thinking of it, it doesn't make much sense, because most users
would prefer to see the content rather in a postscript viewer, than
the source of the postscript file, thus this change removes the mime type
from the text-hightlight module. There had been also issues about thinking
that certain parts had been handled, while they did not, which this change
fixes as well.

The issue had been reported downstream at:
https://bugzilla.redhat.com/show_bug.cgi?id=1187327
2015-02-09 18:08:29 +01:00
5130f2110e Bug 606239 - Better indication of signed and/or encrypted received email 2015-02-06 10:21:12 +01:00
b4013262be Message credits are put on the end of quoted content instead of on its beginning.
I received one message and on its end there was the paragraph element
left opened:

    </p><p></body></html>

When we appended the credentials after it:

    </p><p></body></html><span class="-x-evo-to-body" data-credits><pre>credits</pre></span>

Now WebKit tried to do its best to parse, fix and load the content correctly that
resulted in:

<p><span class="-x-evo-to-body" data-credits></span></p><pre>credits</pre></body></html>

Clearly, we will fail when moving the credits to right place as we are
expecting the the credits are inner part of the span. So set the
credentials into the data-credits attribute (as there it will be
resistant against this behavior) and rework the part that's handling it.
2015-02-02 10:57:15 +01:00
f28acf2728 EMailFormatterQuote - Close the span element instead of wrongly creating the new one 2015-02-02 10:57:15 +01:00
ee68b0ff25 EMailFormatter - Fix the debug output 2015-02-02 10:57:15 +01:00
110bac4a51 Bug 736950 - Message with empty body and attachment shows body as attachment.dat 2014-11-19 21:47:54 +01:00
80055cfdbe EHTMLEditor - Headers and credits are in wrong order when forwarding a message or using the inline reply
Mark the headers and citations whe inserting them and restore them on
the right position.
2014-10-17 14:00:58 +02:00
137eee309f format_full_headers: Avoid possible memory leak
The variable could be allocated, but not always freed.
2014-09-10 12:59:56 +02:00
bcc3a1c7e6 Add missing chain-up-s to parent's constructed() method
Plus a little code cleanup for easier grepping.
2014-07-17 12:46:38 +02:00
50bda1bad2 Replace GtkStyle usages with GtkStyleContext
This makes evolution depend on theme-defined named colors, namely:
   theme_bg_color
   theme_base_color
   theme_fg_color
   theme_text_color
   theme_selected_bg_color
   theme_selected_fg_color
   theme_unfocused_selected_bg_color
   theme_unfocused_selected_fg_color
If it's not defined, then a fallback color is used, in the worse case
one of the fallbacks defined in evolution itself.
2014-07-07 12:51:41 +02:00
74366fc820 Bug 731872 - EWebView: Use named colors from themes 2014-06-23 11:39:46 +02:00
2cd604b86b Bug 731604 - Recursive inline-PGP-signed text not shown properly 2014-06-18 16:52:49 +02:00
8650fb139a Bug 540362: [webkit-composer] Use webkit for composer
Merge wip/webkit-composer branch into master.
2014-06-09 16:32:25 +02:00
d6dcec1b55 Bug 731321 - Missing custom types when loading .ui definition 2014-06-06 12:02:13 +02:00
668745ff49 Bug 730738 - Extra new line at the beginning of the message in Edit as New 2014-06-03 14:43:01 +02:00
8692b1cb72 Add an --enable-code-coverage configure option to enable gcov support
When enabled, this will compile all libraries/binaries with the necessary
gcc and ld flags to enable code coverage support using gcov.
2014-03-25 12:04:58 +01:00
9cea547597 Missing attachment button for attachments of a known type
If there was a known formatter for the attachment's mime type, the attachment
content was shown inline, without the attachment button, instead of it being
shown collapsed and with the corresponding button. All that caused by a variable
overwrite and a related memory leak.
2014-03-14 14:19:39 +01:00
130b1b00ec Don't close base stream when destroying a CamelFilterOutputStream.
GFilterOutputStream, from which CamelFilterOutputStream is derived,
defaults to closing its base stream when the instance is finalized.

That makes sense in the general case, but CamelFilterOutputStreams are
usually temporary wrappers on a more permanent base stream, so we need
to remember to override the default "close-base-stream" property value.

I was tempted to just make CamelFilterOutputStream override the default
automatically, but I decided against it because my long term plan is to
drop CamelFilterOutputStream for GConverterOutputStream which also does
not override the "close-base-stream" default.  The closer the semantics
of the two classes match, the easier porting will be in the future.
2014-03-10 12:45:17 -04:00
c53fbc0b8f Miscellaneous cleanups. 2014-03-02 19:36:01 -05:00
f4bb7d7748 EMailFormatter: Use GOutputStream instead of CamelStream. 2014-02-28 14:38:11 -05:00
5c60d57082 Replace 'interface' with 'iface' in the code
Win32 headers have a #define for 'interface', which breaks the build
when this word is used in the code, thus replace it to 'iface',
the same way as GLib or GTK+ code use to have it. (See bug #722068.)
2014-02-26 16:15:21 +01:00
197c8e1274 EMailParser: Forgot to unref CamelSession 2014-02-20 20:10:44 +01:00
bc2fd7b356 Bug #724437 - Content-Disposition inline confuses message formatter 2014-02-18 12:37:12 +01:00
b48e21d9aa Stop using deprecated gtk-stock items 2014-02-12 20:47:07 +01:00
614d161805 Bug #724023 - Run EMailFormatter in the main/UI thread
Any GtkWidget creation or manipulation should be done exclusively
from the main/UI thread, thus make sure it is done that way.
Of course, evolution can freeze for a little time (depends on the message
size), until its formatting is done. It's unnoticeable with usual messages.
2014-02-10 16:04:27 +01:00
93e98a60f6 Fix duplicate #includes 2014-01-21 20:10:47 +01:00
b21733d067 Bug 721545 - License text contains obsolete FSF postal address 2014-01-07 16:05:51 -05:00
45a31136e9 Remove audio-inline module.
Drop our explicit gstreamer requirement and merge audio support directly
into libevolution-mail-formatter.  We now use the HTML5 <audio> tag and
let WebKit show much nicer playback controls, with volume and seeking.
2013-12-05 12:09:51 -05:00
570c637480 Fix/mute issues found by Coverity scan
This makes the code free of Coverity scan issues.
It is sometimes quite pedantic and expects/suggests some
coding habits, thus certain changes may look weird, but for a good
thing, I hope. The code is also tagged with Coverity scan
suppressions, to keep the code as is and hide the warning too.
Also note that Coverity treats g_return_if_fail(), g_assert() and
similar macros as unreliable, and it's true these can be disabled
during the compile time, thus it brings in other set of 'weird'
changes.
2013-11-15 09:06:57 +01:00
3c30fb1747 Convert libemail-engine to a single-include model.
Use: #include <libemail-engine/libemail-engine.h>
2013-11-11 12:07:43 -05:00
4ea43b34a8 Move EMailImageLoadingPolicy to e-mail-formatter-enums.h.
libemail-engine doesn't need to know about this enum.
2013-11-11 08:29:20 -05:00
4c2233114d Rename e-mail-enums.h to e-mail-engine-enums.h. 2013-11-11 08:29:20 -05:00
e8f7f03ed2 Follow-up fix for bug 711532.
Content-Disposition of the test case is honored now, but still not the
Content-Transfer-Encoding.
2013-11-06 13:01:49 -05:00
465050f57e Bug 711532 - Infinite recursion from message/news attachment
This is only a partial solution for the test case the bug report.
The message/news part of the test case is also Base64-encoded, but
Evolution (or Camel) is not decoding it properly.  Still digging.
2013-11-06 11:24:41 -05:00
7a6be11ea6 Miscellaeous cleanups. 2013-10-20 11:15:41 -04:00
bf757a668a Signature/encryption bar may not inherit text color from theme
The "signature bar" overrides background color, thus it should
override also text color, to make sure the text will be always
readable. This could break with dark theme, which uses light
text color.
2013-10-11 10:04:57 +02:00
e16d918af5 EMailParserMultipartSigned: Rework obtaining the signature protocol.
CamelMultipartSigned no longer has a public 'protocol' member.  Obtain
it instead by checking the CamelContentType for a 'protocol' parameter.
2013-10-02 15:16:46 -04:00
6a65912679 Bug #699997 - Show unreferenced images in multipart/related parser 2013-09-30 14:09:45 +02:00
6d68c41da7 Bug #689787 - Prefer-plain can hide message body for composer 2013-09-27 15:05:59 +02:00
969d801553 Bug #707392 - Only very first Collapse/Expand button in message header pane works
When we were collecting the elements for adding the onclick event
listeners, we were using the webkit_dom_document_get_element_by_id
method, but when email had multiple TO, CC or BCC headers it was
returning just the first elements with given id. To fix this we moved
to webkit_dom_*_query_selector methods that give us more powerfull
element extraction from document.

When toggling the visibility of header row, we are now operating just
in the row that contains the clicked element.

This patch also remove the suffixes from all  __evo-moreaddr ids.
2013-09-13 11:23:14 +02:00
68f27ce0c8 Bug #706008 - Workaround gnome-shell style change on focus change
Avoid redrawing (thus loosing the selection and scroll position) of
preview window on style change by defining the colors through CSS styles.
On style change we just update the CSS color definitions and preview will
update itself without redraw.
2013-09-12 15:29:58 +02:00
ca67414c22 Bug 705194 - Failure to decrypt inline encrypted GPG messages
Commit 514736f27e in 3.9.5 broke inline
PGP encrypted messages, because the parser was treating the encrypted
message content as an attachment even though the content type is just
text/plain.  This ensures the message content is treated correctly.
2013-08-01 14:12:03 +02:00
524a5dd1a8 empe_text_plain_parse() cleanups.
Return type is a boolean, not an integer count.
2013-07-19 12:39:57 -04:00
514736f27e EMailParserMessage: Better handle message bodies as attachments.
Simo Sorce sent me an interesting case where the MIME type of the
message itself was image/gif, but the image was not being shown.

If the EMailPart representing the message body is marked as an
attachment, wrap it as such so it gets added to the attachment
bar but also set the "force_inline" flag since it doesn't make
sense to collapse the message body if we can render it. */
2013-07-08 17:57:19 -04:00
a260d79633 EMailFormatterQuoteExtension: Don't be cute with struct declarations.
Declare the instance and class structs normally so Gtk-Doc can make
sense of it.
2013-07-07 09:28:50 -04:00
3774c9c4c1 EMailFormatterPrintExtension: Don't be cute with struct declarations.
Declare the instance and class structs normally so Gtk-Doc can make
sense of it.
2013-07-07 09:26:25 -04:00