bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] Email


From: Alain Magloire
Subject: Re: [bug-mailutils] Email
Date: Thu, 27 Mar 2003 15:42:33 -0500 (EST)

> 
> I am interested in the mailutils package.
> 
> I was looking through the manuals and did not see how to "attach" and
> "detach" files from the messages
> they were sent with.
> 
> Can someone provide me with a shortcut description of how attachments
> are added to messages
> and how attachments are "removed" and saved from a message.
> 

Look at mailutils/example/mimetest.c
and the header
mailutils/include/mailbox/message.h

In brief, messages are already view as multipart or you can test
if they are multipart i.e. attachements
        int message_is_multipart     __P ((message_t, int *));

if the message is multipart you can get the count:
        int message_get_num_parts    __P ((message_t, size_t *nparts));

and get each part(the second argument is the part you want):
int message_get_part         __P ((message_t, size_t, message_t *));






reply via email to

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