Subject: questions about c-client. If wrong place then, what is the right place for this.

From: [email-masked]
Date: Sun, 18 Apr 1999 07:29:13 -0400

Hi,
I am not sure if this is the right place for my questions.   
I am trying to use the c-client  code to receive and parse email messages. 
I can get messages but I am having problems with parsing them.  My main
problem is with attachments.
I would like to get one "section" at a time from a message. I was trying to
use mail_fetch_text() but I could get it to bring only all the text since I
did not know how to specify the "section" correctly.
   
I have the following questions:
1.  How do I know how many sections a message has?
2.  How do I know the section’s names/value?
3.  What is the relation between sections and "body parts"?
4.  Am I using the right function?

I have read the internal.txt which comes in the imapd directory but I still
had trouble.

Any help will be appreciated.
Thanks Avi

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Michael Talbot-Wilson <[email-masked]>
Date: Sun, 18 Apr 1999 21:19:53 +0930 (CST)

> I have read the internal.txt which comes in the imapd directory but I still

I'm not totally clear on what you are trying to do, but

(a) The parsing of MIME attachments is specified in several RFCs - check
the RFC index.

(b) Consider writing a local mailer, e.g. in Perl or Tcl.  Your incoming
mail is seen first by the SMTP server, then by a local mailer (delivery
agent), then by Pine or another MUA.

Even it it's not to be the end product, a custom local mailer can make it
easy to test your parsing.

(c) Consider Procmail and Deliver.