Hi 42possibletrash, mutt users,
* 42possibletr...@googlemail.com <42possibletr...@googlemail.com> [22. Oct. 
2011]:
> My problem is the lack of obvious support for someone
> with several email addresses. I have four email accounts, for which
> mutt will work well with one at a time, but I have no method of
> swaping. 
Mutt supports various using several email addresses in a generic
way.  It is for instance not necessary to separate emails from
different accounts in different mail folders.

First you have to tell mutt about the email addresses you
use -- as opposed to every other email address in emails you
receive. Read "3.11 Alternative Addresses" in the fine manual.

The minimum configuration is like this:
alternates "^m...@home.info$"
alternates "^m...@work.com$"
alternates "^roleacco...@organisation.org$"

Then you may for instance limit the index of a mail folder to
only show emails which originate from you with the search pattern
~P or to only show mails which are from you or addressed to you.  

While in the one-email-folder-per-account organisation you for
instance will not find an email from a working colleague because
it's not in the work related mail folder since s/he emailed your
private address...  If you keep all your emails in one folder
then you can limit the index to only show emails from you to
em...@example.com ore from em...@example.com to you respectively
with ~L em...@example.com.

Then there are a few variables to control how mutt reacts in case
you reply to an email.  If for instance reverse_name is set
(default is not set) and the email you are replying to originates
or is addressed to one of your email addresses, mutt uses this
email address in replies, otherwise it will use your email
address as indicated by your OS.

Normally, if you reply to an email the resulting new
email is addressed to the address in the From: header field.  But
if mutt knows which addresses are yours it will arrange to
address the new email to the address in the To: header field if
the original email originated from you (if you for instance want
to ask a person why s/he did not respond to your earlier email).  

If you separate specific emails in specific mail folders then you
can trigger certain settings specific to this mail folders via
folder-hooks.

You may also specify settings for sending and replying via
send-hooks and reply-hooks and mix them.

And last not least you may bind macros to keys.  The macros may
set settings according to what you now are used to as account
settings.

For me a dynamic configuration which automatically chooses
certain settings based on the mail folder I'm viewing and/or the
email I'm replying to is much more comfortable than always having
to remember to press a key first.  But none the less I also have
macros like this:
macro generic \e8 "<enter-command> source 
$HOME/.mutt/profiles/telegr...@gmx.net/settings\n" "be Gregor Zattler 
<telegr...@gmx.net>"


which stitches all dynamic configuration off and sets things for
a specific role of mine.

> Please note that at this time I have not configured any
> program to receive my emails and am only concerned with moving my
> emails over to be viewed on mutt. My .muttrc:
> http://ompldr.org/vYXUxZQ. When researching this problem I came to
> the conclusion it should be possible to write a macro to swap from
> one email to another, e.g. <F1-4>. However I am not convinced this
> would be possible now as I am aware each email has it's own mailbox,
> e.g. '/Main', with it's own subdirectories, e.g. '/Inbox'. This
> complicates matters as the script used to find mailboxes is static
> and does not rely on mutts own internal vars, e.g. '$folder'. I am at
> a lose, and would desperately appreciate any help possible.
>   I have looked for an answer online but failed. To clarify what I
> want is to be able to swap email accounts within one session of mutt,
> possibly using a set of macro bound keys. I was using mbox format
> within Eudora, but have decided to move to maildir, the conversion
> seems to work perfectly. I have also started this thread online, but
> unfortunately did not get a lot of help:
> http://forums.gentoo.org/viewtopic-t-898276.html. Once I have mutt
> viewing each account properly I will then configure it to receive and
> send emails. Thank you in advance to anyone who can help me. :-)

For this to achieve it's best to use folder-hooks.  you enter a
folder and your settings are set up accordingly.


Mutt is extremely flexible and customisable but you will have to
read the fine manual.

HTH, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-

Reply via email to