This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Filtering some attachments in Outlook add-in

Former Member
Former Member
We have an issue with many e-mails we receive with embedded html signatures.

When filing in M-Files the message will obviously come up with multiple attachments (which is indeed the case). Is there an easy (or not so easy, via scripting ?) way to filter out those (say filter out everything jpg less than 50k) ?
  • Former Member
    Former Member
    I asked a question like that once, this is what support answered:

    We have further registry keys what allow you to filter the images. Perhaps you could find help from them meanwhile the improvement idea is being processed:

    Subkey: InclusionRules
    - additional rules for detecting attachments as embedded images
    - named keys, each with values "Filters" (REG_SZ) and "MaxFileSize" (REG_DWORD)
    - e.g., subkey "InclusionRules\My Rule 1", "Filters" = "*.bmp", "MaxFileSize" = 0 (0 means that file size is not considered and any size matches)
    => All BMP files are treated as embedded images

    Subkey: ExclusionRules
    - additional rules for NOT detecting attachments as embedded images
    - named keys, each with values "Filters" (REG_SZ) and "MinFileSize" (REG_DWORD)
    - e.g., subkey "ExclusionRules\My Rule 1", "Filters" = "*.png", "MinFileSize" = 10240 (0 means that file size is not considered and any size matches)
    => All PNG files that are 10KB or more are NOT treated as embedded images

    The above registry settings are the ones we currently have which can be used to filter how the file formats are handled.
  • Former Member
    Former Member
    Thanks - interesting, will give it a try !

    Are those "subkeys" for M-Files client or Outlook add-in ?
  • Former Member
    Former Member
    I don't know.
    I don't use these keys because in my situation I'm storing the emails as *.msg format and copy the main email fields into property fields.
    This way I can do a quick reading of the message (even in mobile app) and he attachments are indexed/searchable anyway.

    I'm curious about your findings doh!
  • Seems the instructions are missing registry key path and key name:

    Here's complete instructions (I did not test this though):

    Key name: HKLM\Software\Motive\M-Files\\Common\MSGConversion\EmbeddedImages
    Value name: UseDefaultRules
    Value type: REG_DWORD
    Value data: 0/1 (default = 1)

    Subkey: InclusionRules
    - additional rules for detecting attachments as embedded images
    - named keys, each with values "Filters" (REG_SZ) and "MaxFileSize" (REG_DWORD)
    - e.g., subkey "InclusionRules\My Rule 1", "Filters" = "*.bmp", "MaxFileSize" = 0 (0 means that file size is not considered and any size matches)
    => All BMP files are treated as embedded images

    Subkey: ExclusionRules
    - additional rules for NOT detecting attachments as embedded images
    - named keys, each with values "Filters" (REG_SZ) and "MinFileSize" (REG_DWORD)
    - e.g., subkey "ExclusionRules\My Rule 1", "Filters" = "*.png", "MinFileSize" = 10240 (0 means that file size is not considered and any size matches)
    => All PNG files that are 10KB or more are NOT treated as embedded images

  • Former Member
    Former Member
    HKLM\Software\Motive\M-Files\\Common\MSGConversion\EmbeddedImages

    So it is a machine wide setting. But I reiterate my question: server side or client side ??

    Something like that:

  • Former Member
    Former Member
    FWIW my setup as per above does not work.

    Did anyone manage this ? Is this something I can submit to support ?