Compressed mbox local mailbox type. More...
Go to the source code of this file.
Data Structures | |
struct | CompressInfo |
Private data for compress. More... | |
Functions | |
void | mutt_comp_init (void) |
Setup feature commands. More... | |
bool | mutt_comp_can_append (struct Mailbox *m) |
Can we append to this path? More... | |
bool | mutt_comp_can_read (const char *path) |
Can we read from this file? More... | |
int | mutt_comp_valid_command (const char *cmd) |
Is this command string allowed? More... | |
Variables | |
const struct MxOps | MxCompOps |
Compressed Mailbox - Implements MxOps -. More... | |
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.
void mutt_comp_init | ( | void | ) |
Setup feature commands.
Definition at line 72 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 366 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 395 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 415 of file compress.c.