Commit Graph

39254 Commits

Author SHA1 Message Date
c80966db00 Updated Galician translations 2013-06-10 10:22:15 +02:00
35582bf4e2 Bug 701669 - Bad assumption in prefer-plain module
For messages with a base MIME type of multipart/alternative, we were
hiding text/plain subparts based on the number of alternate subparts.

This assumption of course broke on a message with the following body
structure and a Plain Text Mode preference of "Show HTML if present":

    multipart/alternative
        text/plain
        text/plain

Instead, note when we've actually seen a text/html subpart and use that
to decide whether to hide the text/plain parts.
2013-06-08 11:53:02 -04:00
5cf06f855f EMailParserPreferPlain cleanups. 2013-06-08 11:31:30 -04:00
7b8a8a6a24 EMailFormatter: Remove the header API.
Use the EMailPartHeaders API instead.
2013-06-08 00:25:15 -04:00
06e391117a EMailFormatterQuoteHeaders: Avoid EMailFormatter header API.
Use e_mail_part_headers_dup_default_headers() to extract specific
headers to show in the desired order.
2013-06-08 00:25:15 -04:00
93d5cdd57a EMailFormatterHeaders: Avoid EMailFormatter header API.
Use e_mail_part_headers_dup_default_headers() to extract specific
headers to show in the desired order.
2013-06-08 00:25:15 -04:00
27c92e7f3d Add EMailPrintConfigHeaders.
This splits the print dialog's "Headers" tab into a separate widget.

EMailPrintConfigHeaders takes an EMailPartHeaders and displays its print
model, which is a representation of all message headers (except subject)
with an on/off flag for each.  The headers can be toggled and reordered,
and the changes are written back to the print model.

During printing, EMailFormatterPrintHeaders uses the same print model
to determine which headers to show and in what order (except subject).

This approach is much saner than the old method, which was trying to
manipulate WebKitWebView DOM directly to toggle and reorder headers.
This approach also happens to work, whereas the old method did not.
2013-06-08 00:25:15 -04:00
64388b6b82 Add e_mail_part_headers_ref_print_model().
Returns a GtkTreeModel of header names and values and visibility flags,
built from the CamelMimeMessage.  The tree model rows can be reordered
and toggled prior to printing.

Also add e_mail_part_headers_is_default() as a handy helper.
2013-06-08 00:25:15 -04:00
c5313b3614 EMailPartHeaders: Add a "default-headers" property.
This will replace the headers API in EMailFormatter.  Need a more
permanent place for headers since EMailFormatter is too disposable.

Also add an ESettingsMailPartHeaders class, which binds the new property
to the "show-headers" setting with a suitable mapping function to filter
out disabled header names.
2013-06-08 00:25:11 -04:00
bcfd1a9257 Make EMailPart and its subclasses extensible. 2013-06-07 15:47:14 -04:00
9a1265ea24 EMailFormatterQuoteHeaders cleanups. 2013-06-07 15:47:03 -04:00
257286b6ce EMailFormatterHeaders cleanups. 2013-06-07 15:47:03 -04:00
863fee6479 e_mail_formatter_format_header: Split the header param.
Split the _camel_header_raw struct parameter into separate "header_name"
and "header_value" string parameters, which is all the function actually
needs to work.
2013-06-06 14:08:21 -04:00
312d230cd2 e_mail_formatter_format_header: Remove unused CamelMedium param. 2013-06-06 13:54:42 -04:00
9e33bb1728 Bug #555130 - Redesign task editor 2013-06-06 15:57:38 +02:00
824f6a531d Updated Spanish translation 2013-06-06 12:25:21 +02:00
68e98137e0 Updated Galician translations 2013-06-06 11:23:55 +02:00
340b6b756e Updated Spanish translation 2013-06-06 10:39:44 +02:00
6be4901bae EMailPart: Add "part-list" property.
This is a weak reference to the EMailPartList to which the EMailPart
has been added.  The property is set by e_mail_part_list_add_part().

New functions:

  e_mail_part_ref_part_list()
  e_mail_part_set_part_list()
2013-06-05 16:38:31 -04:00
900ea24740 Remove EMailReaderHeader struct.
No longer used.

Also remove related helper functions:

  e_mail_reader_header_from_xml()
  e_mail_reader_header_to_xml()
  e_mail_reader_header_free()
2013-06-05 13:03:46 -04:00
3e8b6ddf8d Add "show-headers" settings key.
Replaces the "headers" key.  Whereas "headers" is an array of XML
blobs, the "show-headers" key is an array of string/boolean pairs.

