Invalid Headers

Joshua Schmidlkofer menion at asylumwear.com
Sat Dec 7 11:44:44 EST 2002


On Sat, 2002-12-07 at 06:23, Ken Murchison wrote:
> Joshua Schmidlkofer wrote:
> > 
> > I have about 50,000 messages in a maildir.   I am trying to import them
> > into my Cyrus mailbox, and I have gotten one to import successfully.  I
> > continually get a message 'invalid headers'.  Mozilla [1.2.1] says:
> > 
> > The current command did not succeed the mail server responded: Message
> > contains invalid headers
> 
> What version of Cyrus?
> 
> 
> > 
> > I have tried a variety of messages here are some sample headers:
> > 
> > [fgom Evo]
> > <snip>
> > Return-Path: <redhat-list-admin at redhat.com>
> > Delivered-To: menion at asylumwear.com
> > Received: (qmail 15633 invoked from network); 12 Nov 2002 05:41:23 -0000
> > Received: from localhost (HELO xxxxx.xxxx) (127.0.0.1) by localhost with
> >         SMTP; 12 Nov 2002 05:41:23 -0000
> > >From redhat-list-request at redhat.com  Mon Nov 11 21: 41:22 2002
>   ^^^^^^
> Older versions (< 2.1.3) would choke on this (didn't like '>').
> 
> 
> > Received: from UNKNOWN(66.187.233.211), claiming to be
> > "listman.redhat.com"
> >         via SMTP by  mail.asylumwear.com, id smtpdnx8HDj; Mon Nov 11
> > 21:41:18 2002
> > Received: from listman.redhat.com (localhost.localdomain [127.0.0.1]) by
> >         listman.redhat.com (Postfix) with ESMTP id E46FD3EA21 for
> >         <menion at asylumwear.com>; Tue, 12 Nov 2002 00:41:17 -0500 (EST)
> > Subject: Welcome to the "redhat-list" mailing list
> > From: redhat-list-request at redhat.com
> > To: menion at asylumwear.com
> > X-No-Archive: yes
> > X-Ack: no
> > Sender: redhat-list-admin at redhat.com
> > Errors-To: redhat-list-admin at redhat.com
> > X-BeenThere: redhat-list at redhat.com
> > X-Mailman-Version: 2.0.1
> > Precedence: bulk
> > List-Help: <mailto:redhat-list-request at redhat.com?subject=help>
> > List-Post: <mailto:redhat-list at redhat.com>
> > List-Subscribe:
> > <https://listman.redhat.com/mailman/listinfo/redhat-list>,
> >         <mailto:redhat-list-request at redhat.com?subject=subscribe>
> > List-Id: General Red Hat Linux discussion list <redhat-list.redhat.com>
> > List-Unsubscribe:
> >         <https://listman.redhat.com/mailman/listinfo/redhat-list>,
> >         <mailto:redhat-list-request at redhat.com?subject=unsubscribe>
> > List-Archive: <https://listman.redhat.com/pipermail/redhat-list/>
> > Message-Id: <20021112054117.E46FD3EA21 at listman.redhat.com>
> > Date: Tue, 12 Nov 2002 00:41:17 -0500 (EST)
> > X-Spam-Status: No, hits=-1.1 required=5.0 tests=NO_REAL_NAME
> > version=2.30
> > X-Spam-Level:
> > X-Evolution-Source: imap://menion@xxxxx.xxxx/
> > Mime-Version: 1.0
> > <snip>
> > 
> > from Mozilla:
> > <snip>
> > From 060402 at out1.jobseekernews.net Thu Jun  6 00:46:03 2002
>   ^^^^^
> I believe that it will still choke on this, as it is an illegal header
> (no ':').
> 
> 
> > Return-Path: <060402 at out1.jobseekernews.net>
> > Received: from out1.jobseekernews.net ([208.147.43.251] verified)
> >   by zipcode.neonova.net (CommuniGate Pro SMTP 3.5.9)
> >   with ESMTP id 87870014 for menion at fmtc.com; Thu, 06 Jun 2002 03:49:20
> > -0400
> > Received: from 208.147.47.159 [208.147.47.159]
> >         by out1.jobseekernews.net [208.147.43.251]
> >         with SMTP (MDaemon.PRO.v5.0.5.R)
> >         for <menion at fmtc.com>; Thu, 06 Jun 2002 03:45:20 -0400
> > From: JSN <060402 at out1.jobseekernews.net>
> > To: menion at fmtc.com
> > Subject: Free Information from Capella University
> > Date: Thu, 6 Jun 2002 03:46:03 -0400
> > X-Mailer: QUALCOMM Windows Eudora Version 5.0
> > X-MDRemoteIP: 208.147.47.159
> > X-Return-Path: 060402 at out1.jobseekernews.net
> > X-MDaemon-Deliver-To: menion at fmtc.com
> > Reply-To: 060402 at out1.jobseekernews.net
> > Message-ID: <auto-000087870014 at zipcode.neonova.net>
> > Status: R
> > X-Status: N
> > </snip>

Thanks for the pointers Ken.   Sorry I completely forgot to put anything
usefull in my post:

Cyrus v2.1.10, [thanks to Simon's wonderful RPMS], SASL 2.1.7 [stock
redhat], Evolution 1.2, and Mozilla 1.2.1 as the MUAs.

If I insert a ':' in the From line, it breaks Mozilla, but I will make a
little snake [Python] to see if I can control the environment better and
try again.


Is there a MIME header validator that is written?  In Perl, or Python,
well... anything but C++ would do.


-- 
VB programmers ask why no one takes them seriously, 
it's somewhat akin to a McDonalds manager asking employees 
why they don't take their 'career' seriously.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20021207/3fc9ad6c/attachment.bin


More information about the Info-cyrus mailing list