From: Jani Nikula <jani@nikula.org>
To: Arun Isaac <arunisaac@systemreboot.net>, notmuch@notmuchmail.org
Subject: Re: notmuch-emacs: Fcc to top-level directory given by database.path
Date: Mon, 02 Oct 2017 19:03:54 +0300 [thread overview]
Message-ID: <8760bxiljp.fsf@nikula.org> (raw)
In-Reply-To: <41bd216a.ADkAADT7Si8AAAAAAAAAAAPvrI0AAAACwQwAAAAAAAW9WABZ0Tyw@mailjet.com>
On Mon, 02 Oct 2017, Arun Isaac <arunisaac@systemreboot.net> wrote:
> Mark Walters <markwalters1009@gmail.com> writes:
>
>> Incidentally, I think "/" is an alternative for the fcc line which
>> already works, which is "\"/\" in notmuch-fcc-dirs.
>
> Perhaps, notmuch should be made to tolerate a "/" at the beginning of the
> Fcc folder argument. That is, notmuch should not complain about absolute
> paths, and it should interpret these as relative to the root. To
> maintain backward compatibility, we could add a "/" at the beginning if
> it is not already there.
>
> So,
>
> "/" => database.path
> "/sent" => database.path/sent
> "sent" => database.path/sent
>
> etc.
>
> Is this a better idea?
At the cli notmuch insert level, I'd actually rather do the opposite and
be even stricter about folder being relative. I just had to look at the
code for other reasons, and it seems to accept all sorts of weird combos
with "/" and "." that I think should be rejected. Or at the very least
sanitized. Otherwise we end up with filenames with "//" or "/./" in
them, probably confusing notmuch later on.
I'd argue notmuch insert --folder="" should Fcc to the mail store root,
but alas that doesn't work at the cli level. It doesn't appear to work
at the emacs level either, but perhaps notmuch-emacs could translate ""
to dropping the --folder argument? Could even add that as a choice
option in notmuch-fcc-dirs customization. Mark?
BR,
Jani.
next prev parent reply other threads:[~2017-10-02 16:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-23 9:37 notmuch-emacs: Fcc to top-level directory given by database.path Arun Isaac
2017-09-23 11:41 ` David Bremner
2017-09-23 12:08 ` Mark Walters
2017-09-23 14:52 ` Arun Isaac
2017-09-24 12:14 ` David Bremner
2017-09-25 15:25 ` Tomi Ollila
2017-09-30 6:24 ` Mark Walters
2017-10-01 19:06 ` Arun Isaac
2017-10-02 6:48 ` Mark Walters
2017-10-02 16:03 ` Jani Nikula [this message]
2017-09-30 9:03 ` Jani Nikula
2017-10-02 16:29 ` Jani Nikula
2017-10-04 9:30 ` Arun Isaac
2018-06-06 14:04 ` David Bremner
2018-06-19 9:06 ` Arun Isaac
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
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8760bxiljp.fsf@nikula.org \
--to=jani@nikula.org \
--cc=arunisaac@systemreboot.net \
--cc=notmuch@notmuchmail.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.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
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 read-only IMAP folder(s) and NNTP newsgroup(s).