geary/src
Michael James Gratton f1c797650f Ensure we always use the one, same codepath when decoding text content.
This introduces the Geary.RFC822.Part class, which provides a place to
MIME entity body decoding code so it can be reused when needed. It also
provides a place to put common GMime to Geary object conversion, and
apply some common policy decisions, such as what is the default content
type if none is specified.

* src/engine/rfc822/rfc822-part.vala: New Part class that represents a
  MIME entity. Move code for both decoding entity body from
  RFC822.Message and code for cleaning content filename from RFC822.Util
  to here. Convert GMime entity header objects into their Geary
  equivalents and make available as properties. Provide a common means of
  determining the content type of the part if not explicitly set.

* src/engine/rfc822/rfc822-message-data.vala (PreviewText.with_header):
  Construct a RFC822.Part and use that for decoding preview text. Swap
  args to make some more sense and update call sites.

* src/engine/rfc822/rfc822-message.vala (InlinePartReplacer): Simply pass
  through an instance of a RFC822.Part rather than the multi-arg list,
  since that has all the data needed by replacers.

* src/engine/imap-db/imap-db-attachment.vala (Attachment): Require and
  use RFC822.Part instances for obtaining attachment bodies rather than
  GMime.Part instances. Update call sites.
2018-05-10 13:53:24 +10:00
..
client Ensure we always use the one, same codepath when decoding text content. 2018-05-10 13:53:24 +10:00
console Ensure console and mailer are built w/ same args as client under Meson. 2017-12-12 15:56:31 +11:00
engine Ensure we always use the one, same codepath when decoding text content. 2018-05-10 13:53:24 +10:00
mailer Ensure console and mailer are built w/ same args as client under Meson. 2017-12-12 15:56:31 +11:00
sqlite3-unicodesn Remove --enabled-deprecated vala warnings, fix a bunch of them. 2018-01-15 16:17:11 +11:00
CMakeLists.txt Ensure we always use the one, same codepath when decoding text content. 2018-05-10 13:53:24 +10:00
geary-version.vala.in
meson.build Remove C warning suppression hack from meson build. 2018-04-15 21:56:02 +10:00