Feature request. Useful e.g. when there are many photos attached to email. Other clients can do it (I think, Thunderbird, gmail, the Bat). Reproducible: Always
Sounds liek a nice feature, patches are welcome. An implementation of this feature should probably build upon the MIME part walking code (see src/UiUtils/PartWalker_impl.h), implementing a new visitor which only cares about the visitAttachmentPart() event. E-mail messages are not just "a text body" with "some attachments"; they are a recursively defined tree structure with arbitrary nesting and some parts which usually happen to be attachments.
Thank you for endorsement.
I did as you suggested, Jan, and implemented an AttachmentVisitor as a subclass of UiUtils::PartVisitor. Seems to work fine! One minor question: Do we need to treat the case of a message/an attachment being larger than 2GB? I use a ProgressPopUp to indicate the download. In Gui/AttachmentView.cpp partIndex.data(Imap::Mailbox::RolePartOctets).toULongLong() is used, but ProgressPopUp/QProgressBar take int type.
Trojitá is no longer maintained, please switch to a maintained alternative like https://apps.kde.org/kmail2/ Sorry for the inconveniences.