]> diplodocus.org Git - minc/commitdiff
Set MHCONTEXT environment variable to allow (a little) more
authorepg <>
Sat, 28 Dec 2002 00:42:57 +0000 (00:42 +0000)
committerepg <>
Sat, 28 Dec 2002 00:42:57 +0000 (00:42 +0000)
concurrency.  Document the new file.

minc

diff --git a/minc b/minc
index 82734c86186da682c97ab9b6eb323e28a72348ac..04a7d68409c06946b19fc2b1073382b10dd245c1 100755 (executable)
--- a/minc
+++ b/minc
@@ -160,6 +160,17 @@ Where minc logs what it would do; used in -n mode.
 
 =back
 
 
 =back
 
+=item `mhpath +`/.minc.context
+
+minc uses this file for context (i.e. current folder) instead of
+`mhpath +`/context.  This allows you some amount of freedom to use mh
+while minc is running.  For example, you can changed folders without
+causing a message to be stored in the wrong folder.  Care must still
+be taken, however, about the unseen sequence; if you change it
+(whether via show, or mark, or anything else) while in the same folder
+as minc, it is likely the new message minc stores will not end up
+marked unseen.
+
 =cut
 
 our %FILTERS;
 =cut
 
 our %FILTERS;
@@ -186,6 +197,8 @@ if ($run) {
     $logfile = $mh . '/logs/dryrun.log';
 }
 
     $logfile = $mh . '/logs/dryrun.log';
 }
 
+$ENV{"MHCONTEXT"} = $mh . '/.minc.context';
+
 \f
 ###############################################################################
 # Logging
 \f
 ###############################################################################
 # Logging