Re: The sorry state of i18n

[prev] [thread] [next] [lurker] [Date index for 2006/04/03]

From: A. Pagaltzis
Subject: Re: The sorry state of i18n
Date: 11:49 on 03 Apr 2006
* Peter da Silva <peter@xxxxxxx.xxx> [2006-03-21 13:55]:
>> I have forever meant to write my own mail filter script and
>> retire that nasty paleolithic excuse for a hack...
> 
> Heh.
> 
> I wrote one, then replaced it with a script to turn my simpler
> and more understandable syntax into a procmailrc, after running
> into one too many variant mail tentacles.
> 
> But I'll support you to the fullest when you get a Tuit or two.

Even after I tell you that I planned to have the filter be
written in Perl? :-)

I’m just very tired of little languages.

Dealing with the vagaries of mail should be feasible enough
considering that the Email::* set of modules does a pretty good
job at both being easy to employ (unlike the Mail::* legacy) and
having comprehensive support for email specs.

So my thinking was to take a bunch of Email::* modules plus
Mail::POP3Client and tie them together into some sort of DSL so
that I could write filter scripts in Perl with the absolute
minimal friction. Given that the script is still Perl however
would mean that playing fancy tricks would be possible without
pointlessly wasting effort – first to figure out the limitations
of yet another arbitrarily limited crappy mini-language, then to
find ways around them.

I mean, it was fun when I was an eager green nerd, but I’ve been
around that block enough times at this point that it’s lost its
novelty. Just give me a real language and let me do what I want,
thanks.

* Peter da Silva <peter@xxxxxxx.xxx> [2006-03-21 16:10]:
> I think a mail filter syntax really needs to be relational,
> with an escape to procedural code. That's where procmail is
> going in the right direction.

Yeah, my thoughts exactly.

> What I have is:
> 
> [mailbox-name]
> Header: glob
> Header: glob
> Header: /pattern/
> # the following requires both headers
> Header: glob
> +Header: glob
> 
> <body>glob
> 
> ...
> 
> Any match in a [mailbox] section goes to that mailbox.

Mmm, I was thinking about something along similar lines, only
with a Real Syntax by virtue of it being a DSL.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>;
There's stuff above here

Generated at 12:00 on 03 Apr 2006 by mariachi 0.52