How about just requiring the subject to begin with TIP, any replies
would have Re: at the beginning and would be ignored. Doesn't help
with updates though.
On 9/29/05, Michael Dinowitz [EMAIL PROTECTED] wrote:
Requiring them to be on their own line might be nice, but when writing this
I have to
We need a Wiki or something to start compiling all the nifty solutions here.
Is anyone on the Evolt.org list? They have a nice self building tips
library by posters who just surround things with tip/tip. It would be
interesting to build a cflist parser that throws something like this into an
rss
So you just want a text parser to look for a start and end 'tip' tag and treat
whatever is in it as a tip to be loaded into a tip DB? I can do that. Let me
see how easy it is. If your on the test list, you'll start seeing the code in
place there.
We need a Wiki or something to start compiling
, September 29, 2005 1:16 PM
To: CF-Talk
Subject: Re: CF Tips... was CF smart
So you just want a text parser to look for a start and end 'tip' tag and
treat whatever is in it as a tip to be loaded into a tip DB? I can do that.
Let me see how easy it is. If your on the test list, you'll start seeing
They have a nice self building tips
library by posters who just surround things with tip/tip. It would be
interesting to build a cflist parser that throws something like this into an
rss feed.
Check CF_REextract that can do this pretty easily:
: Thursday, September 29, 2005 1:16 PM
To: CF-Talk
Subject: Re: CF Tips... was CF smart
So you just want a text parser to look for a start and end 'tip' tag and
treat whatever is in it as a tip to be loaded into a tip DB? I can do
that.
Let me see how easy it is. If your on the test list
I used:
CFSET sTip=REFindNoCase('tip(.+?)/tip', body, 1, 1)
CFIF ArrayLen(sTip.pos) GT 1
CFSET Tip=mid(body, sTip.pos[2], sTip.Len[2])
/CFIF
They have a nice self building tips
library by posters who just surround things with tip/tip. It would be
interesting to build a cflist parser that
Nice job. Now will this eventually be moved into its own feed?
Emmet
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 1:57 PM
To: CF-Talk
Subject: Re: CF Tips... was CF smart
I used:
CFSET sTip=REFindNoCase('tip(.+?)/tip', body, 1
OK, the code works well and will seperate a single tip from a message. I'm
still playing to deal with a quoted tip, but that should not be much of a
problem either.
~|
Logware (www.logware.us): a new and convenient web-based
To: CF-Talk
Subject: Re: CF Tips... was CF smart
I used:
CFSET sTip=REFindNoCase('tip(.+?)/tip', body, 1, 1)
CFIF ArrayLen(sTip.pos) GT 1
CFSET Tip=mid(body, sTip.pos[2], sTip.Len[2])
/CFIF
They have a nice self building tips
library by posters who just surround things with tip/tip
Must have caught you on a slow day. :)
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 2:15 PM
To: CF-Talk
Subject: Re: CF Tips... was CF smart
OK, the code works well and will seperate a single tip from a message. I'm
still
: CF Tips... was CF smart
Once some side issues are dealt with, I'll have all of the tips loaded into
its own table and then into its own feed. The side issues include multiple
tips per post, commented tips, duplicate tips, etc. A possible solution is
to remove, comment or alter the tip container
How about requiring that tip and /tip be on lines by themselves?
Or at least that tip has to be at the beginning on a line. Then you
wouldn't have to worry about commented tips, and you probably should
ignore them anyway, because the original message would have gotten the
tip parsed out already.
live.
Must have caught you on a slow day. :)
-Original Message-
From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 29, 2005 2:15 PM
To: CF-Talk
Subject: Re: CF Tips... was CF smart
OK, the code works well and will seperate a single tip from a message. I'm
I have to think of every situation. Can't have a 'bad' tip messing up the
list processing. :)
I might have jumped the gun. I started posting every idiot thing I could
think of to break it. I didn't try replying to a post with a tip though.
PM
To: CF-Talk
Subject: Re: CF Tips... was CF smart
How about requiring that tip and /tip be on lines by themselves?
Or at least that tip has to be at the beginning on a line. Then you
wouldn't have to worry about commented tips, and you probably should
ignore them anyway, because the original
Requiring them to be on their own line might be nice, but when writing this
I have to assume that something will get in the way and people will be upset
that their tip was 'missed'. As for a rewrite to add in the DB id of the
tip, that's a possibility but involves stronger 'coupling' with the
17 matches
Mail list logo