Re[2]: Could not open the ms-word document attachement, once archived

---------

From: Rev. Bob 'Bob' Crispen (crispen@hiwaay.net)
Date: Mon Jan 22 2001 - 19:54:51 CST


Alas, everything was included except the bad file!

Well, never mind. I think this will do the trick.

Go to the file parse.c and look around line 2004, and you'll see the
following:

                            /*
                             * Saving of the attachments is being done
                             * inline as they are encountered. The
                             * directories must exist first...
                             */

                            if (binname) {
                                binfile = open(binname, O_WRONLY | O_CREAT | O_BINARY,
                                               set_filemode);

Between the comment block and the "if" statement, put the following:

#ifdef O_BINARY
#define HM_OPENMASK (O_WRONLY | O_CREAT | O_BINARY)
#else
#define HM_OPENMASK (O_WRONLY | O_CREAT)
#endif

Then change the right-hand side of the assignment statement to binfile
so that it reads:

                            if (binname) {
                                binfile = open(binname, HM_OPENMASK,
                                               set_filemode);

go back up to the main directory and type "make", and that should work
for you.

If that doesn't work, let me know, and please send me a copy of the
bad file.

-- 
Rev. Bob "Bob" Crispen
crispen at hiwaay dot net
6.6.6.0 - IP address of www.beast.com

---------

This archive was generated by hypermail 2.1.5.