|
@@ -2927,12 +2927,6 @@ imap_trash_msg( store_t *gctx, message_t *msg,
|
|
|
|
|
|
static void imap_store_msg_p2( imap_store_t *, imap_cmd_t *, int );
|
|
|
|
|
|
-static size_t
|
|
|
-my_strftime( char *s, size_t max, const char *fmt, const struct tm *tm )
|
|
|
-{
|
|
|
- return strftime( s, max, fmt, tm );
|
|
|
-}
|
|
|
-
|
|
|
static void
|
|
|
imap_store_msg( store_t *gctx, msg_data_t *data, int to_trash,
|
|
|
void (*cb)( int sts, uint uid, void *aux ), void *aux )
|
|
@@ -2971,7 +2965,10 @@ imap_store_msg( store_t *gctx, msg_data_t *data, int to_trash,
|
|
|
}
|
|
|
if (data->date) {
|
|
|
/* configure ensures that %z actually works. */
|
|
|
- my_strftime( datestr, sizeof(datestr), "%d-%b-%Y %H:%M:%S %z", localtime( &data->date ) );
|
|
|
+DIAG_PUSH
|
|
|
+DIAG_DISABLE("-Wformat")
|
|
|
+ strftime( datestr, sizeof(datestr), "%d-%b-%Y %H:%M:%S %z", localtime( &data->date ) );
|
|
|
+DIAG_POP
|
|
|
imap_exec( ctx, &cmd->gen, imap_store_msg_p2,
|
|
|
"APPEND \"%\\s\" %s\"%\\s\" ", buf, flagstr, datestr );
|
|
|
} else {
|