Hello Vagrant,

On Wed 16 Mar 2022 at 04:24PM -07, Vagrant Cascadian wrote:

> Not sure if this is an entirely different or related problem, but also
> having issues with 969697, this time getting none of the messages on the
> bug.

If the problem really is the lack of tilde expansion, it would be a
different bug, because tilde expansion not working would mean you get no
message, rather than some.

> So I tried the commandline interface instead, which had some curious
> messages:
>
>   $ notmuch-slurp-debbug 969697
>   WARNING: Folder does not exist, failed opening maildir folder 
> ~/Mail/debian/INBOX.debian-bugs/.

Erk, why doesn't it die at that point?!

> So, ~/Mail/debian/INBOX.debian-bugs/ definitely does exist, and seems to
> be a valid Maildir. If it matters, ~/Mail/debian is a symlink.
>
> My .config/mailscripts/notmuch-slurp-debbug contains:
>
>   maildir = ~/Mail/debian/INBOX.debian-bugs/
>
> Also not sure why it thinks the .mbox file is a read-only folder ... it
> appears writeable:
>
>   $ ls -latr .cache/devscripts/bts/969697.mbox
>   -rw-r--r-- 1 vagrant vagrant 11605 Mar 16 16:12 
> .cache/devscripts/bts/969697.mbox

It's just because it's opened read-only by the script.

> And Now I Tried Changing .config/mailscripts/notmuch-slurp-debbug to:
>
>   maildir = /home/vagrant/debian/INBOX.debian-bugs/
>
>
> Which at least works, with no errors or warnings from
> notmuch-slurp-debbug.
>
> The ~ for the homedir definitely *used* to be supported; been using it
> since at least ~debconf18 that way. :)

Hmm... I don't see how it could have worked before.  Does this fix it:

> diff --git a/notmuch-slurp-debbug b/notmuch-slurp-debbug
> index ad0db47..1568d9c 100755
> --- a/notmuch-slurp-debbug
> +++ b/notmuch-slurp-debbug
> @@ -50,7 +50,7 @@ if (-f $conf_f) {
>      $maildir = catfile $database_path, "inbox";
>  }
>  $maildir = $mgr->open(
> -    folder    => $maildir,
> +    folder    => glob $maildir,
>      access    => "a",
>      keep_dups => 1,
>      type      => "maildir"

-- 
Sean Whitton

Attachment: signature.asc
Description: PGP signature

Reply via email to