Hmm.  This stuff has been reworked a few times since I last worked on it,
but it looks like you would be interested in following the following code
paths: 
  
 CtdlMakeMessage() in msgbase.c (code to read in messages ... this is called
by the SMTP server and others) 
  
 convert_internet_message() 
 convert_field() 
 and especially convert_internet_message_buf() in internet_addressing.c (that
last one is where the header unfolding begins to happen) 
  
  
 In case you're not aware, Citadel stores the headers it cares the most about
as top-level fields in the message structure, while less important fields
are left in the body in their native RFC822 format.  The top-level headers
are unfolded before being stored in the message structure. 
  
 What you're looking to do will probably be pretty straightforward -- find
the RFC section that describes header folding and unfolding, compare what
it
describes to the code referenced above, and modify accordingly.  Obviously
if you figure it out we will cheerfully accept a patch. 
 

Reply via email to