bug-mailutils
[Top][All Lists]
Advanced

[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 18:48:47 +0200 (CEST)
User-agent: SquirrelMail/1.5.1 [CVS]

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));
}


thanks for your help!

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 2:00 AM
>> To: address@hidden
>> Subject: [bug-mailutils] folder names with spaces?
>>
>>
>> Hi
>>
>>
>> I'm just starting to work with the mailutils library. Great stuff!
>>
>>
>> However, in a short test program it seems like folder names with
>> spaces in it are handled incorrectly; the space seems to be
>> interpreted as 0 character. I use an IMAP server; when I issue a
>> A100 LIST INBOX * command via
>> telnet I get a complete list with names including spaces; when use
>> the folder_list in a c-program names are just cut off by the first
>> space.
>>
>> I'm sure I do something wrong here, but please help me out.
>>
>>
>
> Can you send the response also, for specials chars like SPACE, '{'
> etc .., the string should have been quoted, something like:
>
> * LIST () "/" "Deleted Messages"
>
>
>
>
>
> _______________________________________________
> Bug-mailutils mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-mailutils
>
>






reply via email to

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