mark MAILBOX_DRIVER_FLAG locations in code
Mailbox driver flags are defined in several places. It is essential that they are kept in sync, so mark them with the same string for easy grepping with an alerting boiler plate. Signed-off-by: Michael J Gruber <github@grubix.eu>
This commit is contained in:
parent
904858365d
commit
e71f0ccc2a
|
@ -44,7 +44,8 @@ typedef struct store_conf {
|
||||||
} store_conf_t;
|
} store_conf_t;
|
||||||
|
|
||||||
/* For message->flags */
|
/* For message->flags */
|
||||||
/* Keep the mailbox driver flag definitions in sync! */
|
/* Keep the mailbox driver flag definitions in sync: */
|
||||||
|
/* grep for MAILBOX_DRIVER_FLAG */
|
||||||
/* The order is according to alphabetical maildir flag sort */
|
/* The order is according to alphabetical maildir flag sort */
|
||||||
#define F_DRAFT (1<<0) /* Draft */
|
#define F_DRAFT (1<<0) /* Draft */
|
||||||
#define F_FLAGGED (1<<1) /* Flagged */
|
#define F_FLAGGED (1<<1) /* Flagged */
|
||||||
|
|
|
@ -243,6 +243,9 @@ static int imap_deref( imap_store_t *ctx );
|
||||||
|
|
||||||
static void imap_invoke_bad_callback( imap_store_t *ctx );
|
static void imap_invoke_bad_callback( imap_store_t *ctx );
|
||||||
|
|
||||||
|
/* Keep the mailbox driver flag definitions in sync: */
|
||||||
|
/* grep for MAILBOX_DRIVER_FLAG */
|
||||||
|
/* The order is according to alphabetical maildir flag sort */
|
||||||
static const char *Flags[] = {
|
static const char *Flags[] = {
|
||||||
"Draft",
|
"Draft",
|
||||||
"Flagged",
|
"Flagged",
|
||||||
|
|
|
@ -108,6 +108,9 @@ debug( const char *msg, ... )
|
||||||
va_end( va );
|
va_end( va );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Keep the mailbox driver flag definitions in sync: */
|
||||||
|
/* grep for MAILBOX_DRIVER_FLAG */
|
||||||
|
/* The order is according to alphabetical maildir flag sort */
|
||||||
static const char Flags[] = { 'D', 'F', 'R', 'S', 'T' };
|
static const char Flags[] = { 'D', 'F', 'R', 'S', 'T' };
|
||||||
|
|
||||||
static uchar
|
static uchar
|
||||||
|
|
|
@ -55,6 +55,9 @@ debugn( const char *msg, ... )
|
||||||
va_end( va );
|
va_end( va );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Keep the mailbox driver flag definitions in sync: */
|
||||||
|
/* grep for MAILBOX_DRIVER_FLAG */
|
||||||
|
/* The order is according to alphabetical maildir flag sort */
|
||||||
static const char Flags[] = { 'D', 'F', 'R', 'S', 'T' };
|
static const char Flags[] = { 'D', 'F', 'R', 'S', 'T' };
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
|
|
@ -97,6 +97,9 @@ Fprintf( FILE *f, const char *msg, ... )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Keep the mailbox driver flag definitions in sync: */
|
||||||
|
/* grep for MAILBOX_DRIVER_FLAG */
|
||||||
|
/* The order is according to alphabetical maildir flag sort */
|
||||||
static const char Flags[] = { 'D', 'F', 'R', 'S', 'T' };
|
static const char Flags[] = { 'D', 'F', 'R', 'S', 'T' };
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Reference in New Issue
Block a user