[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] folder_create() on $HOME/Mail fails with ENOENT in C
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] folder_create() on $HOME/Mail fails with ENOENT in CVS code. |
Date: |
Tue, 13 Jul 2004 14:13:25 +0300 |
Joachim Nilsson <address@hidden> wrote:
> > But it effectively disables is_dir method for MH and maildir formats...
>
> Sorry, I don't follow, what do you mean? Does the method in
> mailbox/mbox/folder.c:_path_is_scheme() run for the MH and maildir
> formats as well?
There is a feature called 'mailbox format autodetection': if a mailbox
is specified by an absolute file name (as opposed to giving a fully
qualified URL) mailutils tries to detect the format of the mailbox
in question. In order to do so, the library tries each registered
format in turn and calls its `is_scheme' method until one of these
returns true or the list of formats is exhausted. With your patch applied,
autodetection will always end up on 'mbox:' handlers, no matter what
the actual mailbox format is.
Regards,
Sergey