lambda calculus wrote:

> Hi guys, i recently changed to mutt, and reading the documentation,
> but i can't find what i want:
> 
> Since I'm subscribed to a couple of mailing lists i would like to
> configure mutt to store mails from different mailing lists to
> different directories.
> 
> Let's li...@something1.org
> and   li...@something2.org
> 
> The choice of which directory(mailing list) to read, whould be made
> with the -f option.
> 
> Can anyone supply an example please?

in ~/.muttrc:

  subscribe li...@something1.org li...@something2.org
  save-hook '~C li...@something1.org' =list1
  save-hook '~C li...@something2.org' =list2

you can set up aliases for the lists and refer to them by
alias in the subscribe directive but the patterns in the
save-hook directive probably can't make use of aliases.

if you use different from addresses when sending to each list,
you might also want something like:

  send-hook ~tli...@something1.org set from = me+li...@mydomain.org
  send-hook ~tli...@something2.org set from = me+li...@mydomain.org

cheers,
raf

Reply via email to