[Users] #mh variable
pf at pfortin.com
Sat Feb 18 04:14:16 CET 2012
On Fri, 17 Feb 2012 14:06:26 -0500 Little Girl wrote:
>> Renato wrote:
>> > Hello, both in preferences and in the file clawsrc the mailbox
>> > paths are set to #mh/mailbox_name. How do I change the #mh value?
>> > Currently I think it's set to my home, i.e. I have mailboxes in my
>> > home folder, and I'd like to tidy that up.
>> There's nothing to tidy up or change - #mh signifies the type of
>I think the original poster means that, for example, the #mh is set
>to /home/username and wants to know how to change it
>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
More information about the Users