bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] Re: IMAP protocol violation in 1.1


From: Simon Josefsson
Subject: [bug-mailutils] Re: IMAP protocol violation in 1.1
Date: Sat, 16 Aug 2008 13:06:27 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Sergey Poznyakoff <address@hidden> writes:

> Simon Josefsson <address@hidden> ha escrit:
>
>> Excellent!  ... almost.  The LIST command works a bit mysterious.  If I
>> have SELECTed INBOX, it appears to work fine,
>
> That is, in that case it worked wrong!
>
>> but not if I have closed
>> the mailbox?  Then it seems to list all files in my home directory.
>
> And then it worked correctly.  According to RFC 3501 (section 6.3.8):
>
>       An empty ("" string) reference name argument indicates that the
>       mailbox name is interpreted as by SELECT.
>
> SELECT interprets mailbox names according to usual UNIX rules, i.e.
> if a name does not have any directory components, it is looked up
> in the current working directory, which is always the user home
> directory for imap4d.  Therefore `LIST "" "*"' should list the mailboxes
> from the user home directory.
>
> The bug is that the LIST behavior may not depend on whether a mailbox
> was selected or not. Please, apply the attached patch to fix this bug,
> and the bug in FETCH parser you have encountered.

It solves both problems, thanks.

>> I think I'm fairly close to getting this up and running, I want a IMAP
>> server for my ~/Maildir/ hierarchy, and nothing outside that directory.
>
> This means, in other words, that you wish to change the IMAP's notion of
> the user home directory.  The only way to do that currently is by
> supplying a custom authorization method.  I'll see if I can supply
> another way of doing that.

Meanwhile, I'll create another user for the mail account.  Can't some of
the namespace parameters be used to restrict which folders imap4d sees?

/Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]