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 | |
| 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? | |
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 |
| 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 313 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 342 of file compress.c.