File: attr.h

package info (click to toggle)
emil 2.1.0-beta9-9
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,152 kB
  • ctags: 587
  • sloc: ansic: 10,369; yacc: 412; makefile: 326; sh: 172
file content (119 lines) | stat: -rw-r--r-- 3,532 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/*
** 
** Copyright (C) 1993 Swedish University Network (SUNET)
** 
** 
** This program is developed by UDAC, Uppsala University by commission
** of the Swedish University Network (SUNET). 
** 
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
** 
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITTNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
** 
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
** 
** 
**                                           Martin.Wendel@its.uu.se
** 				             Torbjorn.Wictorin@its.uu.se
** 
**                                           ITS	
**                                           P.O. Box 887
**                                           S-751 08 Uppsala
**                                           Sweden
** 
*/
/*
 * Message Structure 
 */

struct message {
  struct header *h;
  struct data *sd;
  struct data *sdl;
  struct data *td;
  struct data *tdl;
  struct data *rd;
  struct data *rdl;
  int level;
  int children;
  int headerdone;
  struct message *sibling;
  struct message *child;
  struct message *bigsib;
  struct message *parent;
  struct config_struct * c;
};

struct info {
  int a;
};
/*
 * Header structure
 */


#define UNIXFROM 1 /* Unix from line flag */
#define EMHEADER   2 /* Regular header line flag */

struct header {
  int type;        /* Unix from line or regular header */
  int format;      /* RFC822, MIME or MAILTOOL */
  struct data *field;     /* Field  */
  struct data *value;     /* Value */
  struct hprs *hvalue;
  struct header *next;
};

struct hprs {
  int encoding;
  int type;
  int types;
  int pstart;
  int pend;
  char *charset;
  struct data *sd;
  struct data *td;
  struct hprs *sibling;
  struct hprs *child;
};

/*
 * Data structure
 */

struct data {
  char *type;
  unsigned char *name;
  unsigned char *appletype;
  unsigned char *nameext;
  unsigned char *description;
  unsigned char *charset;   /* Charset */
  unsigned char *startbound;/* Start boundary */
  unsigned char *endbound;  /* End boundary */
  unsigned long length;      /* Predefined bodypart length */
  unsigned long bodylines;   /* Some predefined number of bodylines in the part */
  unsigned int format;      /* Main format of the message */
  unsigned int encoding;    /* E7BIT, EBINHEX, EUUENCODE, EBASE64, EQP or EMULTIPART */
  unsigned int check;       /* Check for these encodings */
  unsigned int applefile;
  unsigned long end;        /* End of defined data */
  unsigned long size;       /* Size of data area */
  unsigned long bodystart;  /* Start of bodypart data */
  unsigned long bodyend;    /* End of bodypart data */
  unsigned long offset;     /* Current position in data area */
  unsigned long linestart;  /* Linecount at start of body part */
  unsigned long lineend;    /* Linecount at end of bodypart */
  unsigned long loffset;    /* Current linecount */
  unsigned long lend;       /* Linecount of end of defined data */
  int count;
  unsigned char *contents;  /* Pointer to data area */
  struct data *next; /* Next data struct */
};