-
Notifications
You must be signed in to change notification settings - Fork 14
Format options/alternatives for <time> and <sender> #49
Comments
If we have just one tag for a time then I think that it should be either local one as it is now or ISO8601. If there are more tags for a time then this is a possible proposal:
|
Regarding sender name. Here is my opinion similar to the time. If we have one tag then it should be as it is now with name and email. If we have more tags then a possible proposal is:
|
I think the proposals are good in either direction, and I would defer to you @MarioKusek or anyone that wanted to do the work (I call this rule "Implementor's choice" -> if you are going to implement it I will get out of the way :-) ), and I would happily merge it |
The proposal seems concise and consistent. That would give the user the best options to choose from. |
My personal take on the issue was to use a place holder in the formal |
@dnicolodi I agree with you that flexible format would be the best solution but as you said JS has problems with date formating. |
@MarioKusek I support the addition of an ISO date and time format option to thunderlink, I can see myself using it in some contexts. That said, I filed #63 because - from my point of view - all of a sudden the @mikehardy I suggest that the old behaviour of |
In #63 (comment) @MarioKusek wrote:
The existing semantic mismatch is that the tag This mismatch was created by you in commit 8ce1350 lines 160 and 162 and subsequently merged. No, it wasn't the correct way to go, and it is in conflict with what you said you'd implement in #49 (comment) above. Perhaps this semantic mismatch is a bug to be fixed? |
Is there an half good JS package that implements something compatible with |
I found two implementations that do not seem too bad at a quick look: https://github.com/thdoan/strftime and https://github.com/samsonjs/strftime |
PRs happily accepted but please backwards compatible 😅 |
@mikehardy I have compared what I proposed and what is implemented. And there are differences. I proposed:
And implementation is the following:
This was my mistake in implementation In order to fix this we have two options:
@mikehardy What do you think we should do? |
Maybe I overlook something here. IMHO it'd be a non-breaking change, yes, but it is easily spotted and can easily fixed by the people. Is there a version 1.3 or 2.0 in the pipeline? Maybe combining this fix with a major release change is a viable approach? |
I don't think the add-ons have any kind of semantic versioning gate on updates so really there's no way for the user to know that the implementation is going to start returning different values. If different input returns different value, it's breaking, to me. As people trying to maintain this thing we have to be okay with breaking change though, so if we did a 2.0 and it was documented very clearly (a breaking changes section very near the top of the doc with a very short, very clear list of exactly what changed and what action to take, possibly linked to a larger separate page somewhere with full details if people wanted), then let's do it. Honestly I love this module and I want to shepherd it (in concert with all interested people here) well, but I have no real plans for it other than to keep it working. It has just over 1000 users based on the add-ons stats server so we shouldn't break it but this isn't really high-impact software compared with the other projects I work on with 1million+ installs :-). So let's maintain perspective and just not break people's daily workflow without good reason is my plan |
So there won't be further format options without a v2.0? 😢 |
Oh - I was just cleaning up stale issues in general. Right now thunderlink appears to be in a middle place where it doesn't work (yet) on modern thunderbird but there is potential for future support. I don't see the point in spending time on something that is not possible to support in current versions though, sorry. |
I'd like to ask for format options.
1/10/2020 - 10:46:18 AM Karl Voit <Karl.Voit@example.com>: This is a test email
is my current result when I'm using<time> <sender>: <subject>
.I'd love to have this instead:
2020-01-09 Karl Voit: This is a test email
Therefore:
Thanks a lot.
The text was updated successfully, but these errors were encountered: