[MlMt] creating a smart mailbox that is choosy about attachments
Benny Kjær Nielsen
mailinglist at freron.com
Wed Oct 1 17:37:08 EDT 2014
On 1 Oct 2014, at 12:08, Jason Davies wrote:
> [background]
>
> I thought this would be fairly straightforward but seem not to be able
> to get the logic right. This is partly because X-attachment-type
> doesn't work as I expected (I thought I could write 'docx' in there
> but that returns nothing).
You should be able to match on any header in a message, but it's tricky
to match on a subset of a header if there is no specifier available for
it by default.
> […]
>
> AT this point I have tried to think how to check what you could write
> as
>
> If attachment count is 1
> and attachment name is image001.png
> then exclude from smart mailbox
>
> But I can't translate that successfully into smart mailbox rules.
> Sometimes there are multiple word docs, for instance and there may be
> a signature graphic - or not.
>
> I'm currently trying it by having multiple smart mailboxes which is
> the only way I see to exclude things but that is also not turning out
> as I hoped...;)
I would probably need some concrete example to precisely understand what
you are trying to do, but it's a good idea to create separate smart
mailboxes to separate each matching issue.
It is very tricky to match on attachments for various reasons. It's
tricky to even count the attachments as done for `Attachments-Count`.
One thing to note is that when you try to match on headers of
attachments (or any other subpart of a message) then you need to use the
“All Body Parts” toggle in the comparison popup. This ensures that
MailMate looks beyond the headers of the root headers of each message.
But this does not cover all use cases since it's very hard to combine
conditions for a single subpart.
--
Benny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20141001/b963c620/attachment.html>
More information about the mailmate
mailing list