unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in rmail
@ 2003-04-02  0:18 frank
  0 siblings, 0 replies; only message in thread
From: frank @ 2003-04-02  0:18 UTC (permalink / raw)


----------------------------------------------------------------------------

Hi

I recently tried to move from emacs20 to emacs21.
I have the following in my .emacs file.

(setq mail-archive-file-name "~/email/sentmail")

It works perfectly with emacs20.

But with emacs 21 the sentmail summary does not include the destination.
It leaves it blank.

For example the following lines appear in the sentmail-summery.

   1  25-Mar          to: avila@usc.edu  [52] awk
   2   1-Apr        to: niertit@usc.edu  [21] test this editor
   3   1-Apr                             [17] this test to niertit

The first two email's were sent with emacs20.
The last was sent using emacs 21.

I have included the sentmail file for you perusal.

----------------------------------------------------------------------------
--------- start of sentmail ------------------------------------------------
----------------------------------------------------------------------------

BABYL OPTIONS: -*- rmail -*-
Version: 5
Labels:
Note:   This is the header of an rmail file.
Note:   If you are seeing it in rmail,
Note:    it means the file has no messages in it.
\x1f\f
1,,
Summary-line: 25-Mar          to: avila@usc.edu  [52] #awk
X-Coding-System: undecided-unix
Mail-from: From frank Tue Mar 25 14:36:33 -0800 2003
Date: Tue, 25 Mar 2003 14:36:33 -0800
From:  <frank@ferenc.eshop>
To: avila@usc.edu
Subject: awk
Reply-to: niertit@usc.edu

*** EOOH ***
Date: Tue, 25 Mar 2003 14:36:33 -0800
From:  <frank@ferenc.eshop>
To: avila@usc.edu
Subject: awk
Reply-to: niertit@usc.edu

----------------------------------------------------------------------------

Jaime

The following program should do what you wanted.

Frank

----------------------------------------------------------------------------

#!/usr/bin/awk -f

BEGIN { FS = "::"; file = "./letter"; header = "./header"; i = 0; }

/^#/ { next }

/::/{

i = i + 1
name = $1
destination = $2

gsub(/^[ \t]+/,"",name);        gsub(/[ \t]+$/,"",name)
gsub(/^[ \t]+/,"",destination); gsub(/[ \t]+$/,"",destination)

printf("\r%8d",i)

system("echo -e " "\"To: " name "\" > " header) 
system("cat " header " " file " | mail " destination)

}

END { printf("\n") }

----------------------------------------------------------------------------

-- 
   Frank J. Niertit
   Director of Chemical Instrumentation
   USC Chemistry Dept.
   SSC 701
   LA CA 90089-0482
   Tel. 213 740-4103
   Fax. 213 740-2701
   niertit@usc.edu

\x1f\f
1,,
Summary-line:  1-Apr        to: niertit@usc.edu  [21] #test this editor
X-Coding-System: undecided-unix
Mail-from: From frank Tue Apr  1 14:35:34 -0800 2003
Date: Tue, 1 Apr 2003 14:35:34 -0800
From: frank
To: niertit@usc.edu
Subject: test this editor
Reply-to: niertit@usc.edu

*** EOOH ***
Date: Tue, 1 Apr 2003 14:35:34 -0800
From: frank
To: niertit@usc.edu
Subject: test this editor
Reply-to: niertit@usc.edu


this is a test

-- 
   Frank J. Niertit
   Director of Chemical Instrumentation
   USC Chemistry Dept.
   SSC 701
   LA CA 90089-0482
   Tel. 213 740-4103
   Fax. 213 740-2701
   niertit@usc.edu

\x1f\f
1,,
Summary-line:  1-Apr                             [17] #this test to niertit
Date: 1 Apr 2003 15:33:26 -0800
To: niertit@usc.edu
Subject: this test to niertit
Reply-to: niertit@usc.edu

*** EOOH ***
Date: 1 Apr 2003 15:33:26 -0800
To: niertit@usc.edu
Subject: this test to niertit
Reply-to: niertit@usc.edu


-- 
   Frank J. Niertit
   Director of Chemical Instrumentation
   USC Chemistry Dept.
   SSC 701
   LA CA 90089-0482
   Tel. 213 740-4103
   Fax. 213 740-2701
   niertit@usc.edu


\x1f

----------------------------------------------------------------------------
--------- end of sentmail --------------------------------------------------
----------------------------------------------------------------------------


As is evident the last entry is missing the to: field in the summary.

I would like to switch to emacs21 but this makes my summary file nearly
useless.
  
I am running debian 3.0 with kernel 2.4.20.

I hope you can help.

----------------------------------------------------------------------------

-- 
   Frank J. Niertit
   Director of Chemical Instrumentation
   USC Chemistry Dept.
   SSC 701
   LA CA 90089-0482
   Tel. 213 740-4103
   Fax. 213 740-2701
   niertit@usc.edu

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-04-02  0:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-02  0:18 Bug in rmail frank

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).