|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 25.4 GB of 70.42 GB (36.08%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
courier-0.66.1/
maildir/
- drwxrwxrwx
|
Viewing file: maildirquota.h (3.75 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
#ifndef maildirquota_h #define maildirquota_h
/* ** Copyright 1998 - 2010 Double Precision, Inc. ** See COPYING for distribution information. */
#if HAVE_CONFIG_H #include "config.h" #endif
#include <sys/types.h> #include <sys/stat.h> #include <stdio.h>
#include "numlib/numlib.h"
#ifdef __cplusplus extern "C" { #endif
#define MDQUOTA_SIZE 'S' /* Total size of all messages in maildir */ #define MDQUOTA_BLOCKS 'B' /* Total # of blocks for all messages in maildir -- NOT IMPLEMENTED */ #define MDQUOTA_COUNT 'C' /* Total number of messages in maildir */
struct maildirquota { int64_t nbytes; /* # of bytes, 0 - unlimited */ int nmessages; /* # of messages, 0 - unlimited */ };
/* ** The maildirsize file */
struct maildirsize {
int fd; /* Opened file descriptor for the maildirsize file */
char *maildir; /* Pathname to the maildir */ char *maildirsizefile; /* The name of the maildirsize file */
struct maildirquota quota; /* 1st line in maildirsize */
struct maildirquota size; /* Actual counts 2+ line */
int recalculation_needed; /* size is not calculated */
struct stat statbuf; /* The stat on the maidlirsize file */ unsigned nlines; /* # of lines in the maildirsize file */ };
/* ** maildir_openquotafile initializes a maildirsize structure from a maildirsize ** file. This is really an internal, undocumented, function. ** ** return 0 for success, -1 if the file could not be opened */
int maildir_openquotafile(struct maildirsize *info, /* Initialized */ const char * /* maildir */ );
/* ** maildir_closequotafile releases all resources allocated by maildirsize ** struct. */
void maildir_closequotafile(struct maildirsize *info);
int maildir_checkquota(struct maildirsize *, /* Opened maildir */ int64_t, /* Extra bytes planning to add/remove from maildir */ int); /* Extra messages planning to add/remove from maildir */
int maildir_addquota(struct maildirsize *, /* Opened maildir */ int64_t, /* +/- bytes */ int); /* +/- files */
int maildir_readquota(struct maildirsize *); /* Directory */
int maildir_parsequota(const char *, unsigned long *); /* Attempt to parse file size encoded in filename. Returns 0 if ** parsed, non-zero if we didn't parse. */
/* Here are some high-level functions that call the above */
/* Adding messages to the maildir, in two easy steps: */
int maildir_quota_add_start(const char *maildir, struct maildirsize *info, int64_t msgsize, int nmsgs, const char *newquota);
void maildir_quota_add_end(struct maildirsize *info, int64_t msgsize, int nmsgs);
/* When we're deleting messages, we want an unconditional quota update */
void maildir_quota_deleted(const char *maildir, int64_t nbytes, /* Must be negative */ int nmsgs); /* Must be negative */
/* Can we delete or undelete messages? This is like maildir_quota_add_start ** and maildir_quota_add_end, except that if deleted messages are included in ** the quota, they are compiled to no-ops */
int maildir_quota_delundel_start(const char *maildir, struct maildirsize *info, int64_t msgsize, int nmsgs);
void maildir_quota_delundel_end(struct maildirsize *info, int64_t msgsize, int nmsgs);
/* Set a new quota on the maildir; */
void maildir_quota_set(const char *dir, const char *quota);
/* Forcibly recalculate the maildir's quota */
void maildir_quota_recalculate(const char *maildir);
/* ** Should the following folder/file be included in the quota? ** (excludes TRASH and deleted files, if configured to do so) */
int maildirquota_countfolder(const char *folder); int maildirquota_countfile(const char *filename);
void maildir_deliver_quota_warning(const char *dir, const int percent, const char *msgquotafile);
#ifdef __cplusplus } #endif
#endif
|