[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Mutt now Y2k compliant :-) (was Re: [LI] Mutt not Y2k compliant)



On Tue, Jan 11, 2000 at 10:41:34PM +0530, Suresh Ramasubramanian wrote:
> Thus spake Manoj Victor Mathew:
> > Here is a portion my Mutt index.
> >   83     Feb 16 2036 23:55  bobby p rajan  ( 0.7K) mounting NTFSpartitions
> 
> > Date: 10 Jan 00 04:57:31 MST
> 
> This is rather illegal, RFC wise.  So ~any~ MUA generating such
> crappy date headers should take the blame, NOT Mutt.  I think pmail.net
> does something similar.
> 

I agree!  Mutt is not to blame.

> 
> > Any other suggestions? Or patches?
> 
> You don't need to do anything.  Whoever makes the mail client should make
> a few changes.
> 

I disagree!  Mutt being free software, I have the freedom to modify Mutt
and distribute those changes. That is the beauty of free software.
If Mutt was proprietary software, then all I can do is wait for the Mutt
developers to fix it. If Mutt was only open-source, with restrictions on
redistribution, I could not share my patched version of Mutt with others.

But it is very fortunate that Mutt is free software. Hence I did modify
Mutt sources, and now I have a problem free Mutt :-)

You too can benefit from my small effort. I shall soon release a binary
(.deb) of the patched version.  .rpms left to other volunteers.

But most Mutt users have enough expertise to patch-compile-and-use
programs ;-)  Hence this patch alone might be enough.

(patch for Mutt-1.0i.tar.gz available from  ftp://ftp.guug.de/pub/mutt)
#=========<start snipping here>==========
--- parse.c     Wed Sep 29 12:17:01 1999
+++ parse.c     Wed Jan 12 20:12:04 2000
@@ -711,6 +711,11 @@

       case 2: /* year */
        tm.tm_year = atoi (t);
+
+       /* y2k fix added by MVM ;-) */
+       if (tm.tm_year <= 69)   /* Some broken MUAs use only 2 digit year for 'Date:' */
+         tm.tm_year += 100;    /* This makes mutt display such dates correctly */
+
        if (tm.tm_year >= 1900)
          tm.tm_year -= 1900;
        break;
#=========<stop snipping here>===========

-- 
Do you support 'free software'?  Visit http://mvm.linuxbox.com
Visit the ILUG-Cochin home page at http://www.netshooter.com/ilug-cochin

Manoj Victor Mathew  (GPG#: 3D96A9B9)
Cochin, India.
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.