Gnus development mailing list
 help / color / mirror / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: ding@gnus.org
Subject: Re: Specifying date _and_ time for a delayed article?
Date: Wed, 07 Oct 2020 09:34:28 -0700	[thread overview]
Message-ID: <87k0w2ro4r.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87wo07w5zh.fsf@tullinup.koldfront.dk>

Adam Sjøgren <asjo@koldfront.dk> writes:

> When I press C-c C-j to delay an article, I'm prompted like this:
>
>   "Target date (YYYY-MM-DD), time (hh:mm), or length of delay (units in mhdwMY): 3d"
>
> This is nice and flexible. In this particular case, I wanted to send an
> article on a specific date _and_ time.
>
> So I tried entering "2021-07-14 17:03:30", and Gnus happily accepted
> that. But if I look at the delayed article in nndraft:delayed, the
> header is:
>
>   X-Gnus-Delayed: Wed, 14 Jul 2021 08:00:00 +0200
>
> Hmmm.
>
> Wouldn't it make more sense to either use the date and time entered, OR
> at least reject the string as invalid, rather than changing the time to
> 08:00:00?
>
> What do you think, patches accepted?

In my opinion we should be trying to find and use some other, Emacs-wide
date-time prompt function, rather than writing something Gnus-specific.
Org also ships with Emacs, and it has very good datetime prompts, but it
could be a little too tied to Org, I haven't actually looked at it.

Anyway, maybe that function doesn't even exist yet, but I think that
would be a better approach!



      parent reply	other threads:[~2020-10-07 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-03 17:53 Adam Sjøgren
2020-10-04  5:57 ` Tim Landscheidt
2020-10-07 16:34 ` Eric Abrahamsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0w2ro4r.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).