<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body><div style="font-family: sans-serif;"><div class="markdown" style="white-space: normal;">
<p dir="auto">Hi,</p>
<p dir="auto">this is a relatively old thread, but I'd like to put some focus on a new feature which I'd like to be used/tested since it involved a lot of changes to various parts of MailMate.</p>
<p dir="auto">On 12 Feb 2024, at 4:55, leo wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">Maybe it is possible to develop a bundle which extracts attachments to folders?</p>
</blockquote>
<p dir="auto">Yes, that is possible, but it's not easy. MailMate included an example of exporting messages (in the Command menu) which could be changed to export attachments. Luckily, there is now an easier way.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">But good to know I’m not alone here with this need….</p>
</blockquote>
<p dir="auto">I've had some very varied requests for different kinds of export needs. Hopefully, the new functionality will address most of those needs, but we'll see. I'll be interested in knowing its specific limitations.</p>
<p dir="auto">The new feature can be used in two different ways. Its direct use (after selecting some emails) is available via the “File > Export” menu item and its rule-based use is, of course, available in the Rules pane of any mailbox (as an action). Both have the same functionality, but the latter is triggered automatically.</p>
<p dir="auto">These are the options when doing an Export:</p>
<ul>
<li>Export: [ Messages || Attachments | Images | PDFs ]</li>
<li>Relative path: [ No subpath | Source/Mailbox path | Mailbox | Sender Address ]</li>
<li>Filename: [ Filename | Internal ID | Subject ]</li>
</ul>
<p dir="auto">The first option determines what to export, the second option let's you specify folders to be created (if they do not already exist) and the final option lets you control the file naming.</p>
<p dir="auto">Some of it is a bit proof-of-concept. All 3 options can be extended with more options using low-level configuration files, but let's first see what kind of needs they do not cover.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<p dir="auto">On 26 Jan 2024, at 19:25, Stefan Dorscht wrote:</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">I have a similar request here, I would like to export attachments from mails (with one or more attachments - some without attachments which shouldn’t be touched) to folders on my Mac.</p>
<p dir="auto">It would be ideal if all the attachments of each mail were placed in a single new folder.</p>
</blockquote>
</blockquote>
<p dir="auto">That's not covered by the above since this folder would then need a unique name like the internal ID.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<p dir="auto">It would be even better if this folder then also had the name of the sender of the mail.</p>
</blockquote>
</blockquote>
<p dir="auto">That part could be done with “Sender Address” for the relative path, but different emails from the same sender would then share this folder.</p>
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777;">
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #999999; color: #999999;">
<blockquote style="margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; border-left-color: #BBBBBB; color: #BBBBBB;">
<p dir="auto">From some incoming mail messages is there a way to extracts its attachments to a folder?</p>
<p dir="auto">I am thinking of setting up a Smart Mailbox, but in the <em>Actions</em> for the Mailboxes <em>Rules</em> I couldn’t find anything which acts on attachments…</p>
</blockquote>
</blockquote>
</blockquote>
<p dir="auto">This is possible now. Using the “Attachments” options, MailMate will pick any part of an email with a filename assigned in its headers (which I think is the most robust way to identify attachments). There's also support for just exporting images or PDFs, but more variants could be made if needed.</p>
<p dir="auto">--<br>
Benny</p>
</div>
</div>
</body>
</html>