On Wed, 2 Apr 2003, Ben Schumacher wrote:
>Got it! It appears that this is the result of an invalid regexp.
>Apparently, the regexp library with whatever platform you're using,
>Andreas, is more forgiving than the one on FreeBSD 4.5. I have an
>extremely simple diff that fixes this issue. Not that I've figured this
>out, I think I can move ahead with replacing Courier.
>BTW- On my previous mention of std::strings being inefficient, I can
>tell you right now that this code:
> regex += "[^\\" + DELIMITER + "]*?";
>Will require a GCC3 compiled binary to call malloc up to (or above) 5
>times. If I recall correctly, each time you do "" + "", it causes 3
>mallocs. It is much more efficient (system call-wise) to use var +=
>"blah", instead, and just use multiple lines.
I read about this in a book the other day, and yes - I agree. I'll see
what I can do.
>In this particular section of code, its probably not a huge problem,
>since its not called repeatedly (toRegex is only called in a couple
>places, from what I've seen), but similar style in other places could
>cause problems. Trust me. I'm not trying to be a pain here.
>At any rate. BincIMAP seems to rock, so far. Thanks for all your hard
>work Andreas.
Cool. :-)
Andy
>bs.
>
>On Wednesday, April 2, 2003, at 09:16 AM, Ben Schumacher wrote:
>> Andreas-
>>
>> On Wednesday, April 2, 2003, at 01:19 AM, Andreas Aardal Hanssen
>> wrote:
>>>> I'm having problems with subscriptions to my mailboxes with BincIMAP
>>>> 1.1.2. Here's the output:
>>>> (...)
>>>> However, if I look at the server, I have this in my
>>>> ~/IMAPdir/bincimap-subscribed:
>>>> subscribed{0=INBOX,1="INBOX/blahr",2=blahr,3="blahr/blahr/blahr/
>>>> blahr/
>>>> blahr/fun"}
>>>> Can somebody explain to me why this might be happening? Any help
>>>> would
>>>> be much appreciated.
>>>
>>> I took the exact content of your subscribed-file and pasted it into
>>> my own
>>> depository, which is also IMAPdir. Got this:
>>>
>>> 1 OK LOGIN completed
>>> 2 lsub "" "*"
>>> * LSUB () "/" "INBOX"
>>> * LSUB () "/" "INBOX/blahr"
>>> * LSUB () "/" "blahr"
>>> * LSUB () "/" "blahr/blahr/blahr/blahr/blahr/fun"
>>> 2 OK LSUB completed
>>>
>>> I'm guessing there's something with your config or depository that is
>>> different.
>>>
>>> What is the content of your conf files? (bincimap.conf and .bincimap
>>> for
>>> your local user if you use it)
>>
>> See the attached file for my bincimap.conf -- didn't want to put it
>> inline. Its basically the default that's packaged, with a change to
>> allow plaintext auth in non-SSL mode. (Currently, I'm testing via an
>> SSH tunnel from my laptop to my server.)
>>
>>> Also, how is Binc invoked (tcpserver/xinetd) and how does the run file
>>> look?
>>
>> I'm doing tcpserver from the command line, for right now. Here's the
>> line:
>>
>> tcpserver -v -c 100 -u 0 -g 0 -HDRP 0 2143
>> /usr/home/staff/ben/src/bincimap-1.1.2/src/bincimap-up
>> --conf=/usr/local/etc/bincimap/bincimap.conf --logtype=multilog --
>> /usr/local/bin/checkpassword
>> /usr/home/staff/ben/src/bincimap-1.1.2/src/bincimapd
>> --conf=/usr/local/etc/bincimap/bincimap.conf
>>
>> And still no luck. Any help would be much obliged.
>>
>> Cheers,
>>
>> bs.
>>
>
>
>
--
Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP | Nil desperandum