Not getting a BYE when a server disconnect

2004-12-28 Thread Shawn Walker
Does c-client send a BYE to mm_notify() or mm_log() when the server disconnect after x minutes of inactivity? I had Ethereal running and when I saw a FIN from the server, c-client never sent a BYE that the connection has been disconnected. --

IMAP NAMESPACE - How to get them?

2004-11-22 Thread Shawn Walker
How do I go about getting the IMAP NAMESPACE from c-client? I see GET_NAMESPACE, but I would like to get the list of NAMESPACE that the IMAP server return. -- -- For information about this mailing list, and its archives, see:

mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Shawn Walker
How do I get mail_fetch_fast() to get the ENVELOPE along with UID INTERNALDATE RFC822.SIZE FLAGS for IMAP, so this is what I want c-client to send to the server (UID INTERNALDATE RFC822.SIZE FLAGS ENVELOPE). Thanks, Shawn

Re: mail_fetch_fast() and ENVELOPE

2004-09-08 Thread Shawn Walker
Mark Crispin wrote: On Wed, 8 Sep 2004, Shawn Walker wrote: Because we have no way of knowing what messages that the user want to see. Outlook just say Give me the contents of this folder. I still don't understand. Are you writing replacement IMAP client code for the existing code in Outlook

Setting X-Flag in the header

2004-08-31 Thread Shawn Walker
How would I go about setting a X-Flag in the header? The setextendedheaders() apparently been nixed. Thanks, Shawn

charset table and how to use them

2004-06-24 Thread Shawn Walker
How can I utilize c-client charset table to convert characters? I know that utf8_text() can convert the characters, but I'm having mixed results. Thanks, Shawn -- -- For information about this mailing list, and its archives, see:

Re: charset table and how to use them

