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) ?
Parents
  • 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.
Reply
  • 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.
Children
No Data