[REBOL] [REBOL]How to remove email headers Re:(2)

2000-03-04 Thread tjohnson

Thanks Elan:
Your answers are always well-put and 
well-documented!!
regards
:)
Tim
At 02:30 PM 3/2/00 -0800, you wrote:
Hi tim:

message-with-headers: none
message-without-headers: none

forall inbox [
 message-with-headers: import-email first inbox
 message-without-headers: message-with-headers/content
]

or:

forall inbox [
 message-without-headers: get in import-email first inbox 'content
]


Note that message-without-headers will point at a different message body at
each iteration and will not preserve the last message. If you want to save
the message you will have to insert the messages one by one into a block.

messages: []

forall inbox [
 append messages get in import-email first inbox 'content
]

Also note that when a message is a reply to a previous message, the message
body may quote a message it is responding to and include that previous
message's headers in its own body. In this case you will end up with the
complete body of the message you received, including possibly quoted
headers of previous messages it responds to, provided they are included in
its body.



;- Elan  [: - )]





[REBOL] [REBOL]How to remove email headers Re:

2000-03-03 Thread giesse

[EMAIL PROTECTED] wrote:

 print first inbox

Try with:

  mail: import-email first inbox

Then you can access mail/content, as well as mail/to, mail/from
etc.

Ciao,
/Gabriele./
o) .-^-. (--o
| Gabriele Santilli / /_/_\_\ \ Amiga Group Italia --- L'Aquila |
| GIESSE on IRC \ \-\_/-/ /  http://www.amyresource.it/AGI/ |
o) `-v-' (--o



[REBOL] [REBOL]How to remove email headers Re:

2000-03-02 Thread icimjs

Hi tim:

message-with-headers: none
message-without-headers: none

forall inbox [
 message-with-headers: import-email first inbox
 message-without-headers: message-with-headers/content
]

or:

forall inbox [
 message-without-headers: get in import-email first inbox 'content
]


Note that message-without-headers will point at a different message body at
each iteration and will not preserve the last message. If you want to save
the message you will have to insert the messages one by one into a block.

messages: []

forall inbox [
 append messages get in import-email first inbox 'content
]

Also note that when a message is a reply to a previous message, the message
body may quote a message it is responding to and include that previous
message's headers in its own body. In this case you will end up with the
complete body of the message you received, including possibly quoted
headers of previous messages it responds to, provided they are included in
its body.



;- Elan  [: - )]



[REBOL] [REBOL]How to remove email headers Re:

2000-03-02 Thread Petr . Krenzelok

Hi :-)

try looking into import-email function, e.g. source import-email. But
you don't necessarily have to, as it's usage is very simple:

msg: import-email first inbox

print [ msg/from tab msg/subject tab msg/date]
print msg/content

or try looking into it by typing:

print mold msg

HopeThisHelps,

-pekr-

[EMAIL PROTECTED] wrote:

 The following code will check for email:
 How may I read the body of the email message
 into another variable, without the header?
 Thanks :) (code below)
 ;;
   either empty? inbox
   [
 print "No messages in inbox"
   ]
   [
 forall inbox
[
 print first inbox
 ;here I would like to write the
  ;body of the message (without the headers)
  ;to another variable
]
   ]
   close inbox
 ;;thank you all
 ;;tim