fetchmail-friends
[Top] [All Lists]

[fetchmail]Header being rewritten incorrectly

2002-06-04 10:21:53
I'm trying to debug an occasional problem I see. I'm using fetchmail 5.9.11
to fetch mail from an MS Exchange server. I see this problem both with
POP3 and IMAP protocols.

When I use mutt to read the message on the Exchange server, part of the header
looks like this:

From: "XXXXXXXXXXXX,XXXXXX (A-Oregon,ex1)"
         <xxxxxx_xxxxxxxxxxxx(_at_)agilent(_dot_)com>
To: "XXX-XXX-XXXXX-XXXX,XX (A-Oregon,expdl1)"
         <xx_xxx-xxx-xxxxx-xxxx(_at_)agilent(_dot_)com>
Subject: Thank you card from Karla Wiseman
Date: Mon, 3 Jun 2002 10:44:08 -0600

The 2nd and 4th lines are a continuation of the previous lines, starting
with a tab and a space.

When I fetch the message, the lines in the header now look like:

From: "XXXXXXXXXXXX,XXXXXX (A-Oregon,ex1)"
         <xxxxxx_xxxxxxxxxxxx(_at_)agilent(_dot_)com>    
<xx_xxx-xxx-xxxxx-xxxx(_at_)agilent(_dot_)com>Date: Mon, 3 Jun 2002 10:44:08 
-0600 

The To: and Subject: lines have been removed and the Date: line has been
merged with the original 4th line.

I DON'T see this problem if the From: and To: lines are unbroken, i.e.,
not continued on the next line. So if the original From: and To: lines
looked like:

From: "XXXXXXXXXXXX,XXXXXX (A-Oregon,ex1)" 
<xxxxxx_xxxxxxxxxxxx(_at_)agilent(_dot_)com>
To: "XXX-XXX-XXXXX-XXXX,XX (A-Oregon,expdl1)" 
<xx_xxx-xxx-xxxxx-xxxx(_at_)agilent(_dot_)com>

the resulting headers should be OK.

When I run fetchmail with the "-vv" option and check the log file, it shows:

About to rewrite From: "XXXXXXXXXXXX,XXXXXX (A-Oregon,ex1)"^M
About to rewrite To: "XXX-XXX-XXXXX-XXXX,XX (A-Oregon,expdl1)"^M

Is it likely that fetchmail is rewriting the header incorrectly because
the From: and To: lines are continued on the next line? We use sendmail
8.9.3 for our MTA. Is it just as likely to be sendmail that is messing
up the header?

Thanks for any help.

 +------------------------------------------------------------+
   Bruce Hauge
   AGILENT TECHNOLOGIES        EMAIL: bruce_hauge(_at_)agilent(_dot_)com
   4238 SW Research Way        PHONE: (541) 738-3675
   Corvallis, OR  97333        FAX: (541) 738-3930
 +------------------------------------------------------------+


<Prev in Thread] Current Thread [Next in Thread>