Thread: [Dev-C++] HTML vs. Plain text
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <f5...@qs...> - 2002-05-30 07:16:56
|
Hi Friends, I am a newcomer to this ML, sri for this 1st comment which will be a "complaining" one : I have noticed that a lot of you are sending HTML mesgs to the ML. As it seems that the sourceforge.net as not (yet ?) implemented the "HTML remover tool" as on other MLs I know elsewhere, it would be fine if you turn OFF the HTML email on yours computers. No need to explain why .. ;o) CU Claude |
|
From: Abhijit S. <mu...@gm...> - 2002-05-30 12:46:30
|
Okay, here it comes again... I'm going to close my eyes. _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ a l t e r e d perception Take another look. http://mudeth.tripod.com ----- Original Message ----- From: f5...@qs... To: Dev-C++ Mailing List Sent: Thursday, May 30, 2002 12:46 PM Subject: [Dev-C++] HTML vs. Plain text Hi Friends, I am a newcomer to this ML, sri for this 1st comment which will be a "complaining" one : I have noticed that a lot of you are sending HTML mesgs to the ML. As it seems that the sourceforge.net as not (yet ?) implemented the "HTML remover tool" as on other MLs I know elsewhere, it would be fine if you turn OFF the HTML email on yours computers. No need to explain why .. ;o) |
|
From: Bob W. <bo...@ph...> - 2002-05-30 13:58:33
|
> I have noticed that a lot of you are sending HTML mesgs > to the ML. As it seems that the sourceforge.net as not (yet ?) implemented > the "HTML remover tool" as on other MLs I know elsewhere, it would be fine if > you turn OFF the HTML email on yours computers. > No need to explain why .. ;o) Perhaps the answer is to implement HTML or the remover tool on the server rather than change the input. Capabilities should be increased rather than restricted. |
|
From: Brian P. <br...@su...> - 2002-05-30 15:11:15
|
<html> <head><title>Crap!</title></head> <body> <b>Oh Crap!</b> <br> <p>Here we go again.</p> </body> </html> On Thu, 2002-05-30 at 06:58, Bob Wilson wrote: > > I have noticed that a lot of you are sending HTML mesgs > > to the ML. As it seems that the sourceforge.net as not (yet ?) implemented > > the "HTML remover tool" as on other MLs I know elsewhere, it would be fine > if > > you turn OFF the HTML email on yours computers. > > No need to explain why .. ;o) > > Perhaps the answer is to implement HTML or the remover tool on the server > rather than change the input. Capabilities should be increased rather than > restricted. > > > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Ioannis V. <no...@ho...> - 2002-05-30 18:02:59
|
I had no problem with that. My brain parses it correctly. :) Seriously guys, CHANGE SUBJECT! Better, lets start a discussion on ANSI C 1999. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Brian Pribis > Sent: Thursday, May 30, 2002 6:13 PM > To: Dev-C++ User Mailing List > Subject: Re: [Dev-C++] HTML vs. Plain text > > > <html> > <head><title>Crap!</title></head> > <body> > <b>Oh Crap!</b> <br> <p>Here we go again.</p> > </body> > </html> > > > On Thu, 2002-05-30 at 06:58, Bob Wilson wrote: > > > I have noticed that a lot of you are sending HTML mesgs > > > to the ML. As it seems that the sourceforge.net as not > (yet ?) implemented > > > the "HTML remover tool" as on other MLs I know elsewhere, > it would be fine > > if > > > you turn OFF the HTML email on yours computers. > > > No need to explain why .. ;o) > > > > Perhaps the answer is to implement HTML or the remover tool > on the server > > rather than change the input. Capabilities should be > increased rather than > > restricted. > > > > > > > > > > > > _______________________________________________________________ > > > > Don't miss the 2002 Sprint PCS Application Developer's Conference > > August 25-28 in Las Vegas -- > http://devcon.sprintpcs.com/adp/index.cfm > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Hongli L. <h....@ch...> - 2002-05-30 15:40:16
|
On Thu, 2002-05-30 at 15:58, Bob Wilson wrote: > > I have noticed that a lot of you are sending HTML mesgs > > to the ML. As it seems that the sourceforge.net as not (yet ?) implemented > > the "HTML remover tool" as on other MLs I know elsewhere, it would be fine > if > > you turn OFF the HTML email on yours computers. > > No need to explain why .. ;o) > > Perhaps the answer is to implement HTML or the remover tool on the server > rather than change the input. Capabilities should be increased rather than > restricted. > > If you're willing to dig into the source code, implement it, and send a patch, please go ahead and do it. |
|
From: Ioannis V. <no...@ho...> - 2002-05-30 18:10:37
|
Honestly speaking, an engine swapping out html stuff doesn't sound
difficult. Simply you have an array of phrases to be removed (like
<HTML>) and check every word against it.
In a pseudocode C++ style:
vector<string>html;
string word;
// ...
do
{
// read from file a word
for(vector<string>::size_type i=0; i<html.size(); i++)
if(word==html[i])
{
// replace word in file with ""
}
}while(not eof);
This is my first thought. I guess we can optimise it more with binary
searching in html[] etc..
But i can't do it in ASP, or CGI etc yet. :)
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Hongli Lai
> Sent: Thursday, May 30, 2002 6:44 PM
> To: Bob Wilson
> Cc: Dev-C++ User Mailing List
> Subject: Re: [Dev-C++] HTML vs. Plain text
>
>
> On Thu, 2002-05-30 at 15:58, Bob Wilson wrote:
> > > I have noticed that a lot of you are sending HTML mesgs
> > > to the ML. As it seems that the sourceforge.net as not
> (yet ?) implemented
> > > the "HTML remover tool" as on other MLs I know elsewhere,
> it would be fine
> > if
> > > you turn OFF the HTML email on yours computers.
> > > No need to explain why .. ;o)
> >
> > Perhaps the answer is to implement HTML or the remover tool
> on the server
> > rather than change the input. Capabilities should be
> increased rather than
> > restricted.
> >
> >
>
> If you're willing to dig into the source code, implement it,
> and send a
> patch, please go ahead and do it.
|
|
From: <f5...@qs...> - 2002-05-30 21:04:09
|
Hello, Why rewriting what already exists ?? Go, for example, on http://mailman.qth.net where you can subscribe to whatever list you want. The server (the same kind of server as the one used here) has an analyser which removes all HTML sentences. Mesgs posted to this server and containing HTML will be forwarded to the indended list, HTML part removed and then the readers will get the following notice at the end of the mesg : <<< --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html The reason this message is shown is because the post was in HTML or had an attachment. Attachments are not allowed. Please post in Plain-Text only.--- >>> If there is only HTML in the mesg, then the rx mesg is empty, the note saying : "HTML only, pse submit once agn, plain text only". Here is a quoting from some info mesg coming from the "Guru" (Tim Miller <tm...@ne...> ) there : <<< The stripmime is implemented as a simple filter. It reads the incoming message one line at a time, and decides if it should keep or discard that line, based on the current body section. If there is only one section, and that section is HTML formatted, then it will remove the HTML tags and leave behind plaintext. It also attempts to clean up quoted-printable text and turn it back into regular plaintext. If the message is formatted as a MIME message with a multipart/alternative of text/plain and text/html (this is how most rich text email is sent) then stripmime only keeps the text/plain section. If the message doesn't contain a text/plain section (or a top-level text/html section) then stripmime throws out everything and appends a warning message explaining what happened. It also prints a message when it removes or alters any section so that the user knows what is going on. >>> GL. Claude http://www.qsl.net/f5pbl http://www.qsl.net/soc DIG #4451 - FISTS #7722 - SOC #503 - 10-X #71724 En réponse à Hongli Lai <h....@ch...>: > > If you're willing to dig into the source code, implement it, and send > a > patch, please go ahead and do it. > |