Home GnuPG
Diffusion GpgOL 5473a289cca0

Collect top content-type when parsing a mail

Description

Collect top content-type when parsing a mail

* src/mail.cpp (Mail::parsingDone_o): Store ct.
* src/mail.h (m_dec_content_type): New member variable.
* src/mimedataprovider.cpp (t2body): Set content type.
(MimeDataProvideR::get_content_type),
(MimeDataProvideR::set_content_type): New.
* src/mimedataprovider.h: Update accordingly.
* src/parsecontroller.cpp, src/parsecontroller.h
(ParseController::get_content_type): New.

Collecting the content type of the decrypted mail
helps us if we decrypt permanently.

The Mailstore indexer might be helped by this
change.

This addresses: