Rajesh Fowkar forced the electrons to say:
> Hi,
>
> Procmail is a mail processor. Then why fetchmail also does same thing and
> which one to use to filter the mail.
Procmail is an MDA, or a mail delivery agent. Its job is to accept
mails from the MTA (mail transport agent, the guy who actually sends and
receives mails across the Internet - sendmail is the most popular one)
and deliver it to the mail recipient's mailbox, so that he can read it
later, at his leisure, using his favourite MUA (mail user agent). Procmail
also has a very powerful ruleset that can be utilised to process the
mail before it is actually delivered to the mailbox. This process is
called mail filtering.
Fetchmail is a mail retrieval agent - it sits between the mailbox
and the MUA. Its function is to let the recipient read his mail on a
different computer than the one where the MDA delivers it. To do this,
it uses a TCP protocol known as IMAP (actually, it can use lots, but let
us take IMAP as an example) and talks to a program on the remote computer
(the server) - its job is to ask the server "Please fetch me my mails
so that I can take them to my personal computer".
> Say I receive a mail for rajesh<[EMAIL PROTECTED]> and
> santosh<[EMAIL PROTECTED]> then how should I put filters to put the mails of
>above
> to persons in their respective mailboxes.
You can do this with procmail, but then you have to assume that people will
send mail to the two of you the way you want them. This might not be the case
always.
Binand
--
#include <stdio.h> | Binand Raj S.
char *p = "#include <stdio.h>%cchar *p = %c%s%c; | This is a self-
int main(){printf(p,10,34,p,34,10);return 0;}%c"; | printing program.
int main(){printf(p,10,34,p,34,10);return 0;} | Try it!!
--------------------------------------------------------------------------
LI is all for free speech, but this list was created for a purpose --
to help popularise Linux in India. If your messages are counterproductive
to that purpose, your privileges to submit messages can and will be revoked.