-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkfile.h
66 lines (55 loc) · 2.04 KB
/
kfile.h
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
/* kfile.h
*/
/* This software is copyrighted as detailed in the LICENSE file. */
#define KF_GLOBAL 0
#define KF_LOCAL 1
#define KFS_LOCAL_CHANGES 0x0001
#define KFS_THREAD_CHANGES 0x0002
#define KFS_NORMAL_LINES 0x0010
#define KFS_THREAD_LINES 0x0020
#define KFS_GLOBAL_THREADFILE 0x1000
#define AUTO_KILL_THD 0x8000
#define AUTO_KILL_SBJ 0x4000
#define AUTO_KILL_FOL 0x2000
#define AUTO_KILL_1 0x1000
#define AUTO_SEL_THD 0x0800
#define AUTO_SEL_SBJ 0x0400
#define AUTO_SEL_FOL 0x0200
#define AUTO_SEL_1 0x0100
#define AUTO_OLD 0x0080
#define AUTO_KILLS 0xF000
#define AUTO_SELS 0x0F00
/* The following defines are only valid as flags to function calls, used
* in combination with the AUTO_* flags above. */
#define AFFECT_UNSEL 0
#define AFFECT_ALL 0x0001
#define ALSO_ECHO 0x0002 /* only works with [un]select_article() */
#define SET_TORETURN 0x0004 /* only works with kill_*() */
#define KF_AGE_MASK 0x003F
#define KF_DAYNUM(x) ((long)time((time_t*)NULL) / 86400 - 10490 - (x))
#define KF_MAXDAYS 30
#ifdef KILLFILES
EXT FILE* globkfp INIT(NULL); /* global article killer file */
EXT FILE* localkfp INIT(NULL); /* local (for this newsgroup) file */
EXT int kf_state; /* the state of our kill files */
EXT int kfs_local_change_clear; /* bits to clear local changes */
EXT int kfs_thread_change_set; /* bits to set for thread changes */
EXT int kf_thread_cnt; /* # entries in the thread kfile */
EXT int kf_changethd_cnt; /* # entries changed from old to new */
EXT long kf_daynum; /* day number for thread killfile */
EXT ART_NUM killfirst; /* used as firstart when killing */
#endif
/* DON'T EDIT BELOW THIS LINE OR YOUR CHANGES WILL BE LOST! */
void kfile_init _((void));
int do_kfile _((FILE*,int));
void kill_unwanted _((ART_NUM,char*,int));
void rewrite_kfile _((ART_NUM));
void update_thread_kfile _((void));
void change_auto_flags _((ARTICLE*,int));
void clear_auto_flags _((ARTICLE*));
void perform_auto_flags _((ARTICLE*,int,int,int));
int edit_kfile _((void));
#ifdef KILLFILES
void open_kfile _((int));
#endif
void kf_append _((char*,bool_int));