bug-mailutils
[Top][All Lists]
Advanced

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

Re: [bug-mailutils] Email


From: Kidong Lee
Subject: Re: [bug-mailutils] Email
Date: Mon, 31 Mar 2003 14:28:41 +0900
User-agent: Mutt/1.4i

On Thu, Mar 27, 2003 at 03:42:33PM -0500, Alain Magloire wrote:
> > 
> > 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 *));
> 
> 

There is message_create_attachment() function in mailutils
but it can't attach file in existing message(message_t type).
(Actually I don't know how to do it. =)
and it seems there're no functions "removing" attach file in the message.

IMHO, it should be added the functions about attach file.
I.E, message_add_attachment(), message_remove_attachment() is needed.

What do you think?




reply via email to

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