Re: [dev] Stripping html from email

2010-08-24 Thread Kai Hendry
It would be great if there was a tool to convert HTML to markdown. ;)

Re: [dev] Stripping html from email

2010-08-24 Thread Anselm R Garbe
On Mon, Aug 23, 2010 at 10:55:14PM -0500, Stanley Lieber wrote: On Mon, Aug 23, 2010 at 10:46 PM, Anthony J. Bentley anthonyjbent...@gmail.com wrote: It’s not quite what you’re asking for, but I have nmh set up like this: mhshow-show-text/html: lynx -dump %F | less Lynx sucks but it

Re: [dev] Stripping html from email

2010-08-24 Thread Etienne Millon
On Tue, Aug 24, 2010 at 07:45:17AM +0100, Kai Hendry wrote: It would be great if there was a tool to convert HTML to markdown. ;) Actually, pandoc can do that. :-) -- Etienne Millon

Re: [dev] Stripping html from email

2010-08-24 Thread Kurt H Maier
http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm -- # Kurt H Maier

Re: [dev] Stripping html from email

2010-08-24 Thread Nick
On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm Umm. Is no-one reading the body of the original request? We can all strip XML easily, that isn't the question.

Re: [dev] Stripping html from email

2010-08-24 Thread pancake
On 08/24/10 05:46, Anthony J. Bentley wrote: Is there currently a tool or script that I can use to strip html from emails? Basically, it should work like this: - Read the message from stdin - If there is no html, leave as is - If it finds both html and plain text, strip the html attachment -

Re: [dev] Stripping html from email

2010-08-24 Thread pancake
On 08/24/10 14:38, Nick wrote: On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm Umm. Is no-one reading the body of the original request? We can all strip XML easily, that isn't the question. pacman -S html2text

Re: [dev] Stripping html from email

2010-08-24 Thread Kurt H Maier
On Tue, Aug 24, 2010 at 8:38 AM, Nick suckless-...@njw.me.uk wrote: On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm Umm. Is no-one reading the body of the original request? We can all strip XML easily, that isn't the

Re: [dev] Stripping html from email

2010-08-24 Thread anonymous
On Tue, Aug 24, 2010 at 08:57:12AM -0400, Kurt H Maier wrote: On Tue, Aug 24, 2010 at 8:38 AM, Nick suckless-...@njw.me.uk wrote: On Tue, Aug 24, 2010 at 07:31:18AM -0400, Kurt H Maier wrote: http://search.cpan.org/~kilinrax/HTML-Strip-1.06/Strip.pm Umm. Is no-one reading the body of the

Re: [dev] Stripping html from email

2010-08-24 Thread Kurt H Maier
On Tue, Aug 24, 2010 at 9:01 AM, anonymous ya6io...@lavabit.com wrote: But it is not what OP asks for.  Tool should process MIME emails and remove text/html attachments. that is a different task than stripping html from email data. OP should be looking for two tools. -- # Kurt H Maier

Re: [dev] Stripping html from email

2010-08-24 Thread Josh Rickmar
On Tue, Aug 24, 2010 at 09:07:25AM -0400, Kurt H Maier wrote: On Tue, Aug 24, 2010 at 9:01 AM, anonymous ya6io...@lavabit.com wrote: But it is not what OP asks for. ?Tool should process MIME emails and remove text/html attachments. that is a different task than stripping html from email

Re: [dev] Stripping html from email

2010-08-24 Thread Kurt H Maier
On Tue, Aug 24, 2010 at 9:27 AM, Josh Rickmar joshua_rick...@eumx.net wrote: anonymous is right, I just want to remove the text/html attachments, not strip the html tags. MIME sucks; there's no nice way to deal with it. I use perl and the Mail::Message package from cpan. --

Re: [dev] Stripping html from email

2010-08-24 Thread pancake
On 08/24/10 16:45, Kurt H Maier wrote: MIME sucks; there's no nice way to deal with it. I use perl and the there's dmc-pack to unpack and unpack mime attachments. The implementation is 162 LOC and works quite nice. I think is the sanest way to work with it.

Re: [dev] Stripping html from email

2010-08-24 Thread anonymous
On Mon, Aug 23, 2010 at 11:55:35PM -0400, Josh Rickmar wrote: Yeah, not quite what I'm looking for. Basically I want something that I can pipe the message to with my MDA (fdm) before it is delievered to my maildir. Thanks, I didn't know about fdm and used getmail+procmail. Now I have

[dev] [9base] /bin/rc

2010-08-24 Thread anonymous
On page http://suckless.org/people/Kris there are scripts that starts with /bin/rc she-bang. Someone have also sent some script with #!/bin/rc in it to this list. So I want to ask what is the best way to put rc into /bin under Linux. Is there any options in plan9port or 9base that allow to

Re: [dev] [9base] /bin/rc

2010-08-24 Thread Moritz Wilhelmy
On page http://suckless.org/people/Kris there are scripts that starts with /bin/rc she-bang. Someone have also sent some script with #!/bin/rc in it to this list. So I want to ask what is the best way to put rc into /bin under Linux. Is there any options in plan9port or 9base that allow to

Re: [dev] [9base] /bin/rc

2010-08-24 Thread anonymous
On Tue, Aug 24, 2010 at 09:45:14PM +0200, Moritz Wilhelmy wrote: ever heard of symlinks? ln -s /path/to/plan9port/bin/rc /bin/rc I heard, but even moving rc in installation script is a better solution.

Re: [dev] [9base] /bin/rc

2010-08-24 Thread Kris Maglione
On Tue, Aug 24, 2010 at 11:31:21PM +0400, anonymous wrote: On page http://suckless.org/people/Kris there are scripts that starts with /bin/rc she-bang. Someone have also sent some script with #!/bin/rc in it to this list. So I want to ask what is the best way to put rc into /bin under Linux.

[dev] sfc - a flashcards program to learn languages

2010-08-24 Thread Valentin
I introduce the first program in the suckless education category -- sfc (aka ``I've been writing this instead of actually learning the language''). It uses a simple implementation of the SM-2 [1] algorithm and has a human-readable database. Get it from its repo [2], or take a look at the project

Re: [dev] sfc - a flashcards program to learn languages

2010-08-24 Thread Samuel Baldwin
þǫkk! Do you know where one could find a database of words either in that format, or in a format easy enough to reformat oneself? It'd be cool if this supported automatic inflection based on defined grammatical rules; this is something I might implement myself in a fork if you don't care for it.

Re: [dev] sfc - a flashcards program to learn languages

2010-08-24 Thread Valentin
On Tue, Aug 24, 2010 at 04:53:39PM -0400, Samuel Baldwin wrote: þǫkk! Gesundheit! Do you know where one could find a database of words either in that format, or in a format easy enough to reformat oneself? No idea. I prefer to slowly add new words as I go through the lessons so I can always

Re: [dev] sfc - a flashcards program to learn languages

2010-08-24 Thread Samuel Baldwin
No idea. I prefer to slowly add new words as I go through the lessons so I can always learn stuff that's relevant or already known. I suppose it wouldn't be hard to acquire some kind of translation database; I'll post back on the mailing list if I find anything suitable with a translation

[dev] nscript - a little stack-based scripting language interpretter I wrote

2010-08-24 Thread Nikhilesh S
I wrote a small interpretter for a stack-based scripting language I called 'nscript' a while back. I wasn't very well-versed at C (more of a C++ guy) so the code might suck a bit. You can find it here: http://github.com/nikki93/nscript It was born out of the one-file version here: