Email to Case not working for forwarded emails

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

    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
    Member
    • Mar 2014
    • 8832

    #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.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • abhilash.kumar.niit
      Member
      • Sep 2024
      • 82

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

      Comment

      • yuri
        Member
        • Mar 2014
        • 8832

        #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.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...