[comp.mail.mh] Recording outgoing mail with xmh

sda@edc.UUCP (Stephen Ayers) (03/21/90)

I would like to be able to record all my mail messages sent via xmh (X11R4)
to a mail folder.  Standard Mail can do this with the "set record="
option.  Does MH (MH-6.6) offer this capability?

Thanks in advance
-- 
Stephen Ayers, Atex EDC, A Kodak Company
{sun,uunet,kodak}!atexnet!sda  | ..uknet!hwcs!edc!sda
+44 506 41 6778

ziegast@egypt (Eric Ziegast) (03/22/90)

Stephen Ayers writes:
>I would like to be able to record all my mail messages sent via xmh (X11R4)
>to a mail folder.  Standard Mail can do this with the "set record="
>option.  Does MH (MH-6.6) offer this capability?

Try adding the field Fcc: to your component files.

                             EXAMPLE

Here is a message I composed for myself:

	To: ziegast@egypt.eng.umd.edu
	cc:
	Fcc: +savemail
	Subject: Testing
	-------
	Here is what I sent.

After I send it, I use "scan +savemail" :

	1+ 03/21 To:ziegast         Testing<<Here is what I sent. >>

The message (show +savemail 1):

	To: ziegast@egypt.eng.umd.edu
	Subject: Testing
	Date: Wed, 21 Mar 90 19:13:36 +0000
	From: "Eric Ziegast" <ziegast@egypt.eng.umd.edu>
	
	Here is what I sent.

And in my inbox (show +inbox last):

	From ziegast@egypt.eng.umd.edu  Wed Mar 21 19:13:40 1990
	Return-Path: <ziegast@egypt.eng.umd.edu>
	Received: from abyss.eng.umd.edu by etc . . .
	        id AA17980; Wed, 21 Mar 90 19:13:40 EST
             etc . . .
	Message-Id: <9003220013.AA14852@abyss.eng.umd.edu>
	To: ziegast@egypt.eng.umd.edu
	Subject: Testing
	Date: Wed, 21 Mar 90 19:13:36 +0000
	From: "Eric Ziegast" <ziegast@egypt.eng.umd.edu>
	
	Here is what I sent.

So for your <mh-dir>/components file, you might have:

	To:
	cc:
	Fcc: +savefolder
	Subject:
	--------

And you can make a <mh-dir>/replcomps file by inserting the "Fcc:..."
after the "cc:" part.

Simple enough? For more info on Fcc:, "man 5 mh-mail"

_______________________________________________________________________
ziegast@eng.umd.edu - {uunet}!eng.umd.edu!ziegast - ziegast@umdd.bitnet
Eric W. Ziegast, Univ. of Merryland, Open Sun Lab

kevinp@ashtate (Kevin Piette) (03/23/90)

MH offers a really nice feature called Folder Carbon Copies (Fcc) and if a
message contains a line of the form:
	Fcc: +outbox
A copy of the formatted message will be deposited into your 'outbox' folder
when sent.

I have the following line in my <mhmaildir>/components file to facilitate
automatic recording of messages I send:
	Fcc: +outbox
and this line in my .mh_profile for recording of any messages I reply to:
	repl: -annotate -inplace -fcc +outbox -nocc me

In addition this feature is nice as I get a chance to delete the fcc line
when editing the message if I don't want a given message recorded.
__

marc@apollo.HP.COM (Marc Gibian) (03/23/90)

I use the Fcc: to keep copies of my outgoing mail.  I have
a problem, though, in that the format of the Date: header in
the copy I get from the Fcc: is not parsable by pick, or other
mh tools that try to parse the date.  All mail that I send gets
to it's destinations with the proper Date: header, even those
I send to myself by any mechanism other than Fcc:.  Does anyone
have any experience with this problem?  How about a fix?
(I am running mh 6.6)

Thanks,
Marc
Project Engineer, NetLS non-Domain/OS project: Apollo Systems Division of HP
Internet: marc@apollo.hp.COM
NETel:    Apollo: 508-256-6600 x2077    HPtelnet:  256-2077
(Copyright 1990 by author. All rights reserved.  Free redistribution allowed.)