home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / lib / libmime / mimesun.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  74 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /* mimesun.h --- definition of the MimeSunpedText class (see mimei.h)
  20.    Created: Jamie Zawinski <jwz@netscape.com>, 15-May-96.
  21.  */
  22.  
  23. #ifndef _MIMESUN_H_
  24. #define _MIMESUN_H_
  25.  
  26. #include "mimemult.h"
  27.  
  28. /* MimeSunAttachment is the class for X-Sun-Attachment message contents, which
  29.    is the Content-Type assigned by that pile of garbage called MailTool.  This
  30.    is not a MIME type per se, but it's very similar to multipart/mixed, so it's
  31.    easy to parse.  Lots of people use MailTool, so what the hell.
  32.  
  33.    The format is this:
  34.  
  35.     = Content-Type is X-Sun-Attachment
  36.     = parts are separated by lines of exactly ten dashes
  37.     = just after the dashes comes a block of headers, including:
  38.  
  39.       X-Sun-Data-Type: (manditory)
  40.             Values are Text, Postscript, Scribe, SGML, TeX, Troff, DVI,
  41.             and Message.
  42.  
  43.       X-Sun-Encoding-Info: (optional)
  44.               Ordered, comma-separated values, including Compress and Uuencode.
  45.  
  46.       X-Sun-Data-Name: (optional)
  47.               File name, maybe.
  48.  
  49.       X-Sun-Data-Description: (optional)
  50.             Longer text.
  51.  
  52.       X-Sun-Content-Lines: (manditory, unless Length is present)
  53.             Number of lines in the body, not counting headers and the blank
  54.             line that follows them.
  55.  
  56.       X-Sun-Content-Length: (manditory, unless Lines is present)
  57.               Bytes, presumably using Unix line terminators.
  58.  */
  59.  
  60. typedef struct MimeSunAttachmentClass MimeSunAttachmentClass;
  61. typedef struct MimeSunAttachment      MimeSunAttachment;
  62.  
  63. struct MimeSunAttachmentClass {
  64.   MimeMultipartClass multipart;
  65. };
  66.  
  67. extern MimeSunAttachmentClass mimeSunAttachmentClass;
  68.  
  69. struct MimeSunAttachment {
  70.   MimeMultipart multipart;
  71. };
  72.  
  73. #endif /* _MIMESUN_H_ */
  74.