NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
23
35
36#ifndef MUTT_COMPMBOX_LIB_H
37#define MUTT_COMPMBOX_LIB_H
38
39#include <stdbool.h>
40#include <stdio.h>
41
42struct Mailbox;
43
54
61{
64 struct Expando *cmd_open;
65 long size;
66 const struct MxOps *child_ops;
67 bool locked;
68 FILE *fp_lock;
69};
70
71bool mutt_comp_can_append(struct Mailbox *m);
72bool mutt_comp_can_read(const char *path);
73int mutt_comp_valid_command(const char *cmd);
74
75extern const struct MxOps MxCompOps;
76
77#endif /* MUTT_COMPMBOX_LIB_H */
bool mutt_comp_can_append(struct Mailbox *m)
Can we append to this path?
Definition compress.c:338
int mutt_comp_valid_command(const char *cmd)
Is this command string allowed?
Definition compress.c:387
ExpandoDataCompress
Expando UIDs for Compression.
Definition lib.h:50
@ ED_CMP_FROM
'from' path
Definition lib.h:51
@ ED_CMP_TO
'to' path
Definition lib.h:52
bool mutt_comp_can_read(const char *path)
Can we read from this file?
Definition compress.c:367
const struct MxOps MxCompOps
Compressed Mailbox - Implements MxOps -.
Definition compress.c:890
Private data for compress.
Definition lib.h:61
struct Expando * cmd_open
open-hook command
Definition lib.h:64
FILE * fp_lock
fp used for locking
Definition lib.h:68
struct Expando * cmd_append
append-hook command
Definition lib.h:62
const struct MxOps * child_ops
callbacks of de-compressed file
Definition lib.h:66
bool locked
if realpath is locked
Definition lib.h:67
long size
size of the compressed file
Definition lib.h:65
struct Expando * cmd_close
close-hook command
Definition lib.h:63
Parsed Expando trees.
Definition expando.h:41
A mailbox.
Definition mailbox.h:78
Definition mxapi.h:87