[Patches] [ python-Patches-675976 ] mhlib does not obey MHCONTEXT env var

SourceForge.net noreply at sourceforge.net
Fri Dec 22 19:00:08 CET 2006


Patches item #675976, was opened at 2003-01-28 04:16
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=675976&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
>Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
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: A.M. Kuchling (akuchling)
Date: 2006-12-22 13:00

Message:
Logged In: YES 
user_id=11375
Originator: NO

The patch looks OK.
  
Regarding your questions: 1) I think the method should be documented; it
might be useful to subclasses of MH.  2) New feature, so 2.6 only.


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

Comment By: Sjoerd Mullender (sjoerd)
Date: 2003-02-13 04:48

Message:
Logged In: YES 
user_id=43607

I can assure you that I did check that checkmark.  Maybe
it's my browser in combination with SF.  We'll see if it
works this time.

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

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-12 22:02

Message:
Logged In: YES 
user_id=33168

There's no uploaded file!  You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.

Please try again.

(This is a SourceForge annoyance that we can do
nothing about. :-( )

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

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


More information about the Patches mailing list