[EMAIL PROTECTED] wrote:

> Does anybody know how (or has written something) to handle multipart email
> messages? I mean things like listing, extracting attachments from a message
> when reading it, or composing an email message consisting of a number of
> attachments?
>

do http://www.rebol.org/email/detach.r                                 ; just
do the script
  mb: open pop://your-name:[EMAIL PROTECTED]    ;  open your mailbox:
    msg: import-email first mb
; import the entire message
  blk: detach
msg                                                                   ; create
block of pairs: name-of-attachement, content

foreach [name content] blk [write/binary name to-string content]  ; write the
stuff to your hd ....


see ya,

-pekr-

>
> Thanks
>
> Mauro

Reply via email to