* 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 = "u...@domain.com"" to be automatically set. > I tried "%u...@domain.com" but that is not working ... > > Any pointers? >
Some possible solutions: #1 set from = `whoami`@domain.com # with backticks #2 set from = $u...@domain.com # with environmental variables set from = $logn...@domain.com #3 set my_user = `whoami` # combination set from = $my_u...@domain.com Use additional double quotes ("bla bla") if some element has spaces or other problematic characters.