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

From: Rev. Bob 'Bob' Crispen <crispen_at_hiwaay.net_at_hypermail-project.org>
Date: Mon, 22 Jan 2001 19:54:51 -0600
Message-ID: <19915879716.20010122195451_at_hiwaay.net>


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
Received on Tue 23 Jan 2001 03:58:54 AM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:52 PM GMT GMT