Git Product home page Git Product logo

Comments (4)

flatcap avatar flatcap commented on June 19, 2024 1

Looks like I tidied up the date logic a bit too much. Sorry.

Please can you give branch [devel/padding] a try.

Thanks


I've changed the rules so that:

  • Plain: %d means this day (since midnight, local time)
  • Number: %0d means this day (since midnight, local time)
  • Number: %1d means in the last whole Day (24 hours)
  • Number: %3d means in the last 3 Days (72 hours)

Now I need to create some tests and clarify the docs.


NeoMutt running in three timezones: Los Angeles, London, Tokyo.
Each has a different view of which emails arrived "today".

image

from neomutt.

FilippoBonazziSUSE avatar FilippoBonazziSUSE commented on June 19, 2024

No worries. Yep, that branch fixes the issue, thanks for the extremely quick turnaround.

If I may make a suggestion, maybe you could leave the semantics of the %Nd variable to mean "N days since midnight local time" for any number N (with the default %d == %0d), and introduce a separate %ND variable to mean "N increments of 24 hours" (probably with the default %D == %1D in this case). The two definitions of "day" are distinct and have separate uses, so it could be useful to have both available.

If you think that would be too much, the current solution fixes the bug and works for me anyway.

from neomutt.

flatcap avatar flatcap commented on June 19, 2024

Great!

Thanks for the suggestions, I'll have a think (about how much more that'll be :-)

from neomutt.

FilippoBonazziSUSE avatar FilippoBonazziSUSE commented on June 19, 2024

Thinking about it for like another 30 seconds, you already have the %H variable, so adding a second variable %D that just multiplies that by 24 is kind of pointless. So probably %Nd could just be "N days since midnight local time" and a user could specify %NH with N = 24*x to go from hours to days ago.

from neomutt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.