Doveadm field for message body without attachments
Aki Tuomi
aki.tuomi at dovecot.fi
Wed Jan 10 21:18:04 EET 2018
> On January 10, 2018 at 11:49 AM Athanasios Viennas <aviennas at vtopia.gr> wrote:
>
>
>
> Happy new year to all,
>
> what is the message field in doveadm data model representing the body
> without attachments? I need to dump the message body without the
> attachments so as to avoid unnecessary size of the exported files and
> while I am also not interested in this part of the message.
>
> with kind regards
> Athanasios
>
You could try doveadm fetch -u victim body.0 (or body.1)
another alternative is to parse bodystructure to figure out which body part is the one you want and do doveadm fetch -u victim body.partno
sub-parts are numbered as body.part.subpart
Aki
More information about the dovecot
mailing list