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
  • 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

Reply
  • 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

Children
No Data