* New version 2.21
[alpine.git] / pith / repltype.h
blob01372060dfb8f6420176ffd2ae13094b4148ff28
1 /*
2 * $Id: repltype.h 769 2007-10-24 00:15:40Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2017 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_REPLTYPE_INCLUDED
18 #define PITH_REPLTYPE_INCLUDED
22 * Cursor position when resuming postponed message.
24 typedef struct redraft_pos_s {
25 char *hdrname; /* header field name, : if in body */
26 long offset; /* offset into header or body */
27 } REDRAFT_POS_S;
31 * Message Reply control structure
33 typedef struct reply_s {
34 unsigned int pseudo:1;
35 unsigned int forw:1;
36 unsigned int msgno:1;
37 unsigned int uid:1;
38 unsigned int forwarded:1;
39 char *mailbox; /* mailbox handles are valid in */
40 char *origmbox; /* above is canonical name, this is orig */
41 char *prefix; /* string to prepend reply-to text */
42 char *orig_charset;
43 union {
44 long pico_flags; /* Flags to manage pico initialization */
45 struct { /* UID information */
46 imapuid_t validity; /* validity token */
47 imapuid_t *msgs; /* array of reply'd to msgs */
48 } uid;
49 } data;
50 } REPLY_S;
55 * Flag definitions to help control reply header building
57 #define RSF_NONE 0x00
58 #define RSF_FORCE_REPLY_TO 0x01
59 #define RSF_QUERY_REPLY_ALL 0x02
60 #define RSF_FORCE_REPLY_ALL 0x04
64 * Flag definitions to help build forwarded bodies
66 #define FWD_NONE 0
67 #define FWD_ANON 1
68 #define FWD_NESTED 2
72 * Flag definitions to control composition of forwarded subject
74 #define FS_NONE 0
75 #define FS_CONVERT_QUOTES 1
78 /* exported protoypes */
81 #endif /* PITH_REPLTYPE_INCLUDED */