CVSROOT: /sources/nmh Module name: nmh Changes by: David Levine <levine> 06/10/24 14:31:40
Modified files: . : ChangeLog uip : sendsbr.c Log message: * uip/sendsbr.c: with attachformat values of 1 or 2, add name= portion to Content-Type header. This makes them consistent with attachformat value 0. And it allows mhstore to use that (file)name when extracting attachments. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/nmh/ChangeLog?cvsroot=nmh&r1=1.245&r2=1.246 http://cvs.savannah.gnu.org/viewcvs/nmh/uip/sendsbr.c?cvsroot=nmh&r1=1.13&r2=1.14 Patches: Index: ChangeLog =================================================================== RCS file: /sources/nmh/nmh/ChangeLog,v retrieving revision 1.245 retrieving revision 1.246 diff -u -b -r1.245 -r1.246 --- ChangeLog 27 Aug 2006 01:19:39 -0000 1.245 +++ ChangeLog 24 Oct 2006 14:31:40 -0000 1.246 @@ -1,3 +1,10 @@ +2006-10-24 David Levine <[EMAIL PROTECTED]> + + * uip/sendsbr.c: with attachformat values of 1 or 2, add + name= portion to Content-Type header. This makes them + consistent with attachformat value 0. And it allows mhstore + to use that (file)name when extracting attachments. + 2006-08-26 Josh Bressers <[EMAIL PROTECTED]> * configure.in: If we're not using dotlocking, there is no need to set Index: uip/sendsbr.c =================================================================== RCS file: /sources/nmh/nmh/uip/sendsbr.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -b -r1.13 -r1.14 --- uip/sendsbr.c 30 Mar 2006 22:20:02 -0000 1.13 +++ uip/sendsbr.c 24 Oct 2006 14:31:40 -0000 1.14 @@ -2,7 +2,7 @@ /* * sendsbr.c -- routines to help WhatNow/Send along * - * $Id: sendsbr.c,v 1.13 2006/03/30 22:20:02 levine Exp $ + * $Id: sendsbr.c,v 1.14 2006/10/24 14:31:40 levine Exp $ * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -498,8 +498,9 @@ } else { /* Suppress Content-Id, insert simple Content-Disposition. */ (void) fprintf (composition_file, - "#%s <>{attachment}", - content_type); + "#%s; name=\"%s\" <>{attachment}", + content_type, + ((p = strrchr(file_name, '/')) == (char *)0) ? file_name : p + 1); } break; @@ -514,8 +515,9 @@ /* Suppress Content-Id, insert Content-Disposition with modification date. */ (void) fprintf (composition_file, - "#%s <>{attachment; modification-date=\"%s\"}", + "#%s; name=\"%s\" <>{attachment; modification-date=\"%s\"}", content_type, + ((p = strrchr(file_name, '/')) == (char *)0) ? file_name : p + 1, dtime (&st.st_mtime, 0)); } _______________________________________________ Nmh-commits mailing list Nmh-commits@nongnu.org http://lists.nongnu.org/mailman/listinfo/nmh-commits