* New version 2.21.999
[alpine.git] / pith / pineelt.h
blob2ed46aa1fe5a637875875f24a534a911f3e7dd12
1 /*
2 * $Id: pineelt.h 1142 2008-08-13 17:22:21Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2018 Eduardo Chappa
6 * Copyright 2006 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PITH_PINEELT_INCLUDED
18 #define PITH_PINEELT_INCLUDED
21 #include "../pith/thread.h"
22 #include "../pith/indxtype.h"
26 * The two structs below hold all knowledge regarding
27 * messages requiring special handling
29 typedef struct part_exception_s {
30 char *partno;
31 int handling;
32 struct part_exception_s *next;
33 } PARTEX_S;
37 * Pine's private per-message data stored on the c-client's elt
38 * spare pointer.
40 typedef struct pine_elt {
41 PINETHRD_S *pthrd;
42 PARTEX_S *exceptions;
43 ICE_S *ice;
44 /* per-message pine state bits */
45 unsigned int hidden:1;
46 unsigned int excluded:1;
47 unsigned int selected:1;
48 unsigned int searched:1;
49 unsigned int unsorted:1;
50 unsigned int collapsed:1;
51 unsigned int colhid:1;
52 unsigned int colhid2:1;
53 unsigned int tmp:1;
54 } PINELT_S;
57 /* exported protoypes */
58 void msgno_free_exceptions(PARTEX_S **);
61 #endif /* PITH_PINEELT_INCLUDED */