diff options
author | Bruce A. Mah <bmah@FreeBSD.org> | 2001-11-30 21:12:20 +0000 |
---|---|---|
committer | Bruce A. Mah <bmah@FreeBSD.org> | 2001-11-30 21:12:20 +0000 |
commit | 11752db6bcc6ce9200a0e1f0f1098998c6cd3922 (patch) | |
tree | 989b8164741f287707c8286b8ec9d552bffbb8ca /mail/exmh2/files/patch-mh.tcl | |
parent | The patch for using mx.DateTime instead of DateTime was incomplete. (diff) |
Add a patch to fix a bug with continuation lines in ~/.mh_profile.
While I'm here, also patch a file descriptor leak.
patch-mh.tcl lib/mh.tcl 1.17->1.19
Bump PORTREVISION.
Submitted by: "Louis A. Mamakos" <louie@TransSys.COM>
Obtained from: exmh CVS repository
Notes
Notes:
svn path=/head/; revision=50777
Diffstat (limited to 'mail/exmh2/files/patch-mh.tcl')
-rw-r--r-- | mail/exmh2/files/patch-mh.tcl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/exmh2/files/patch-mh.tcl b/mail/exmh2/files/patch-mh.tcl new file mode 100644 index 000000000000..99eb7570fe56 --- /dev/null +++ b/mail/exmh2/files/patch-mh.tcl @@ -0,0 +1,30 @@ +Index: lib/mh.tcl +=================================================================== +RCS file: /cvsroot/exmh/exmh/lib/mh.tcl,v +retrieving revision 1.17 +retrieving revision 1.19 +diff -u -r1.17 -r1.19 +--- lib/mh.tcl 2001/07/09 16:45:33 1.17 ++++ lib/mh.tcl 2001/11/21 06:32:08 1.19 +@@ -765,6 +765,13 @@ + while {![eof $input]} { + set numBytes [gets $input line] + if {$numBytes > 0} { ++ if {[regexp {^\s+(.*)$} $line foo other]} { ++ # handle continued lines ++ if {[info exists key]} { ++ append mhProfile($key) " [string trim $other]" ++ } ++ continue ++ } + set parts [split $line :] + set key [string tolower [lindex $parts 0]] + set other [lindex $parts 1] +@@ -772,6 +779,7 @@ + set mhProfile($key) $value + } + } ++ close $input + if {![info exists mhProfile(path)]} { + if {[info exists mhProfile(FAIL)]} { + puts stderr "No Path entry in your [file tail $mhProfile(profile)] file." |