Discussion:
Directory when sending
Salve Håkedal
2017-08-28 09:31:58 UTC
Permalink
I use mutt with fetchmail and procmail.

When recieving mail (with fetchmail) from some people I put it in one
single directory with this in .procmailrc and the rest goes in innboks.

...

:0:
* ^From:.****@somewhere.no
that_friend/

:0:
innboks/

I'm on Debian and here is some of my .muttrc:
set mbox_type=maildir

set folder="~/post"
set spoolfile="+innboks"
set mbox="+lagra"
set postponed="+kladd"
set record="+sendt"

How can I make mutt place my reply in the that_friend folder?
--
Mvh Salve Håkedal
Akkana Peck
2017-08-28 17:34:49 UTC
Permalink
Post by Salve HÃ¥kedal
I use mutt with fetchmail and procmail.
When recieving mail (with fetchmail) from some people I put it in one single
directory with this in .procmailrc and the rest goes in innboks.
[ ... ]
Post by Salve HÃ¥kedal
How can I make mutt place my reply in the that_friend folder?
I'm not sure I'm answering the right question; as far as I know,
outgoing mail has to go in a particular mailbox, not just somewhere
in a folder. So I'll answer for mailboxes.

If you just want outgoing mail that's going to that_friend to go to
a folder, it's easy:

fcc-save-hook ***@somewhere.no =friend_sent

(You can use just an fcc-hook too; I tend to use fcc-save-hooks
to make it easier to save both incoming and outgoing mail in the
same folder, so I keep conversations together.)

But in practice, I generally want mail that's either to, from, or
CCed to a particular person or list to end up in the same mailbox.
And that's a lot more complicated to specify:

fcc-save-hook "(~t ***@somewhere.no | ~c ***@somewhere.no | ~f ***@somewhere.no)" =friend_sent

I wish there was a more compact way to specify it -- it's tedious to
add new entries -- but it works.

For the folder part of your question, you could specify the mailbox as
=that_friend/Sent, or /path/to/that_friend/Sent, or whatever you want.

Does that help, or did I misunderstand the question?

...Akkana
Nathan Stratton Treadway
2017-08-31 18:02:54 UTC
Permalink
Post by Akkana Peck
But in practice, I generally want mail that's either to, from, or
CCed to a particular person or list to end up in the same mailbox.
I wish there was a more compact way to specify it -- it's tedious to
add new entries -- but it works.
Have you looked at the ~L pattern modifier? I think it does what you
are looking for here. (See also the related ~C modifier.)

Nathan
Akkana Peck
2017-09-03 02:35:21 UTC
Permalink
Post by Nathan Stratton Treadway
I wish there was a more compact way to specify it [ ... ]
Have you looked at the ~L pattern modifier? I think it does what you
are looking for here. (See also the related ~C modifier.)
I hadn't, thanks! Much better.

...Akkana

Loading...