Keeping two copies of sent messages
- To: mutt-users@xxxxxxxx
- Subject: Keeping two copies of sent messages
- From: mimosinnet@xxxxxxxxx
- Date: Wed, 27 Aug 2008 21:50:51 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:to:subject :message-id:reply-to:mail-followup-to:mime-version:content-type :content-disposition:user-agent:from; bh=L3HHrKlscsV5I5hqrA2LO/9+4pjIAVsS7XCK4Oetirs=; b=BypsAAOSb+vZRClH9EGUEg4e2LMBgenStpEnYPvWv8iAgBQqjmqLWszWRGbhb+MFjw xBnuCXbuC0kRrKMTRlBOxAaWYsXAdSyG03Z/6Cqj9gfG5edKg04sBpZ7BqZzZEEhrQJd nxV8eFArcx/Hfo927z1C35a0xUHdmSio+NklY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:subject:message-id:reply-to:mail-followup-to:mime-version :content-type:content-disposition:user-agent:from; b=fcDUeSzNsB4fUXQjxdHkr0WGKs3to/WnjoSxmvrLAA/4qvOE3Wf2roJm9t63P5xkEQ beI8w7vXv4/tRBowuypu3gtPKxN75Fg42n4cDYY2ZyWfis2A4iJ0kQOQhSL8WCg+KRBK NGJTbWTLUCaPxBh+Z4vUpUX3lpJLdzc8BNv4Y=
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Reply-to: "mutt-users@xxxxxxxx"@localhost
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-06-09)
Hi!
Is it possible to save two copies of sent messages? The idea is to have
a copy of sent messages depending on the recipient, and another copy
depending on the account sent.
This is what I have so far:
1.- A macro sources different identities, and the sourced file sets the
mailbox depending on the identity (mail account):
macro index,pager <F1> ":source ~/.mutt/Profiles/uab\n" "Load uab profile"
In the sourced file, I have:
fcc-hook . ~/Mail/record/uab
2.- This hook save all messages to the recipient folder:
# ~A all messages
# %t `to:' field (recipients)
fcc-hook ~A ~/Mail/record/%t
>From what I have understood so far, the most
likely solution is to create some fcc-hook rules to decide if the
message stays in the recipient folder or the account folder instead of
having two copies of the same message.
If this is the case, is it possible to use regular expressions in the
folder name? Variables (like %t) are allowed. The idea is to modify the
folder name. For example, removing the 'TO' string at the beginning of the
variable %t, manipulate the variable in case of multiple addresses,...
Is there another possibility, like using some user-defined variables in
the folder name of the fcc-hook instead of the variable %t?
I would very much appreciate any hint.
Thanks very much for the attention!!!
--
Location: 41:24:51N (41.41417) 2:11:25E (2.1903)
Linux User: #463211