On Thu, Jul 26, 2001 at 10:44:21AM -0400, Peter Kovacs wrote:
> On Wed, Jul 18, 2001 at 03:14:28PM +0200, Gregor Hoffleit wrote:
> > ... but I haven't found any way to detect the name of the
> > mbox that's currently opened, and to pass this name to the shell script.
> 
> I think I may have found a solution for this idea.  I patched mx.c to
> set the current folder in the environment (attached).  

Attached is a (slightly) better patch that only sets the environment
when folder_hook is called.

-Peter

-- 
Peter D. Kovacs <[EMAIL PROTECTED]>
Software Developer
Webmachines, Inc. http://webmachines.com
--- hook.c~     Thu Jul 26 11:48:09 2001
+++ hook.c      Thu Jul 26 11:47:08 2001
@@ -274,6 +274,8 @@
   BUFFER err, token;
   char buf[STRING];
 
+  setenv( "MUTTMAILBOX", path, 1 );
+
   current_hook_type = M_FOLDERHOOK;
   
   err.data = buf;

PGP signature

Reply via email to