Mbox local mailbox type. More...
Go to the source code of this file.
Data Structures | |
struct | MboxAccountData |
Mbox-specific Account data -. More... | |
Macros | |
#define | MMDF_SEP "\001\001\001\001\n" |
Functions | |
enum MxStatus | mbox_check (struct Mailbox *m, struct stat *st, bool check_stats) |
enum MailboxType | mbox_path_probe (const char *path, const struct stat *st) |
Is this an mbox Mailbox? - Implements MxOps::path_probe() -. More... | |
void | mbox_reset_atime (struct Mailbox *m, struct stat *st) |
Reset the access time on the mailbox file. More... | |
bool | mbox_test_new_folder (const char *path) |
Test if an mbox or mmdf mailbox has new mail. More... | |
Variables | |
const struct MxOps | MxMboxOps |
Mbox Mailbox - Implements MxOps -. More... | |
const struct MxOps | MxMmdfOps |
MMDF Mailbox - Implements MxOps -. More... | |
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 mbox_reset_atime | ( | struct Mailbox * | m, |
struct stat * | st | ||
) |
Reset the access time on the mailbox file.
m | Mailbox |
st | Timestamp |
if mailbox has at least 1 new message, sets mtime > atime of mailbox so mailbox check reports new mail
Definition at line 851 of file mbox.c.
bool mbox_test_new_folder | ( | const char * | path | ) |
Test if an mbox or mmdf mailbox has new mail.
path | Path to the mailbox |
true | The folder contains new mail |
Definition at line 824 of file mbox.c.