[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [bug-mailutils] folder names with spaces?
From: |
Willem Jaap Zwart |
Subject: |
RE: [bug-mailutils] folder names with spaces? |
Date: |
Thu, 30 Mar 2006 19:02:50 +0200 (CEST) |
User-agent: |
SquirrelMail/1.5.1 [CVS] |
Hi Alain
Thanks for your quick response and the pointer to the code; I will see
if a can do some hacking, uhh, bugfixing myself..
Willem Jaap
Alain Magloire wrote:
>
>
>> -----Original Message-----
>> From: address@hidden
>> [mailto:bug-mailutils-
>> address@hidden On Behalf Of Willem Jaap Zwart Sent:
>> Thursday, March 30, 2006 11:50 AM
>> To: address@hidden
>> Subject: RE: [bug-mailutils] folder names with spaces?
>>
>>
>> Hi Alain,
>>
>>
>> Sure, no prob:
>> directly to the IMAP server: A002 LISt "INBOX" "*"
>> gives
>>
>> * LIST (\HasNoChildren) "." "INBOX.Nescio
>> Ludens.Internet.Domains.Childcareafrika_org"
>> * LIST (\HasNoChildren) "." "INBOX.Nescio Ludens.Internet.Domains.-
>> Joker (registrar)"
>> * LIST (\HasChildren) "." "INBOX.Nescio Ludens.Internet.Domains"
>> * LIST (\HasChildren) "." "INBOX.Nescio Ludens.Internet"
>> * LIST (\HasNoChildren) "." "INBOX.Nescio Ludens.Coaching"
>>
>>
>> (amongst others)
>>
>>
>> Using the folder_list:
>>
>>
>>
>> Foldernaam INBOX.Nescio 12
>> Foldernaam INBOX.Nescio 12
>> Foldernaam INBOX.Nescio 12
>> Foldernaam INBOX.Nescio 12
>> Foldernaam INBOX.Nescio 12
>> Foldernaam INBOX.Nescio 12
>> Foldernaam INBOX.Nescio 12
>> Foldernaam INBOX.Nescio 12
>>
>>
>> And to prevent the next question :-), a code snippet:
>> status = folder_create(&folder,argv[1]); status =
>> folder_list(folder,"INBOX.*","*",&folders); if (status != 0) {
>> mu_error ("folder_list: %s", mu_strerror (status)); exit
>> (EXIT_FAILURE);
>> }
>> int i;
>>
>> for (i=0;i<folders.num;i++) {
>> printf("%s\t%s\t%d\n","Foldernaam",folders.element[i]->name,
>> strlen(folders.element[i]->name)); }
>>
>>
>>
>
> Very surprise this did not come up sooner ...
> I think we have a bug in our parsing code, probably by using the
> strtok(list_response, " ", ...); on the last argument.
>
> Hmm ... Usually Sergey and the other maintainers react quickly with a
> patch but if they don't, I'll happily try to but my old RH-5.2 and
> take a second look. The code should be in
> mailutils/libproto/imap/folder.c(imap_list) according the cvs
> hierarchy.
>
>
>
>
>
> _______________________________________________
> Bug-mailutils mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-mailutils
>
>
- [bug-mailutils] folder names with spaces?, Willem Jaap Zwart, 2006/03/30
- RE: [bug-mailutils] folder names with spaces?, Alain Magloire, 2006/03/30
- RE: [bug-mailutils] folder names with spaces?, Willem Jaap Zwart, 2006/03/30
- RE: [bug-mailutils] folder names with spaces?, Alain Magloire, 2006/03/30
- [bug-mailutils] folder names with spaces?, Willem Jaap Zwart, 2006/03/31
- RE: [bug-mailutils] folder names with spaces?, Alain Magloire, 2006/03/31