Here is where I'm at...
detach-image: func [
"detach an image file from the contents of an email"
email-contents [string!] "the content of an email"
][
image-code: copy []
if find/any email-contents {image/jpeg} [
parse/all email-contents [thru {base64^/^/} copy text to {==} (append
image-code text)]
]
insert image-code "64#{" append image-code "}"
]
>>img: detach-image msg/content
>>write/binary %img.jpg img
Still does not display an image in a browser and is unreadable by an image
viewer.
-Ryan
- [REBOL] Re: %detach.r norsepower
- [REBOL] %detach.r Re:(2) allenk
- [REBOL] %detach.r Re:(2) sterling
- [REBOL] REBOL/Core for Dummies ralph
- [REBOL] %detach.r Re:(3) RChristiansen
- [REBOL] %detach.r Re:(4) jeff
- [REBOL] %detach.r Re:(5) RChristiansen
- [REBOL] detach-image: func (was: %detach.r... RChristiansen
- [REBOL] detach-image: func (was: %det... larry
- [REBOL] detach-image: func (was: ... larry
- [REBOL] solved (was detach-image: ... RChristiansen
- [REBOL] solved (was detach-ima... allenk
- [REBOL] solved (was detach-ima... larry
- [REBOL] solved (was detach-ima... allenk
- [REBOL] solved (was detach-ima... bhandley
- [REBOL] solved (was detach-ima... bhandley
