bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug in rmail


From: frank
Subject: Bug in rmail
Date: Tue, 01 Apr 2003 16:18:09 -0800

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

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


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


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




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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]