On 16 Jul, jherazo(_at_)geocities(_dot_)com wrote:
| * jherazo(_at_)geocities(_dot_)com (jherazo(_at_)geocities(_dot_)com) wrote:
| > > Nice and (relatively) simple, i like that. Gotta test it today :)
| >
| > I've being testing it, and it works beautifully :)
| >
| > Gotta check in the group listings to see what special chars are allowed,
| > to filter them out too
|
| Found a problem, international chars make the filter fail. One of
| the groups had the word "México" in it (notice the "é"), and it
| failed. I think it would need more passes then.
Something like (untested) out to do it:
:0
* ^Subject:.*\[Yahoo! Clubs: \/[^]]+]$
* MATCH ?? ^^\/[^]]+
{
xFILE=`echo "$MATCH" |tr -s '[\t ]é' '_e`
:0:
$xFILE
}
Originally, "\t " was the first set for tr, "_" the second. Now "\t "
is made a character class so either one is translated to the underscore,
and the lowercase e acute is translated to e. Neither procmail nor GNU
tr (which you said you were using) will have any problem with the é.
You would definitely want something more general if more than one or
two cases like this pop up, as this could become cumbersome to maintain.
But I'm curious why it "failed". Linux (which, again, you said you
were using) and the ext2 filesystem definitely don't have any problems
with these characters in file names. Did the mail client software have a
problem accessing the file?
| (BTW Don, i love the campaign. Gotta give you credit on
| my .sig :) )
Thanks, but not my creation.
--
/"\
Don Hammond \ / ASCII Ribbon Campaign
Raleigh, NC US X Against HTML Mail,
/ \ and News Too
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail