[Users] #mh variable
Little Girl
littlergirl at gmail.com
Sat Feb 18 20:30:08 CET 2012
Hey there,
Pierre Fortin wrote:
> Little Girl wrote:
> >I think the original poster means that, for example, the #mh is set
> >to /home/username and wants to know how to change it
> >to /home/username/mail.
> >
> >I would be interested to know how this would be done as well - not
> >because I need to do it (mine is set to /home/username/Mail and I
> >think that got determined during my initial set-up a long, long
> >time ago), but because I can't figure out how I would do it if I
> >wanted to. (:
> A really really quick & dirty way from the command line:
>
> ## use "~" in sed so as not to be confused with "/" in paths
> ## "g" is probably not needed; but it's there in case "#mh/Mailbox"
> appears more than once on a line.
> ## creates <file>.new for _every_ <file>
>
> $ cd .claws-mail
> $ for F in `ls`; do
> > cat $F | sed "s~#mh/Mailbox~#mh/Mailbox/somewhere~g" > $F.new
> > done
Thanks - I've added it to my collection of how to do things. (:
--
Little Girl
There is no spoon.
More information about the Users
mailing list