* On 11 ene 2015, Danny wrote: > Hi guys, > > I have setup a .muttrc in /etc/skel (Debian). My problem is that everytime I > create a user and .muttrc is copied to the newly created user's home dir I > still > have to do some editing involving the user's name etc. > > What is the mutt variable for a user: > > For example : I want "set from = "[email protected]"" to be automatically set. > I tried "%[email protected]" but that is not working ... > > Any pointers? >
Some possible solutions: #1 set from = `whoami`@domain.com # with backticks #2 set from = [email protected] # with environmental variables set from = [email protected] #3 set my_user = `whoami` # combination set from = [email protected] Use additional double quotes ("bla bla") if some element has spaces or other problematic characters.
