<<< Date Index >>>     <<< Thread Index >>>

Re: mutt/2205: problem with long lines in mailcap files



The following reply was made to PR mutt/2205; it has been noted by GNATS.

From: Gregor Zattler <telegraph@xxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: 
Subject: Re: mutt/2205: problem with long lines in mailcap files
Date: Thu, 27 Apr 2006 16:50:10 +0200

 Hi TAKAHASHI, mutt developers,
 * TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx> [26. Apr. 2006]:
 > The following reply was made to PR mutt/2205; it has been noted by GNATS.
 > 
 > From: TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx>
 > To: bug-any@xxxxxxxxxxxxx
 > Cc: 
 > Subject: Re: mutt/2205: problem with long lines in mailcap files
 > Date: Wed, 26 Apr 2006 23:54:07 +0900
 > 
 >  * Wed Apr 26 2006 Gregor Zattler <telegraph@xxxxxxx>
 >  >  > >Fix:
 >  >  > use shorter mailcap entrys.
 >  >  
 >  >  Obviously this is not a fix but a work around.  I don't have a
 >  >  clue how to fix this.  Perhaps a problem with string handling?
 >  
 >  Yeah, maybe you want HUGE_STRING instead of LONG_STRING in rfc1524.c.
 >  
 >  ==============================
 >  $ grep STRING rfc1524.c                 
 >    char buf[LONG_STRING];
 >    char type[LONG_STRING];
 >          char param[STRING];
 >          char pvalue[STRING];
 >              len = mutt_strlen (test_command) + STRING;
 >    mutt_check_lookup_list (a, type, SHORT_STRING);
 >  ==============================
 >  $ grep 'define.*STRING' lib.h                 
 >  # define HUGE_STRING    5120
 >  # define LONG_STRING     1024
 >  # define STRING          256
 >  # define SHORT_STRING    128
 >  ==============================
 
 o.k. first I changed the ..._STRING sizes in lib.h by a factor of
 10: 51200, 10240, 2560, 1280.  This did the trick.
 
 I then changed them back to the original values and changed
 LONG_STRING to HUGE_STRING in rfc1524.c.  This did not solve the
 problem.  I then exchanged the occourences of *STRING one after
 the other with the next larger type.  This did not help...
 
   
 
 
 Ciao, Gregor
 -- 
  -... --- .-. . -.. ..--.. ...-.-