Sukrit Mehra forced the electrons to say:
> Now the thing is I want that all the messages are downloaded and sorted
> in such a way that both of us don't get to see each others mail.

I guess this has been answered here umpteen times before, but here goes...

You have to use procmail to filter emails. Decide on which header field are
you going to base your filter, and then write one - it is very simple, check
the procmailex man page for examples. If you are going to filter on the basis
of Old-To: header, this would be:

:0:
* ^Old-To:.*[EMAIL PROTECTED]
   /var/spool/mail/foo

:0:
* ^Old-To:.*[EMAIL PROTECTED]
  /var/spool/mail/bar

For two users, foo and bar.  Put something similar in your
/etc/procmailrc, and mails will be filtered accordingly.

> I am totally confused between MTAs and MUAs and alieases and things.

MUA - Mail User Agent: the software that you use to read and compose
email.  These will offer additional features as well, including email
address books, storing related emails in one folder, launching external
applications to access email attachments and other stuff. One MUA will
offer you everything - it is called mutt. :-)

MTA - Mail Transport Agent: The best known one is sendmail. There are
others like postfix, exim, qmail etc. This is the guy responsible for
sending emails over a network. If you send me a mail, your MTA talks my
MTA into accepting the mail for me.

MDA - Mail Delivery Agent: Procmail - once an MTA gets hold of an
email, it usually asks its MDA to deliver the mail to the recipient's
mailbox. Procmail has a sophisticated rule defining language which can
be used to filter emails at this stage. The MTA can be configured to use a
variety of MDAs. One other common one on Linux is called slocal.

Binand

-- 
The prompt for all occasions:
export PS1="F:\$(pwd | tr '/[a-z]' '\134\134[A-Z]')> "
--------------- Binand Raj S. ([EMAIL PROTECTED])


-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting.  The site is
at http://botsie.tripod.com/beforeposting/

Reply via email to