bug-mailutils
[Top][All Lists]
Advanced

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

Re: Munging mailboxes


From: Alain Magloire
Subject: Re: Munging mailboxes
Date: Sun, 16 Dec 2001 10:42:09 -0500 (EST)

> 
> On Saturday 15 December 2001 23:02, Sam Roberts wrote:
> > Bonjour,
> >
> > Quoting Michael Schuerig <address@hidden>, who wrote:
> > > I'm interested in mailutils mostly for its mailbox/folder handling
> > > capabilities. Tasks I'd like to use it for are similar to this:
> > > Extract attachments from each message in a folder; save it to a
> > > file in some given directory; replace the attachment part of the
> > > original message with a link to the saved file.
> >
> > mailutils hasn't been used for this kind of thing a lot, AFAIK, so
> > the APIs aren't always there, or publically exposed, or documented.
> 
> Hm, I think, then, a good strategy for me is to just wait. I don't want 

8-)
The project is still work in progress, and making good progress.

> to go into mailutils core development, and fortunately I'm not in a 
> hurry doing the mailbox stuff.

For what is worth, I've commited in mailutils/examples/mimetest.c
an example to do the kind of stuff you want.
The example(mimetest) will print out the entire mailbox, indenting
the subparts of messages, with some headers. If there is an attachment
it will save it in the current director, if there is no name for
the attachment it will create a temporary file "msg-xxx".

Credits should go to Dave Inglis, he wrote the orignal code
with the mime parsing stuff.





reply via email to

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