Re: reopening a stream with OP_HALFOPEN

2004-12-02 Thread Mark Crispin
On Thu, 2 Dec 2004, Tomas Pospisek's Mailing Lists wrote: Hmm - this is starting to be interesting for me. So this means that I could switch from mailbox to mailbox by opening them READONLY and that this would not issue internally an open/close on the stream and thus not require a re-authenticat

Re: message/rfc822 attachments include headers in both header and body?

2004-12-02 Thread Mark Crispin
On Thu, 2 Dec 2004, Charles Dorner wrote: Strange, I thought section numbers worked differently. So then, assuming that an e-mail has a single embedded message, I would want section 2 for mail_fetch_header and section 2.1 for mail_fetch_body? If an email consists solely of a single embedded mess

Re: message/rfc822 attachments include headers in both header and body?

2004-12-02 Thread Charles Dorner
To get the first body part of the message text (as in a encapsulated MIME message), you need to add ".1" to the section specifier. Strange, I thought section numbers worked differently. So then, assuming that an e-mail has a single embedded message, I would want section 2 for mail_fetch_head

Re: message/rfc822 attachments include headers in both header and body?

2004-12-02 Thread Mark Crispin
On Thu, 2 Dec 2004, Charles Dorner wrote: On both questions, you guessed correctly; I was more focused on why the body was the header+body together. As long as this is the appropriate behavior from c-client, everything is jolly. I had previously implemented the obvious hack to just count the h

Re: message/rfc822 attachments include headers in both header and body?

2004-12-02 Thread Charles Dorner
On both questions, you guessed correctly; I was more focused on why the body was the header+body together. As long as this is the appropriate behavior from c-client, everything is jolly. I had previously implemented the obvious hack to just count the header and remove that prefix from the bod

Re: message/rfc822 attachments include headers in both header and body?

2004-12-02 Thread Mark Crispin
On Thu, 2 Dec 2004, Charles Dorner wrote: When it is recieved, c-client returns the headers in calls to both mail_fetch_header and mail_fetch_body when given the section number for the embedded message. Is this supposed to happen or is there a problem in the message that I need to reformat part

message/rfc822 attachments include headers in both header and body?

2004-12-02 Thread Charles Dorner
I'm trying to determine if I'm making a mistake in formating or if this is normal behavior. Create an e-mail, add a part, take the forwarded e-mail, put the text in part->body with type TYPEMESSAGE and subtype "rfc822". send the message. When it is recieved, c-client returns the headers in cal

Re: How to manage custom flags for IMAP messages

2004-12-02 Thread Mark Crispin
On Thu, 2 Dec 2004, Shawn Walker wrote: How do I manage custom flags for IMAP messages. I want to be able to set "\Forwarded", "\ReplyToAll", etc on a message and be able to see them using c-client. You can not use "\Forwarded" or "\ReplyToAll". You can, however, use "Forwarded" and "ReplyToAll"

How to manage custom flags for IMAP messages

2004-12-02 Thread Shawn Walker
How do I manage custom flags for IMAP messages. I want to be able to set "\Forwarded", "\ReplyToAll", etc on a message and be able to see them using c-client. Thanks, Shawn

Re: reopening a stream with OP_HALFOPEN

2004-12-02 Thread Tomas Pospisek's Mailing Lists
On Wed, 1 Dec 2004, Mark Crispin wrote: On Wed, 1 Dec 2004, Tomas Pospisek's Mailing Lists wrote: ... but - are you saying that I don't even need to change into HALFOPEN mode in order to be able to append messages to any kind of mailbox without the "Status: O" flag being set? That I just have to