[Python-bugs-list] [ python-Bugs-610556 ] mhlib does not obey MHCONTEXT env var

SourceForge.net noreply@sourceforge.net
Tue, 28 Jan 2003 01:21:42 -0800


Bugs item #610556, was opened at 2002-09-17 15:59
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=610556&group_id=5470

Category: Python Library
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Sjoerd Mullender (sjoerd)
Assigned to: Nobody/Anonymous (nobody)
Summary: mhlib does not obey MHCONTEXT env var

Initial Comment:
All programs in the (N)MH suite of programs use the
MHCONTEXT environment variable to find the so-called
context file where the current folder is remembered. 
mhlib should do the same, so that it can be used in
combination with the standard (N)MH programs.

Also, when writing the context file, mhlib should
replace the Current-Folder line but keep the other
lines in tact.

The attached patch fixes both problems.  It introduces
a new method for the class MH called getcontextfile
which uses the MHCONTEXT environment variable to find
the context file, and it uses the already existing
function updateline to update the context file.

Some questions concerning this patch:
- should I document the new method or should it be an
internal method only?
- should the fix be ported to older Python versions? 
With the patch it does behave differently  if you have
an MHCONTEXT environment variable.

----------------------------------------------------------------------

>Comment By: Sjoerd Mullender (sjoerd)
Date: 2003-01-28 10:21

Message:
Logged In: YES 
user_id=43607

Created patch 675976 to be duplicate of this item since it
contains a patch.
By the way, how is it possible for a bug to stay unnoticed
for 4 months?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=610556&group_id=5470