Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BCC list entry not expanded with empty "To:" address #167

Closed
RealRaven2000 opened this issue Jan 28, 2022 · 3 comments
Closed

BCC list entry not expanded with empty "To:" address #167

RealRaven2000 opened this issue Jan 28, 2022 · 3 comments
Assignees
Labels

Comments

@RealRaven2000
Copy link
Owner

If we use an address book list name in the BCC field, this is not turned into the actual recipients on send, if we also leave the "to" field empty. AS a workaround, it is possible to generate a SmartTemplate that sets the BCC automatically like this:

%header.set(bcc,"Friends <friends>")%

Use the name of the list on the left and within the < angle brackets >, just like Tb would do it when it auto-fills the address field when you type the list name.

You can send off this email without filling the "to" field which achieves a list mail with undisclosed recipients. However as long as SmartTemplates (2.17) is active you cannot do this manually as Thunderbird will not expand the list as long as To is not filled and take this literally - which will lead to the mail server rejecting the email.

@RealRaven2000 RealRaven2000 self-assigned this Jan 28, 2022
@RealRaven2000
Copy link
Owner Author

RealRaven2000 commented Jan 28, 2022

Here is a quick fix version. The problem was caused by "late deferred" variables that can be used when writing new mails and which update directly from the To:, Cc: and Subject: lines when hitting the "Send" button. The function GetComposeDetails() is called to retrieve and update the fields, unforunately it also undoes any list expansions. I have now added a call to expand recipients (which Thundebrird does / did when hitting the send button:

        let composeDetails = GetComposeDetails(); // Refresh subject and address fields
        expandRecipients(); // [issue 167] - refresh lists!

Here is a test version:
smartTemplate-fx-3.9.1pre10.zip

to install, [as always] drag download the zip file above and drag directly into Thunderbird Add-ons manager (without unpacking)

@RealRaven2000
Copy link
Owner Author

Just a note, I did submit a bug for Thunderbird originally here: https://bugzilla.mozilla.org/show_bug.cgi?id=1752543

I set it to RESOLVED INVALID of course as soon as I noticed that my Add-on caused it.

@RealRaven2000
Copy link
Owner Author

Fixed in 3.10.1 - released on 04/Feb/2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant