Compressed mbox local mailbox type. More...
#include <stdbool.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | CompressInfo |
Private data for compress. More... | |
Enumerations | |
enum | ExpandoDataCompress { ED_CMP_FROM = 1 , ED_CMP_TO } |
Expando UIDs for Compression. More... | |
Functions | |
void | mutt_comp_init (void) |
Setup feature commands. | |
bool | mutt_comp_can_append (struct Mailbox *m) |
Can we append to this path? | |
bool | mutt_comp_can_read (const char *path) |
Can we read from this file? | |
int | mutt_comp_valid_command (const char *cmd) |
Is this command string allowed? | |
Variables | |
const struct MxOps | MxCompOps |
Compressed Mailbox - Implements MxOps -. | |
Compressed mbox local mailbox type.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file lib.h.
enum ExpandoDataCompress |
Expando UIDs for Compression.
Enumerator | |
---|---|
ED_CMP_FROM | 'from' path |
ED_CMP_TO | 'to' path |
void mutt_comp_init | ( | void | ) |
Setup feature commands.
Definition at line 91 of file compress.c.
bool mutt_comp_can_append | ( | struct Mailbox * | m | ) |
Can we append to this path?
m | Mailbox |
true | Yes, we can append to the file |
false | No, appending isn't possible |
To append to a file we can either use an 'append-hook' or a combination of 'open-hook' and 'close-hook'.
A match means it's our responsibility to append to the file.
Definition at line 365 of file compress.c.
bool mutt_comp_can_read | ( | const char * | path | ) |
Can we read from this file?
path | Pathname of file to be tested |
true | Yes, we can read the file |
false | No, we can't read the file |
Search for an 'open-hook' with a regex that matches the path.
A match means it's our responsibility to open the file.
Definition at line 394 of file compress.c.
int mutt_comp_valid_command | ( | const char * | cmd | ) |
Is this command string allowed?
cmd | Command string |
1 | Valid command |
0 | "%f" and/or "%t" is missing |
A valid command string must have both "%f" (from file) and "%t" (to file). We don't check if we can actually run the command.
Definition at line 414 of file compress.c.