How can I implement the POP TOP command in Rebol?
[1/6] from: weyns:online:no at: 21-Sep-2003 9:58
I am new to Rebol and this list.
Rebol's POP functions are real easy to use.
My tests indicate that "import-email" fetches the entire email.
Help on the subject seems to confirm this:
>> help import-email
USAGE:
IMPORT-EMAIL data
DESCRIPTION:
Constructs an email object from an email message.
IMPORT-EMAIL is a function value.
ARGUMENTS:
data -- The email message (Type: string)
This is unfortunate for my goals as I am trying to make a spam filter that
need not first fetch the entire mai locally in order to figure out what to
do next. Pop's TOP command would be ideal for the job. How would one go
about implementing this in Rebol?
I have already managed one major part of this job which is kill every mail
that is over a certain size. Using /locals/size this was a no brainer and
nice and fast. After the big ones are deleted I'd like to scan the headers
only. Am I shooting way above my head?
Regards,
Conrad Weyns
[2/6] from: didec::tiscali::fr at: 21-Sep-2003 12:43
RE: How can I implement the POP TOP command in Rebol?
Hi conrad,
'Import-email construct an object base on the string you pass. This string can contain
all the message or just part of it (the header).
If you want to know how to do, and perhaps as a beginning for your own work, I made a
Rebol script to delete spam mails directly on the server without loading them.
http://www.agora-dev.org/forums/view.php?bn=rebol_prjnvxprod&key=1061826280
(This tool will be improve soon (I hope) with new features).
I'm investigating the way to automaticaly select spams in the list.
Code regarding the read of the header (TOP) is in the 'read-mails-list function.
Thank's again to Philb who have made the first script that inspire me.
DideC
[3/6] from: weyns:online:no at: 21-Sep-2003 13:16
Many thanks (mille merçi) Dide!
I am studying your code now. I have a feeling I am quickly passing the point
of no return with Rebol, my spare time is in danger.. :-)
Conrad Weyns
----- Original Message -----
From: "Dide" <[didec--tiscali--fr]>
To: <[rebol-list--rebol--com]>
Sent: 21. september 2003 12:43
Subject: [REBOL] Re: How can I implement the POP TOP command in Rebol?
> RE: How can I implement the POP TOP command in Rebol?
> Hi conrad,
>
> 'Import-email construct an object base on the string you pass. This string
can contain all the message or just part of it (the header).
> If you want to know how to do, and perhaps as a beginning for your own
work, I made a Rebol script to delete spam mails directly on the server
without loading them.
[4/6] from: weyns:online:no at: 21-Sep-2003 14:55
Thanks again Didier!
After interactively playing with parts of your 'read-mails-list' function in
a Core Rebol console, I was able to uderstand what to extract from it and
adopt it in my code. I am happy and at the same time slightly depressed to
experience the power of Rebol :-) :-(
Regards,
Conrad Weyns.
----- Original Message -----
From: "Dide" <[didec--tiscali--fr]>
To: <[rebol-list--rebol--com]>
Sent: 21. september 2003 12:43
Subject: [REBOL] Re: How can I implement the POP TOP command in Rebol?
> RE: How can I implement the POP TOP command in Rebol?
> Hi conrad,
>
> 'Import-email construct an object base on the string you pass. This string
can contain all the message or just part of it (the header).
> If you want to know how to do, and perhaps as a beginning for your own
work, I made a Rebol script to delete spam mails directly on the server
without loading them.
[5/6] from: philb:upnaway at: 21-Sep-2003 21:42
Hi Dide,
I was inspired by code from one of the RT guys (posted to this Mailing List .... sorry
but I cant remember who ... either Stirling or Jeff) .... just wanted to give credit
where it is due.
Cheers Phil
=== Original Message ===
RE: How can I implement the POP TOP command in Rebol?
Hi conrad,
'Import-email construct an object base on the string you pass. This string can contain
all the message or just part of it (the header).
If you want to know how to do, and perhaps as a beginning for your own work, I made a
Rebol script to delete spam mails directly on the server without loading them.
http://www.agora-dev.org/forums/view.php?bn=rebol_prjnvxprod&key=1061826280
(This tool will be improve soon (I hope) with new features).
I'm investigating the way to automaticaly select spams in the list.
Code regarding the read of the header (TOP) is in the 'read-mails-list function.
Thank's again to Philb who have made the first script that inspire me.
DideC
[6/6] from: greggirwin:mindspring at: 21-Sep-2003 10:08
Hi Conrad,
CW> I have a feeling I am quickly passing the point of no return with Rebol, my
CW> spare time is in danger.. :-)
...
CW> I am happy and at the same time slightly depressed to experience the power
CW> of Rebol :-) :-(
LOL! You're in trouble now. That happened to me about two years ago
and I've been hopelessly addicted ever since. :)
-- Gregg