Closed Bug 1446003 Opened 7 years ago Closed 7 years ago

Error in using Reply with template in filters

Categories

(Thunderbird :: Untriaged, defect)

52 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1334980

People

(Reporter: massimilianomancini.firenze, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 Steps to reproduce: 1. Add a new template to be used as an standard answer 2. Add a new filter with TO IS <address> that is a server side defined alias of my real address, action Reply with template. The template of step 1 is selected 3. Apply the filter Actual results: Filter doesn't work. This is the log "[15/03/2018 16:18:29] Operazione filtro non riuscita: "Sending reply aborted" con il codice di errore=0x80004004 durante il tentativo: Applicato filtro "nuovo indirizzo" al messaggio da <Sender name><sender@example.com> - test a 15/03/2018 16:18:27 risposto " Translated is something like: "[15/03/2018 16:18:29] Filter operation not accomplished: "Sending reply aborted" with error code=0x80004004 during attempt to : applied filter "<filter name>" to message from Sender <sender@example.com> - test at 15/03/2018 16:18:27 replied" Expected results: the filter is supposed to reply to the sender with selected template
Yes, this is a problem we already know. This doesn't work if you don't have an identity configured which matches the recipient. You're talking of a "server side alias". Try to read the long story in bug 1334980.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Read the long story. Added a proper identity Resolved Thank you
You only read it, but I suffered through it. Before it just failed silently, the "Sending reply aborted" was added later in bug 1350607.
(In reply to Jorg K (GMT+2) (bustage-fix and urgent reviews only) from comment #1) > Yes, this is a problem we already know. This doesn't work if you don't have > an identity configured which matches the recipient. You're talking of a > "server side alias". > > Try to read the long story in bug 1334980. I want to reply to suppliers who send generic mails to themselves or to an empty recipient or to a generic address (this_is_not_really_me@) but with 500 BCC's. Daily I get about a 100 similar mails, always from the same senders. Why am I not allowed to reply them and tell them to just sod off ? If they do not respect GDPR and offer no option to unsubscribe, what is there to be done? If you send the same mail manually, some senders will adapt their mailing list. Imho the issue in TB is not resolved..
Can you confirm, please, that this bug or limitation is still present in current versions of Thunderbird. v52.9 for example. I created a filter to send an automated reply using a template. But the sending of the reply fails with error 80004004. Reading this bug discussion above implies that I need an identity configured that matches the recipient of the autoresponse. I assume "an identity" means an entry in the Thunderbird address book. My issue is that I manage several management listserv email addresses (actually distribution lists) and am a recipient on the distribution lists. When a users emails the distribution list to contact the IT managers all at once, I'd like the user to get a confirmation that their email was received and will be responded to. These users are not all in my address book. I understand that what I am seeking is best done at the level of the email server, but have been told that our Exchange server does not have the capability of sending autoresponses to emails sent to distribution lists. It looks like I can't use Thunderbird to configure an autoresponse either. Is that correct?
Yes, the limitation is still present, it was actually introduced in bug 904478 for security reasons. Yes, you need an identity and no, not an address book entry. See "Tools > Account Settings", click on bold account name on the left, "Manage identities". There is no "auto-response" in TB, the "reply with template" is as close as you get.
Thank you for the quick response and this complete explanation.
Hello I already have an identity named "myemail@mydomain.com" but the issue remains. Specifically: I have a filter called "Out of office" which replies with a template if an email arrives with a "to" of "myemail@mydomain.com". This template gets sent successfully if "Filter before Junk classification" is selected. When I change this to "Filter after Junk classification" (I am trying to stop the template getting sent to spammers) the template is not sent at all and I get the following error in the Filter Log: [30/08/18 11:18:48] Applied filter "Out of office" to message from "Joe Blogs" <jblogs@somewhere.com> - Joe at 30/08/18 11:11:27 replied [30/08/18 11:18:48] Filter Action Failed: "Sending reply aborted" with error code=0x80004004 while attempting: Applied filter "Out of office" to message from "Joe Blogs" <jblogs@somewhere.com> - Joe at 30/08/18 11:11:27 replied
Puzzling. Surely "after junk" and "before junk" filtering are very different code paths, but in the end they call nsIMsgComposeService::ReplyWithTemplate(). The abort error logging was added here: https://hg.mozilla.org/releases/comm-esr52/rev/31c45068f1556c74c1ccca567e213447689bbbaf and the aborting itself was added here: https://hg.mozilla.org/comm-central/rev/79e74959cca2#l1.174 Do you also move the non-junk message you want to auto-reply to with your filter?
Hello Jorg K No, only junk gets moved to the Junk folder. Non junk email stays in the Inbox. Jason

Limitation is still present in version 102.9.1

I can reproduce this error and I can also make it work to some degree.

In the Message Filter:

  • If I set : 'Filter before junk classification':

  • Result: The filter works as expected, but is not desirable as it means you may have an issue by auto replying to everything that comes into an Inbox.

  • If I set: 'filter After junk classification':

  • Result: it fails with same error code "Sending reply aborted" with error code=0x80004004

Whilst it is preferable to use 'After' junk classification for obvious reasons as an auto reply may not want to be sent to spam or people just prospecting for business, it is unavoidable until fixed.

This is a really odd situation because you might expect the opposite - you might expect no auto reply if 'filter before junk classification' so that it prevents sending to every email you receive. But you would not expect to stop an auto reply to potentially all good emails aka 'filter after junk classification'. Just a thought.

One workaround:

  • set : 'Filter before junk classification':
  • 'From' 'is in an address book' and select name of address book.

You can add more address books, but be careful to select 'Match any of the following' so it means FROM in any of the address books.

This would now only reply to people who are in any of the address books which should help to not include spam speculative emails.
Obviously this is not as perfect as 'after' junk classification, but it is an improvement.
If that is desirable then this workaround maybe one answer around the problem.

You need to log in before you can comment on or make changes to this bug.