[comp.unix.questions] executing msg commands in .msgrc

richardd@uokmax.UUCP (Richard Dean) (03/16/89)

Is there any way to execute msg commands in your .msgrc?

For example I want to delete all mail from uucp in order
to just see my 'real' mail.  In msg I:

<- delete from: uucp

Thanks in advance

-- 
Richard L Dean
richardd@uokmax                |   Opinions contained herein probably
University of Oklahoma         |   don't reflect those of the
Engineering Computer Network   |   University of Oklahoma.

mchinni@pica.army.mil (Michael J. Chinni, SMCAR-CCS-E) (03/16/89)

Richard,

	Nothing in .msgrc will do what you want, BUT putting the following line
in your .maildelivery will work:
From	uucp	file	A	/dev/null

	This will take all mail with "uucp" in the From: header field and put
it in the file /dev/null (i.e throw it away) and NOT deliver it to your mailbox.

	
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
			    Michael J. Chinni
	US Army Armament Research, Development, and Engineering Center
 User to skeleton sitting at cobweb    () Picatinny Arsenal, New Jersey  
   and dust covered terminal and desk  () ARPA: mchinni@pica.army.mil
    "System been down long?"           () UUCP: ...!uunet!pica.army.mil!mchinni
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

drears@PICA.ARMY.MIL (Dennis G. Rears (FSAC)) (03/16/89)

 Richard Dean <richardd@uokmax.uucp> writes:

>
>Is there any way to execute msg commands in your .msgrc?
>
>For example I want to delete all mail from uucp in order
>to just see my 'real' mail.  In msg I:
>
><- delete from: uucp
>
>Thanks in advance
>

   No. The .msgrc only sets default parameters.  You might want to
check out the man page for .maildelivery.  An entry in your
.maildelivery file to get rid of any mail that has uucp in the from
line is:


From	uucp		file	A	/dev/null

Beware, because if the from line looks like this:
From:  Thomas A. Buucpat <tab@seito.MMCS.MIL> it won't get to your
		  ^^^^
mailbox.


  For the others on wizards,  he is using msg which is part of the
MMDF (Multi-channel Memo Distribution Facility).  It is an excellent
mailer.

Dennis

--------------------------------------------------------------------------
			Dennis G. Rears
ARPA: drears@ac4.pica.army.mil   UUCP:  ...!uunet!ac4.pica.army.mil!drears
AT&T: 201-724-6639		 USPS:	Box 210, Wharton, NJ 07885
Work: SMCAR-FSS-E, Bldg 94, Picatinny Ars, NJ 07806
--------------------------------------------------------------------------