Hi Sean, thanks for the prompt response.
The trouble with that is that --insert is defined "relative to the
top-level directory given by the value of database.mail_root.", whereas
the maildir is a full filesystem path.
Seems better to me to do a deprecation cycle. It's noisier short term,
but cleaner longterm.
The other open question here is that "notmuch insert" on its own
defaults to delivering at the top level, whereas notmuch-slurp-debbug
wants to use the "inbox" folder just below the top level.
I'm personally fine with the default delivery location changing, but if
you think we ought to default to something like --folder=inbox
--create-folder i'd be willing to do that too.
If we go the --folder=inbox --create-folder route, then we'd need to
decide whether the passthrough arguments would *append* to
--folder=inbox --create-folder, or whether they would *replace*
--folder=inbox --create-folder. I'd lean toward replacement in that
case.
Also, what would you like this configuration key to be named? I was
thinking "insert_args".
So, four questions:
a) how to deal with existing maildir configuration key?
(i prefer emitting a warning and falling back to old behavior)
b) what should the config key be named?
(i prefer "insert_args")
c) where to place the new messages?
(i prefer the "notmuch insert" defaults, but could be
"--folder=inbox --create-folder")
d) if messages are placed by default via "--folder=inbox
--create-folder", how should the config key interact with the default
args?
(if we get to this question, i prefer replacement)
Let me know what you prefer and i'll see whether i can offer a patch in
the coming days.