Binand Raj S. saw fit to inform LI that: 
>Rajesh Fowkar forced the electrons to say:
>> Hi,
>> 
>> If I receive a mail from one person and the mail is sent to both
>> TO: [EMAIL PROTECTED], [EMAIL PROTECTED]
>> 
>> How to write a procmail receipe so that the mail goes at both the  mailboxes 
>> /var/spool/mail/rajesh   and /var/spool/mail/santosh
>> 
>> Suresh can you help me ?
>
>Does that mean you will reject my help? :-)

Ham itni gustakhi kaise kar sakte hein ? :-)

>
>Not enough data - Are mails to both these addresses landing up in the same
>mailbox? Then you will have to figure out the header that has the individual
>information, and write a filter to use that header. If X-Foo: is the header
>that says the mail was meant for Santosh or Rajesh, 

I am making myself clear again. Say one of my friends sends mail to me as well as to 
my brother, hence the mail will be sent to :

TO : [EMAIL PROTECTED], [EMAIL PROTECTED]

Now I want that based on the TO address the same mail should land in the mailboxes of 
box the usersi.e. : /var/spool/mail/rajesh  and /var/spool/mail/santosh

Hope I have made myself clear.

As per suresh's suggestion I have written my receipe as follows (not yet tested) :

#rajesh
:0:
* (^TO_:.*)[EMAIL PROTECTED] [EMAIL PROTECTED]
{
   :0c:
    ! [EMAIL PROTECTED]
 
   :0:
    /var/spool/mail/santosh
}     


Is it correct ?


Regards

-- 
Rajesh(ALIAS Shriram) Fowkar
--------------------------------------------------------------------------------
How I Configured my SiS6215 Card ?Visit:http://rajesh.computers.webjump.com/linux.html
Web Site : http://rajesh.computers.webjump.com/  Email :[EMAIL PROTECTED]
 Address : KURTARKAR NAGARI, BLDG-C, FLAT NO. T4, THIRD FLOOR, SHANTINAGAR,
           PONDA - GOA.  (INDIA)     PHONE : (0832)315932

Do not dwell in the past, do not dream of the future, concentrate the mind
on the present moment. - Buddha  

Scandisk is now checking your hard disk. You can start praying. - Anon. :-)
---------------------------------------------------------------------------------


----------------------------------------------------------------------
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