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

cbthunderlink link is not working in 78.8.1 #32

Closed
tekvsakdan opened this issue Jun 22, 2021 · 7 comments
Closed

cbthunderlink link is not working in 78.8.1 #32

tekvsakdan opened this issue Jun 22, 2021 · 7 comments

Comments

@tekvsakdan
Copy link

tekvsakdan commented Jun 22, 2021

Thunderbird 78.8.1

Issue:

  • thunderlink is working
  • cbthunderlink is not working

Cbthunderlink link doesn't work if a sender has hypen in the e-mail address. The commit c12c92d doesn't solve the issue anymore.

@tekvsakdan tekvsakdan changed the title cbthunderlink link is not working in 78.8.1 and suggested fix cbthunderlink link is not working in 78.8.1 Jun 22, 2021
@CamielBouchier
Copy link
Owner

Is this still somehow relevant? If not I will close "soon".

Camiel B.

@tekvsakdan
Copy link
Author

tekvsakdan commented Apr 11, 2022

This is still an issue. cbthunderlink links doesn't work on some messages, on the other side thunderlink links works perfectly. I also install 1.4.0 version and the symptoms are the same.

I suspect it has something with the letter "-" inside e-mail address. For example, cbthunderlink doesn't work if mail was sent from no-reply@mail.goodreads.com, and it works fine if it is sent from info@ultramaraton.si.

I'm using Ubuntu 21.10 and Thunderbird 91.7.0.

@CamielBouchier
Copy link
Owner

Hi,

Normally I don't use cbthunderlink. So I did check and investigate some deeper on my installation.
Initially it didn't work at all for an address containing "-". It appears that the substitution of '-' in my code was the culprit.
So I changed code back as follows:

 if (link_type == 'cbthunderlink') {
        let decoded_link = atou(link)
        let date_auth = decoded_link.split(";")
        let the_date = new Date(date_auth[0])
        // See issue #10 for the replace.
        let the_author = date_auth[1]
        // CB XXX and out again: let the_author = date_auth[1].replace(/-/g, '')
        let the_query = {
            author   : the_author,
            fromDate : the_date,
            toDate   : the_date
        }

After that, it works at least again at my end.
The replacement was strange in the first place ...

Can you reproduce this at your end, rebuild and carefully analyze if there's still an issue and what it might be?

Camiel B.

@tekvsakdan
Copy link
Author

Now it works as expected :)

The issue with the "-" was in Thunderbird (database) before version 78. It looks like they fixed that.

@CamielBouchier
Copy link
Owner

Thanks for the feedback.
Just to be sure: "now it works" means the code as above in which '-' is not replaced by ''?
(and which is the one that works at my end as well)
Camiel B.

@tekvsakdan
Copy link
Author

Yes, without "-" replacement works as expected.

CamielBouchier added a commit that referenced this issue Apr 24, 2022
@CamielBouchier
Copy link
Owner

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

No branches or pull requests

2 participants