[continued from previous message]
+ /* Is mime type multipart/report; report-type=delivery-status; ? */
+
+ int mime_type_is_dsn(p)
+ mime_t *p;
+ {
+ if (p->magic != MIME_magic)
+ mime_panic(__FILE__,__LINE__,"mime_type_is_dsn",
+ "Bad magic number");
+
+ if (p->TYPE) {
+ int Flags = get_type_flags(p->TYPE);
+
+ DPRINT(Debug,13,(&Debug,
+ "mime_type_is_dsn(%p) << type: %p=%s/%s\n",
+ p,
+ p->TYPE,
+ get_major_type_name(p->TYPE),
+ get_subtype_name(p->TYPE)));
+
+ if (Flags) {
+ DPRINT(Debug,13,(&Debug, " Flags: %s%s%s%s%s%s%s\n",
+ (Flags & MIME_RFC822) ? " MIME_RFC822" : "",
+ (Flags & MIME_MIXED) ? " MIME_MIXED" : "",
+ (Flags & MIME_DIGEST) ? " MIME_DIGEST" : "",
+ (Flags & MIME_ALTERNATIVE) ? " MIME_ALTERNATIVE" : "",
+ (Flags & MIME_SIGNED) ? " MIME_SIGNED" : "",
+ (Flags & MIME_ENCRYPTED) ? " MIME_ENCRYPTED" : "", + (Flags & MIME_REPORT) ? " MIME_REPORT" : ""
+ ));
+ }
+
+ if (0 != (Flags & MIME_REPORT)) {
+
+ if (p->TYPE_opts) {
+
+ const char * pv = get_mime_param_compat(p->TYPE_opts,"report-type");
+
+ if (pv) {
+ DPRINT(Debug,13,(&Debug, " report-type: %s\n",pv));
+
+ /* Is this case sensitive */
+ if (0 == istrcmp(pv,"delivery-status")) {
+
+ DPRINT(Debug,13,(&Debug,
+ "mime_type_is_dsn(%p) = 1\n",
+ p));
+
+ return 1;
+ }
+ } else {
+ DPRINT(Debug,13,(&Debug, " No report-type\n"));
+ }
+ } else {
+ DPRINT(Debug,13,(&Debug, " No paramaters on type\n"));
+ }
+ }
+ }
+
+ DPRINT(Debug,13,(&Debug,
+ "mime_type_is_dsn(%p) = 0\n",
+ p));
+
+ return 0;
+ }
+
+
/*
* Local Variables:
* mode:c
Index: elmME+.2.5.alpha60/melib/mime_decode.c
*** elmME+.2.5.alpha54/melib/mime_decode.c Tue Apr 20 20:32:06 2021
--- elmME+.2.5.alpha60/melib/mime_decode.c Fri Sep 2 20:38:19 2022 ***************
*** 1,7 ****
! static char rcsid[] = "@(#)$Id: mime_decode.c,v 2.36 2021/01/17 18:53:16 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.36 $ $State: Exp $
*
* Modified by: Kari Hurtta <
[email protected]>
* (was
[email protected],
[email protected])
--- 1,7 ----
! static char rcsid[] = "@(#)$Id: mime_decode.c,v 2.38 2022/08/06 08:01:51 hurtta Exp $";
/******************************************************************************
! * The Elm (ME+) Mail System - $Revision: 2.38 $ $State: Exp $
*
* Modified by: Kari Hurtta <
[email protected]>
* (was
[email protected],
[email protected])
***************
*** 208,253 ****
charset_t bodydefcharset));
- #if DEBUG
- static char * debug_f P_((in