Also update the appropriate places to get/set the new key.
2013-06-05 13:03:45 -04:00
d388f9b5cf ESettingsDeprecated: Fix missing handler ID assignment. 2013-06-05 13:03:45 -04:00
3d9bf47a24 Updated Marathi Translations 2013-06-05 15:09:52 +05:30
58d0ddcd87 Updated Greek translation 2013-06-05 08:50:53 +03:00
761ffd7d14 Added Aragonese translation 2013-06-05 00:02:32 +02:00
d54a3443d8 Bug 684302 - Prompt to close message window on reply should be inline
Pop-up dialog is far too intrusive.  Instead ask the question as an
inline alert in the message window, which does not interrupt the user.
2013-06-04 16:12:36 -04:00
5794c63f4f EMailBrowser: Add "close-on-reply-policy" property.
Mainly to avoid accessing GSettings directly from EMailBrowser.

Also add a "browser-close-on-reply-policy" GSettings key that replaces
"prompt-on-reply-close-browser", the difference being the new key uses
an enum definition compatible with EAutomaticActionPolicy instead of a
free-form string value.

And finally add an ESettingsMailBrowser class to glue things together.
2013-06-04 13:10:02 -04:00
0468161237 EMailDisplay cleanups. 2013-06-04 13:10:02 -04:00
f150d05119 EMailBrowser cleanups. 2013-06-04 13:10:02 -04:00
552952d2cc Define GEnumClass types for mail formatter/parser enums. 2013-06-04 13:10:02 -04:00
f925dac7c4 Add EAutomaticActionPolicy enum.
To have a proper GEnumClass registered for ask/always/never choices.
2013-06-04 13:08:45 -04:00
7953026efa Updated Slovenian translation 2013-06-03 21:26:06 +02:00
5b0e9e7791 Bug #250046 - Empty group address as recipient prevents message send
Empty group addresses were left as-is when sending an email directly,
not through Outbox, which could cause a send error through SMTP.
Expanding group addresses, or removing empty groups, from a list
or recipients before sending the message fixes the issue.
2013-06-03 19:22:03 +02:00
853c7125c1 Updated Spanish translation 2013-06-03 11:27:09 +02:00
63c778c2e4 Updated Norwegian bokmål translation 2013-06-03 09:25:06 +02:00
7701801f59 Remove deleted file 2013-06-03 09:22:34 +02:00
4792c683b0 EMailReader: Remove unused actions.
These are just Express Mode leftovers.

Also remove obsolete functions:

  e_mail_reader_get_enable_show_folder()
  e_mail_reader_enable_show_folder()
  e_mail_paned_view_set_enable_show_folder()
2013-06-02 17:10:30 -04:00
89d274e476 Remove unused EMailNotebookView.
This is just an Express Mode leftover.
2013-06-02 16:44:51 -04:00
a27c70e427 Add e_mail_reader_forward_messages().
Replaces em_utils_forward_messages().
2013-06-02 15:48:42 -04:00
13b2bd263c Add e_mail_reader_edit_messages().
Replaces em_utils_edit_messages().
2013-06-02 14:30:06 -04:00
43610e3431 Move "ask-reply-close-browser" prompt to EMailBrowser.
EMailReader is an interface and should not know about specific classes
that implement its interface.  Instead, EMailBrowser itself will prompt
in response to "composer-created" signals that include a source message.

This also removes the "destroy_when_done" parameter from
em_utils_forward_messages() since it's no longer needed.
2013-06-02 13:24:33 -04:00
f5e47561f9 EMailReader: Add a "composer-created" signal.
Emitted to indicate a composer window was created in response to a user
action on the EMailReader.  Examples of such actions include replying,
forwarding, and starting a new message.

If applicable, the source message (i.e. the message being replied to or
forwarded) is included in the signal emission.

New functions:

  e_mail_reader_composer_created()
2013-06-02 13:22:41 -04:00
1570f53d1e em_utils_edit_message: Change return type to EMsgComposer. 2013-06-02 11:58:08 -04:00
ca14cc115e em_utils_redirect_message: Return the EMsgComposer. 2013-06-02 11:58:08 -04:00
1b7fc9224b em_utils_compose_new_message(): Return the EMsgComposer. 2013-06-02 11:58:08 -04:00
540acdbfa9 Simplify em_utils_forward_message() arguments.
Replace the EShell and CamelSession arguments with a single EMailBackend
argument, from which both the EShell and CamelSession can be obtained.
2013-06-02 11:58:08 -04:00
603fb5ac71 em-composer-utils.c cleanups. 2013-06-02 11:58:05 -04:00
8564aef30c e-mail-reader.h: Remove unimplemented declarations.
These functions do not exist:

  e_mail_reader_get_formatter()
  e_mail_reader_set_formatter()
2013-06-02 08:24:43 -04:00
3e13439f90 Updated Galician translations 2013-06-01 23:07:03 +02:00
8d7a5a1b87 Add e_composer_header_table_ref_source().
Convenience function that works like e_source_registry_ref_source(),
but spares the caller from digging out the ESourceRegistry from the
header table.
2013-06-01 15:24:37 -04:00