On Thursday, December 30 at 12:10 PM, quoth Nathan J. Mehl:
> 
> I would think that this would just be a matter of escaping the "."
> character when passing the CREATE message to the server... is that not
> the case?  CourierIMAP never seemed to have a problem with it...

First, CourierIMAP - Courier IMAP uses the period "." as a separator 
between folders, so asking Courier to create "=foo.bar" is equivalent to 
asking Binc to create "=foo/bar".

Looking at binc's source... it looks like there's a special error 
condition for having a period in the folder name. Not sure what the deal 
there is, but escaping the period won't work. And really, since Binc 
get's to define the special characters (and defines only / as a special 
character), there's no reason for . to be an invalid character other 
than to remind people that it's not Courier and it's not going to create 
a sub-folder. Which seems pretty silly to me.

You can try digging into your binc source---open up depot.cc, go down to 
around line 492 or so, where it looks like this:

        } else if (mm != "" && mm.substr(1).find('.') != string::npos) {
                setLastError("Invalid character '.' in mailbox name");
                return "";

And delete those three lines. Recompile binc, and let'er rip---that 
might fix your problem. (and it might expose other problems, who knows, 
I haven't tested it.)

One thing to make sure of... in mutt, there is a variable 
"imap_delim_chars" for all the variables that mutt will treat as a 
folder separator. It seems mutt's imap support doesn't pay much 
attention to the separator character that the server supplies. In any 
case, the default value for imap_delim_chars is "/." which means mutt 
does something weird with it. So, if you're going to be using mutt with 
Binc and you want to use periods in the name of folders, mutt needs to 
know that "." is not a delimiter, so you need to set 
imap_delim_chars="/" so that mutt displays things properly.

~Kyle
-- 
Once again the conservative sandwich-heavy portfolio pays off for the
hungry investor!
-- Zoidberg

Attachment: signature.asc
Description: Digital signature

Reply via email to