Postfix3.3.1
データ構造 | マクロ定義 | 関数 | 変数
postsuper.c ファイル
#include <sys_defs.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <signal.h>
#include <stdio.h>
#include <utime.h>
#include <mymalloc.h>
#include <msg.h>
#include <msg_syslog.h>
#include <vstream.h>
#include <msg_vstream.h>
#include <scan_dir.h>
#include <vstring.h>
#include <safe.h>
#include <set_ugid.h>
#include <argv.h>
#include <vstring_vstream.h>
#include <sane_fsops.h>
#include <myrand.h>
#include <warn_stat.h>
#include <clean_env.h>
#include <mail_task.h>
#include <mail_conf.h>
#include <mail_params.h>
#include <mail_version.h>
#include <mail_queue.h>
#include <mail_open_ok.h>
#include <file_id.h>
#include <mail_parm_split.h>

[ソースコード]

データ構造

struct  queue_info
 

マクロ定義

#define MAIL_QUEUE_INTERNAL
 
#define MAX_TEMP_AGE   (60 * 60 * 24) /* temp file maximal age */
 
#define STR   vstring_str /* silly little macro */
 
#define ACTION_STRUCT   (1<<0) /* fix file organization */
 
#define ACTION_PURGE   (1<<1) /* purge old temp files */
 
#define ACTION_DELETE_ONE   (1<<2) /* delete named queue file(s) */
 
#define ACTION_DELETE_ALL   (1<<3) /* delete all queue file(s) */
 
#define ACTION_REQUEUE_ONE   (1<<4) /* requeue named queue file(s) */
 
#define ACTION_REQUEUE_ALL   (1<<5) /* requeue all queue file(s) */
 
#define ACTION_HOLD_ONE   (1<<6) /* put named queue file(s) on hold */
 
#define ACTION_HOLD_ALL   (1<<7) /* put all messages on hold */
 
#define ACTION_RELEASE_ONE   (1<<8) /* release named queue file(s) */
 
#define ACTION_RELEASE_ALL   (1<<9) /* release all "on hold" mail */
 
#define ACTION_STRUCT_RED   (1<<10) /* fix long queue ID inode fields */
 
#define ACTION_DEFAULT   (ACTION_STRUCT | ACTION_PURGE)
 
#define ACTIONS_BY_QUEUE_ID
 
#define ACTIONS_AFTER_INUM_FIX
 
#define RECURSE   (1<<0) /* step into subdirectories */
 
#define DONT_RECURSE   0 /* don't step into directories */
 
#define SUFFIX   "#FIX"
 
#define SUFFIX_LEN   4
 
#define MESSAGE_QUEUE(qp)   ((qp)->perms == MAIL_QUEUE_STAT_READY)
 
#define READY_MESSAGE(st)   (((st).st_mode & S_IRWXU) == MAIL_QUEUE_STAT_READY)
 

関数

int main (int argc, char **argv)
 

変数

const char * log_queue_names []
 
 MAIL_VERSION_STAMP_DECLARE
 

マクロ定義詳解

#define ACTION_DEFAULT   (ACTION_STRUCT | ACTION_PURGE)

postsuper.c326 行目に定義があります。

#define ACTION_DELETE_ALL   (1<<3) /* delete all queue file(s) */

postsuper.c317 行目に定義があります。

#define ACTION_DELETE_ONE   (1<<2) /* delete named queue file(s) */

postsuper.c316 行目に定義があります。

#define ACTION_HOLD_ALL   (1<<7) /* put all messages on hold */

postsuper.c321 行目に定義があります。

#define ACTION_HOLD_ONE   (1<<6) /* put named queue file(s) on hold */

postsuper.c320 行目に定義があります。

#define ACTION_PURGE   (1<<1) /* purge old temp files */

postsuper.c315 行目に定義があります。

#define ACTION_RELEASE_ALL   (1<<9) /* release all "on hold" mail */

postsuper.c323 行目に定義があります。

#define ACTION_RELEASE_ONE   (1<<8) /* release named queue file(s) */

postsuper.c322 行目に定義があります。

#define ACTION_REQUEUE_ALL   (1<<5) /* requeue all queue file(s) */

postsuper.c319 行目に定義があります。

#define ACTION_REQUEUE_ONE   (1<<4) /* requeue named queue file(s) */

postsuper.c318 行目に定義があります。

#define ACTION_STRUCT   (1<<0) /* fix file organization */

postsuper.c314 行目に定義があります。

#define ACTION_STRUCT_RED   (1<<10) /* fix long queue ID inode fields */

postsuper.c324 行目に定義があります。

#define ACTIONS_AFTER_INUM_FIX
値:
#define ACTION_HOLD_ALL
Definition: postsuper.c:321
#define ACTION_RELEASE_ALL
Definition: postsuper.c:323
#define ACTION_REQUEUE_ALL
Definition: postsuper.c:319

postsuper.c339 行目に定義があります。

#define ACTIONS_BY_QUEUE_ID
値:
#define ACTION_REQUEUE_ONE
Definition: postsuper.c:318
#define ACTION_DELETE_ONE
Definition: postsuper.c:316
#define ACTION_RELEASE_ONE
Definition: postsuper.c:322
#define ACTION_HOLD_ONE
Definition: postsuper.c:320

postsuper.c332 行目に定義があります。

#define DONT_RECURSE   0 /* don't step into directories */

postsuper.c356 行目に定義があります。

#define MAIL_QUEUE_INTERNAL

postsuper.c303 行目に定義があります。

#define MAX_TEMP_AGE   (60 * 60 * 24) /* temp file maximal age */

postsuper.c311 行目に定義があります。

#define MESSAGE_QUEUE (   qp)    ((qp)->perms == MAIL_QUEUE_STAT_READY)

postsuper.c406 行目に定義があります。

#define READY_MESSAGE (   st)    (((st).st_mode & S_IRWXU) == MAIL_QUEUE_STAT_READY)

postsuper.c407 行目に定義があります。

#define RECURSE   (1<<0) /* step into subdirectories */

postsuper.c355 行目に定義があります。

#define STR   vstring_str /* silly little macro */

postsuper.c312 行目に定義があります。

#define SUFFIX   "#FIX"

postsuper.c387 行目に定義があります。

#define SUFFIX_LEN   4

postsuper.c388 行目に定義があります。

関数詳解

int main ( int  argc,
char **  argv 
)

postsuper.c1076 行目に定義があります。

変数詳解

const char* log_queue_names[]
初期値:
= {
0,
}
#define MAIL_QUEUE_BOUNCE
Definition: mail_queue.h:35
#define MAIL_QUEUE_DEFER
Definition: mail_queue.h:34
#define MAIL_QUEUE_TRACE
Definition: mail_queue.h:33

postsuper.c374 行目に定義があります。

MAIL_VERSION_STAMP_DECLARE

postsuper.c1074 行目に定義があります。