[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] Unfolding header value
From: |
Alain Magloire |
Subject: |
Re: [bug-mailutils] Unfolding header value |
Date: |
Fri, 4 Jul 2003 00:29:28 -0400 (EDT) |
>
>
> --J/dobhs11T7y2rNN
> Content-Type: text/plain; charset=us-ascii
> Content-Disposition: inline
>
> Quoteing address@hidden, on Wed, Jul 02, 2003 at 11:46:49AM -0400:
> > In general, what is the best policy?
> >
> > (1) in this case:
> >
> > Received: from hub.ott.qnx.com (address@hidden [192.168.2.2]) by
> > smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id LAA10830 for
> > <address@hidden>; Fri, 13 Sep 2002 11:56:09 -0400
> > Received: from luna.pizzashack.org (h52544c185a20.ne.client2.attbi.com
> > [24.147.42.69])
> > by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id LAA15686
> > for <address@hidden>; Fri, 13 Sep 2002 11:55:21 -0400
> > Received: (from address@hidden)
> > by luna.pizzashack.org (8.11.6/8.11.2) id g8DFuj220932;
> > Fri, 13 Sep 2002 11:56:45 -0400
> >
> > What should header_get_value return ?
>
> I'd say header_get_value() should take an index, and get the value of
> the indexed field.
>
> IMAPd used to have a bug where all the values of all Received fields
> were concatenated into one value. This bug actually originated in
> header_get_field() concatenating fields.
>
> I guess no IMAP clients actuall do a fetch of the Received field, so
> noone really cares, and the interesting fields aren't allowed to have
> duplicates (to, subject, resent-from, date).
>
> > (2) header_get_value() is also used in imap4d etc ... to return header
> > field values.
> > If we fold and collapse headers, how to unfold and unduplicate(see the
> > "Received:" case)
> >
> > (3) maybe an approach is to add new methods/API to header_t to handle the
> > cases.
>
>
> I started to work on the header_get functions, and bogged down (the
> changes went deep). Note it allows getting of complete fields with all
> the folded white space and field names intact (this what IMAP would
> call), and what users might want - getting unfolded values. I think I
> have some implementation, but I can't really see, I don't have CVS
> access working right now, and I'm going on vacation.
What happen to your write access ?
The bad news is that I'm going off tomorow also. But if could generate
a diff -u, I can take a closer when back from vacation. Just post it
to the list usually when I get back my mailbox is 4000 emails.
This were I **really** appriecate the work you and sergey did on sieve 8-)