2004-06-24 Thread Shawn Walker
On Thu, 24 Jun 2004 11:42:26 -0700 (PDT), Mark Crispin [EMAIL PROTECTED] wrote: On Thu, 24 Jun 2004, Shawn Walker wrote: To do conversion from one non-UTF-8 character set into another non-UTF-8 character set, you can use the new utf8_cstocstext() routine (I forget if this made it into imap

RFC 1522 Encoding

2004-06-21 Thread Shawn Walker
Does c-client has any functions that can do mime encoding for to, subject and body of the message, like RFC 1522? Thanks, Shawn -- -- For information about this mailing list, and its archives, see:

Re: RFC 1522 Encoding

2004-06-21 Thread Shawn Walker
On Mon, 21 Jun 2004 10:53:11 -0700 (PDT), Mark Crispin [EMAIL PROTECTED] wrote: On Mon, 21 Jun 2004, Shawn Walker wrote: Does c-client has any functions that can do mime encoding for to, subject and body of the message, like RFC 1522? c-client has functions to do MIME encoding of bodies

Decode UTF-8 (and other) strings

2004-06-17 Thread Shawn Walker
I'm trying to use the utf8_mime2text() to convert a UTF-8 string to text. The sample string that I'm trying to convert is: =?UTF-8?Q?Us=C3=A9r T=C3=A9st?= The string translate to Usér Tést. mime2_text() is returning NIL because there is a space in the string. What is the correct method of decoding

3rd Party CAPABILITY Strings

2004-06-17 Thread Shawn Walker
How does c-client handle 3rd party CAPABILITY strings from the IMAP server? What I mean is what if there is a CAPABILITY string X-SUPPORT-SOMETHING? Thanks, Shawn -- -- For information about this mailing list, and its archives,

Re: Decode UTF-8 (and other) strings

2004-06-17 Thread Shawn Walker
On Thu, 17 Jun 2004 11:49:46 -0700 (PDT), Mark Crispin [EMAIL PROTECTED] wrote: On Thu, 17 Jun 2004, Shawn Walker wrote: I'm trying to use the utf8_mime2text() to convert a UTF-8 string to text. The sample string that I'm trying to convert is: =?UTF-8?Q?Us=C3=A9r T=C3=A9st

Re: Insert Embedded Messages

2004-06-10 Thread Shawn Walker
2004, Shawn Walker wrote: I'm trying to get c-client to see a embedded message that I have inserted in the BODY structure. I presume that you meant to say, I am trying to *send* an embedded message, but when I go to read the message that I have sent I see that it is empty. You apparently missed

Re: Fixed invalid pointer bug

2004-06-02 Thread Shawn Walker
The latest snap shot fixed the problem. On Wed, 2 Jun 2004 11:14:06 -0700 (PDT), Mark Crispin [EMAIL PROTECTED] wrote: On Wed, 2 Jun 2004, Shawn Walker wrote: In imap-2004/src/osdep/nt/tcp_nt.c, tcp_open() next need to be initalize to NULL before calling ip_nametoaddr(). If gethostbyname

Capability Strings from the IMAP Server

2004-05-28 Thread Shawn Walker
How can I get the CAPABILITY strings that is returned from the IMAP server from c-client? I want to be able to see what the IMAP server can do in order to vailidate that IMAP server can or cannot do. Thanks, Shawn -- -- For

How to upload a body to a folder?

2004-04-23 Thread Shawn Walker
I know there is a mail_append_full() that will upload a message to a folder, but the message has to be formatted into a string. How can I use rfc822_output() or one of the rfc822_* functions to convert the ENVELOPE and BODY into a string with out having to create a SMTP stream? Thanks, Shawn

Re: How to upload a body to a folder?

2004-04-23 Thread Shawn Walker
On Fri, 23 Apr 2004 11:58:03 -0700 (PDT), Mark Crispin [EMAIL PROTECTED] wrote: On Fri, 23 Apr 2004, Shawn Walker wrote: I know there is a mail_append_full() that will upload a message to a folder, but the message has to be formatted into a string. Now...as far as mail_append_full() arguments

Re: Compiling IMAP under Visual Studio

2004-02-01 Thread Shawn Walker
Compile c-client the normal way (nmake /f makefile.nt) to get the c-client directory created and all the files copied. Go to MSVC and create a project for c-client for static library and add the files in c-client (you can't add all of them, only the ones that c-client need, look in the makefile).

Re: c-client IMAP API and memory

2002-12-10 Thread Shawn Walker
Hello, You need to run the garbage collector to get the cclient to free the memory. To do the following code after you call mail_fetchbody_full(). // Run the garbage collection to free up memory in cclient mail_parameters(MailStream, SET_GETS, nil); mail_gc(MailStream, GC_TEXTS); On

Re: c-client IMAP API and memory

2002-12-10 Thread Shawn Walker
On 12/10/2002 at 10:47 AM Mark Crispin wrote: On Tue, 10 Dec 2002, Shawn Walker wrote: Then how does one get cclient to free the memory after it retrieve a VERY large message from the server? I debugged into cclient saw how the message is being stored in memory and how to free it and the only

Re: c-client IMAP API and memory

2002-12-10 Thread Shawn Walker
On 12/10/2002 at 11:11 AM Mark Crispin wrote: On Tue, 10 Dec 2002, Shawn Walker wrote: That is the problem. I have had several customers running low on resources when the application was downloading a very large INBOX folder (the folder contains several thousands messages with very large

How to create a folder with single quote ' (0x27)

2002-12-06 Thread Shawn Walker
How to create a folder with single quote ' (0x27)? I have encoded a folder name according to RFC 2060. The folder example is Boîte d'Envoi which get encoded to BoAO4-te d'Envoi but the Cyrus IMAP server reject the a Invalid name. Shawn --

How to set SET_READTIMEOUT

2002-11-12 Thread Shawn Walker
How to set SET_READTIMEOUT when there is no stream to begin with? I found a problem when attempting to connect to a SSL port (993) but the user never specified the port is SSL so it's trying to connect with a regular connect (like using port 143). The select() never timeout in tcp_getdata()

Re: How to set SET_READTIMEOUT

2002-11-12 Thread Shawn Walker
PROTECTED] To: Shawn Walker [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 7:01 PM Subject: Re: How to set SET_READTIMEOUT On Tue, 12 Nov 2002, Shawn Walker wrote: How to set SET_READTIMEOUT when there is no stream to begin with? Since SET_READTIMEOUT sets a global

SSL For Windows

2002-11-04 Thread Shawn Walker
Where is the document that explains on how to enable SSL for the client for c-client? Thanks, Shawn -- -- For information about this mailing list, and its archives, see: http://www.washington.edu/imap/c-client-list.html

mail_append_full() and UID?

2002-07-11 Thread Shawn Walker
Is there anyway to figure out what the new message number UID is without having to to using MAILSTREAM.nmsgs and use mail_uid() to get it? Sometimes mail_append_full() never call mail_exists() that updates the number of messages on the server. The message was successfully uploaded to the