Update of /cvsroot/mahogany/M/src/mail
In directory sc8-pr-cvs1:/tmp/cvs-serv16933/src/mail

Modified Files:
        MailMH.cpp 
Log Message:
fixed MH root path initialization

Index: MailMH.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/MailMH.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -b -u -2 -r1.15 -r1.16
--- MailMH.cpp  19 Sep 2003 13:31:22 -0000      1.15
+++ MailMH.cpp  2 Oct 2003 00:27:58 -0000       1.16
@@ -191,5 +191,4 @@
       // we can use cclient MH logic if this file exists - but not if it
       // doesn't (and never under Windows)
-
 #ifdef OS_UNIX
       String home = getenv("HOME");
@@ -224,17 +223,7 @@
       else
       {
-         // retrieve the MH path (notice that we don't always find it ourself -
-         // sometimes it's found only by the call to mh_isvalid)
-
-         // calling mail_parameters doesn't work because of a compiler bug: gcc
-         // mangles mh_parameters function completely and it never returns
-         // anything for GET_MHPATH - I didn't find another workaround
-#if 1
-         (void)mail_parameters(NULL, GET_MHPATH, &tmp);
-
-         gs_MHRootDir = tmp;
-#else // 1
-         gs_MHRootDir = mh_getpath();
-#endif // 0/1
+         // retrieve the MH path (notice that we don't always find it ourself
+         // as sometimes it's found only by the call to mh_isvalid)
+         gs_MHRootDir = (char *)mail_parameters(NULL, GET_MHPATH, &tmp);
 
          // the path should have a trailing [back]slash



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to