Skip to Content
Menu
This question has been flagged
917 Views

What is the best method to ignore incoming emails that are not replies in v14? I configured an incoming POP mail server. Replies work just fine, but I'd like to silently ignore all the emails that are not replies without creating a record. My model extends mail.thread. Overriding message_new does not seem a good option because its return value should be the id of the newly created thread object. I tried to return None or zero, but it did not work. Checked the code in mail_thread.py, and it seems I should modify the message routing to achieve what I want, but that seems too intrusive. I am wondering if there is a solution that I did not consider.

Another option could be to always return a constant id from message_new with a thread that would suck up all the messages that are not replies, but that seems messy. I'd like to have some clean solution.

Avatar
Discard

i got the same problem. did you find a solution?