procmail
[Top] [All Lists]

Re: Reversing text?

2002-05-12 16:02:59
On Thu, 9 May 2002, Martin McCarthy wrote:

I would like, however, to be able to put the list messages into a
heirarcial structure ... similar to java packages ... so that lists would
be stored as such ...
list1.domain1.com goes in com/domain1/list1
list2.domain1.com goes in com/domain1/list2
lista.domain2.com goes in com/domain2/lista
listx.domain3.org goes in org/domain3/listx

Anyone know if there is a way to get procmail to do that kind of string
manipulation, or am I asking for too much?

I would go with Sean's suggestion of using sed or awk or perl or
somesuch. 

        Do not go so far,    tr '.' '/'    will do the job.


           However, you can do it with procmail.  And since we don't get
many recursive includerc examples here these days, here's one way of
doing it....

Create a file somewhere - in my example it is in
/home/marty/mail/reverserc:
---start reverserc--
...
...

Hope that was at least interesting, if not useful.
Martin

                 B R A V O    M A R T I N  ! ! ! 

-Udi

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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