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: Tue, 1 Apr 2003 09:45:55 -0500 (EST)

> 
> Thank you very much. 
> This is what I'm looking for.
> 
> Mark said what I'd like to say. =)
> I didn't know about mime object because 
> there's no explanation about mime object in mailutils documentation.
> 
> I think current documentation does not have detail explanation enough.
> and I hope it will be upgraded.
> 

Loud and clear.

The plan is this:
- the next major version will provide some cleanup;
rewriting of some major pieces *and* updating the documention.
- Sergey is working on a minor version, to update
  the MH support(can not confirm), for 0.3

Of course, this will vary according to the free times of the developpers.
And looking at mine ... not that good 8-(



> Thanks
> 
> 
> On Mon, Mar 31, 2003 at 11:07:23AM +0300, Sergey Poznyakoff wrote:
> > Hi,
> > 
> > > 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. =)
> > 
> > The function message_create_attachment only creates an attachment, it
> > does not actually attach it to another message. To attach a message,
> > use mime_add_part function. The scenario is:
> > 
> > 1) Create a MIME object using mime_create
> > 2) Create your attachments (either directly or using one of
> > the functions from attachment.c) and append them to the MIME
> > object using mime_add_part().
> > 3) Call mime_get_message(). It will return the message object
> > associated with the MIME object. This is what you need: a message
> > with all the attachments included.
> > 
> > See the following sources for examples:
> > 
> > libsieve/actions.c    build_mime() function at line 126
> > mh/mhn.c              edit_mime() at line 2156.
> > 
> > > IMHO, it should be added the functions about attach file.
> > > I.E, message_add_attachment(), message_remove_attachment() is needed.
> > 
> > I doubt if it would be a reasonable thing to do. Attachments should
> > be added to the MIME object, which helds all the information necessary
> > for the proper encapsulation. Message_t simply lacks the necessary
> > mechanisms, and it shouldn't have them, anyway.
> > 
> > Regards,
> > Sergey
> > 
> > 
> > 
> > 
> 
> 
> _______________________________________________
> Bug-mailutils mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-mailutils
> 


-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!





reply via email to

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