NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
35#ifndef MUTT_COMPMBOX_LIB_H
36#define MUTT_COMPMBOX_LIB_H
37
38#include <stdbool.h>
39#include <stdio.h>
40
41struct Mailbox;
42
49{
52};
53
60{
63 struct Expando *cmd_open;
64 long size;
65 const struct MxOps *child_ops;
66 bool locked;
67 FILE *fp_lock;
68};
69
70void mutt_comp_init(void);
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 */
void mutt_comp_init(void)
Setup feature commands.
Definition: compress.c:90
bool mutt_comp_can_append(struct Mailbox *m)
Can we append to this path?
Definition: compress.c:337
int mutt_comp_valid_command(const char *cmd)
Is this command string allowed?
Definition: compress.c:386
ExpandoDataCompress
Expando UIDs for Compression.
Definition: lib.h:49
@ ED_CMP_FROM
'from' path
Definition: lib.h:50
@ ED_CMP_TO
'to' path
Definition: lib.h:51
bool mutt_comp_can_read(const char *path)
Can we read from this file?
Definition: compress.c:366
const struct MxOps MxCompOps
Compressed Mailbox - Implements MxOps -.
Definition: compress.c:891
Private data for compress.
Definition: lib.h:60
struct Expando * cmd_open
open-hook command
Definition: lib.h:63
FILE * fp_lock
fp used for locking
Definition: lib.h:67
struct Expando * cmd_append
append-hook command
Definition: lib.h:61
const struct MxOps * child_ops
callbacks of de-compressed file
Definition: lib.h:65
bool locked
if realpath is locked
Definition: lib.h:66
long size
size of the compressed file
Definition: lib.h:64
struct Expando * cmd_close
close-hook command
Definition: lib.h:62
Parsed Expando trees.
Definition: expando.h:41
A mailbox.
Definition: mailbox.h:79
Definition: mxapi.h:91