procmail
[Top] [All Lists]

Re: How come procmail doesn't know \t code?

1997-10-28 17:25:09
| Tue 97-10-28 dattier(_at_)wwa(_dot_)com (David W. Tamkin) list.procmail

| |         #  Autch, can't do it like this....
| |         * [ \t]+some    
| 
| You can still do it with a real horizontal tab character.  If that doesn't
| satisfy you, you can set a variable that contains a tab (or a space and a
| tab) and use it with "$" interpretation:
| 
| SPACETAB="    "
| 
| and then write things like
| 
|         * $ ^Header-Name:[$SPACETAB]*\/[^$SPACETAB].*

This is exellent suggestion.
The real solution would have been getting the Procmail to understand the
regular escape codes....

I'll use this one until we have that full set of escape codes

| As another approach, do you have an editor that can make tabs visible as ^I
| or \t while you edit your rcfile?

Yup, I can do plenty of things with my Emacs: the recent tinypm.el 
uses colors to mark the tabs inside barackets, but I may be editing vith VI
or with some other editor, so this is a kinda Editor dependent....

P.S Were there a reason why the escape codes weren't included in the first
place?

Thank you.
jari

<Prev in Thread] Current Thread [Next in Thread>