[neomutt-users] changing personas with folder-hook -> source -> set

Sven Guckes neomutt-lists at guckes.net
Wed Mar 28 10:18:15 CEST 2018

* Dariusz Fedejko <mailing at fedejko.net> [2018-03-28 10:03]:
> Also, when I go inside a folder which belongs
> to another account and compose a message, the
> "from:" field changes accordingly - is that doable?



folder-hook .   "source ~/.mutt/persona.default"
folder-hook FOO "source ~/.mutt/persona.foo"

    set from=default at domain.tld

    set from=special at domain.tld

so, for all folder which conrain ".",
ie some arbitrary character, neomutt
will source the "persona.default"
file which sets "default at domain.tld"
as your sender address.

and when you enter a folder FOO
then it sources the "persona.foo" file
which sets special at domain.tld
as your sender address.

of course you can change any other option
within those sourced files, eg realname.

easy enough?


a few upcoming FLOSS events in DE:
* 2018-03-10/11 Sa+So Chemnitzer Linux-Tage (CLT)    http://chemnitzer.linux-tage.de/2018/
* 2018-03-30/02 Fr-Di Easterhegg in Würzburg         https://eh18.easterhegg.eu
* 2018-04-21    Sa    Linux InfoTag Augsburg (LITA)  http://www.luga.de/Aktionen/LIT-2018/
* 2918-05-10/13 Do-So Impro LUG Camp (Leichlingen)   http://www.lugcamp.de
* 2018-06-23    Sa    Tübix (Tübingen)               http://tuebix.org/
* -> cal.guckes.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1473 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20180328/6655c0dd/attachment.sig>

More information about the neomutt-users mailing list