Email to Case not working for forwarded emails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhilash.kumar.niit
    Senior Member
    • Sep 2024
    • 132

    #1

    Email to Case not working for forwarded emails

    Hi my email to case is not working in case of email forwarder due to email auto-reply headers .

    how can i fix this if i can not remove the auto-reply headers from the outlook mailbox.
    Also suggest how to change the code if needed as i am new to espo and would not be able to override the extension code.

  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9644

    #2
    Hi,

    It's in the core Espo. It's not very easy to override in an upgrade-safe way (though possible). It would require some effort.

    The dirty fix is to modify this method: https://github.com/espocrm/espocrm/b...Fetch.php#L137

    But it will be overridden after upgrade.

    Comment

    • abhilash.kumar.niit
      Senior Member
      • Sep 2024
      • 132

      #3
      Can you guide how can i override this so that i don't get reverted back after update.

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9644

        #4
        You would need to bind a custom FetcherFactory for the group account service. Here's how it's done in the default bining: https://github.com/espocrm/espocrm/b...nding.php#L344

        In the custom FetcherFactory you will need to bind a custom BeforeFetch hook. The custom BeforeFetch Hook can call the default BefereFetch Hook and then modify parameters to prevent case creation skipping.

        Comment

        Working...