};
/**
- * alias_format_str - Format a string for the alias list
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * alias_format_str() is a callback function for mutt_expando_format().
+ * alias_format_str - Format a string for the alias list - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
}
/**
- * folder_format_str - Format a string for the folder browser
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * folder_format_str() is a callback function for mutt_expando_format().
+ * folder_format_str - Format a string for the folder browser - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
#ifdef USE_NNTP
/**
- * group_index_format_str - Format a string for the newsgroup menu
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * group_index_format_str() is a callback function for mutt_expando_format().
+ * group_index_format_str - Format a string for the newsgroup menu - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
}
/**
- * compose_format_str - Create the status bar string for compose mode
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * compose_format_str() is a callback function for mutt_expando_format().
+ * compose_format_str - Create the status bar string for compose mode - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
}
/**
- * compress_format_str - Expand the filenames in a command string
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * compress_format_str() is a callback function for mutt_expando_format().
+ * compress_format_str - Expand the filenames in a command string - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
MUTT_FORMAT_NOFILTER = (1 << 7) /**< do not allow filtering on this pass */
};
+/**
+ * format_t - Prototype for a mutt_expando_format() callback function
+ * @param[out] buf Buffer in which to save string
+ * @param[in] buflen Buffer length
+ * @param[in] col Starting column
+ * @param[in] cols Number of screen columns
+ * @param[in] op printf-like operator, e.g. 't'
+ * @param[in] src printf-like format string
+ * @param[in] prec Field precision, e.g. "-3.4"
+ * @param[in] if_str If condition is met, display this string
+ * @param[in] else_str Otherwise, display this string
+ * @param[in] data Pointer to the mailbox Context
+ * @param[in] flags Format flags
+ * @retval src (unchanged)
+ *
+ * Each callback function implements some expandos, e.g.
+ *
+ * | Expando | Description
+ * |:--------|:-----------
+ * | \%t | Title
+ */
typedef const char *format_t(char *buf, size_t buflen, size_t col, int cols,
char op, const char *src, const char *prec,
const char *if_str, const char *else_str,
}
/**
- * index_format_str - Format a string for the index list
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * index_format_str() is a callback function for mutt_expando_format().
+ * index_format_str - Format a string for the index list - Implements ::format_t
*
* | Expando | Description
* |:--------|:-----------------------------------------------------------------
};
/**
- * history_format_str - Format a string for the history list
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * history_format_str() is a callback function for mutt_expando_format().
+ * history_format_str - Format a string for the history list - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------
* @param[in] col Starting column
* @param[in] cols Number of screen columns
* @param[in] src Printf-like format string
- * @param[in] callback Callback for processing
+ * @param[in] callback Callback - Implements ::format_t
* @param[in] data Callback data
* @param[in] flags Callback flags
*/
}
/**
- * crypt_format_str - Format a string for the key selection menu
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * crypt_format_str() is a callback function for mutt_expando_format().
+ * crypt_format_str - Format a string for the key selection menu - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
};
/**
- * fmt_pgp_command - Format a PGP command string
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * fmt_pgp_command() is a callback function for mutt_expando_format().
+ * fmt_pgp_command - Format a PGP command string - Implements ::format_t
*
* | Expando | Description
* |:--------|:-----------------------------------------------------------------
};
/**
- * pgp_entry_fmt - Format an entry on the PGP key selection menu
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * pgp_entry_fmt() is a callback function for mutt_expando_format().
+ * pgp_entry_fmt - Format an entry on the PGP key selection menu - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
*/
/**
- * fmt_smime_command - Format an SMIME command
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * fmt_smime_command() is a callback function for mutt_expando_format().
+ * fmt_smime_command - Format an SMIME command - Implements ::format_t
*
* | Expando | Description
* |:--------|:-----------------------------------------------------------------
}
/**
- * nntp_format_str - Expand the newsrc filename
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * nntp_format_str() is a callback function for mutt_expando_format().
+ * nntp_format_str - Expand the newsrc filename - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
}
/**
- * query_format_str - Format a string for the query menu
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * query_format_str() is a callback function for mutt_expando_format().
+ * query_format_str - Format a string for the query menu - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
}
/**
- * attach_format_str - Format a string for the attachment menu
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * attach_format_str() is a callback function for mutt_expando_format().
+ * attach_format_str - Format a string for the attachment menu - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
}
/**
- * mix_format_str - Format a string for the remailer menu
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * mix_format_str() is a callback function for mutt_expando_format().
+ * mix_format_str - Format a string for the remailer menu - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
} sidebar_source = SB_SRC_INCOMING;
/**
- * sidebar_format_str - Format a string for the sidebar
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * sidebar_format_str() is a callback function for mutt_expando_format().
+ * sidebar_format_str - Format a string for the sidebar - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------
struct Menu *menu, const char *p);
/**
- * status_format_str - Create the status bar string
- * @param[out] buf Buffer in which to save string
- * @param[in] buflen Buffer length
- * @param[in] col Starting column
- * @param[in] cols Number of screen columns
- * @param[in] op printf-like operator, e.g. 't'
- * @param[in] src printf-like format string
- * @param[in] prec Field precision, e.g. "-3.4"
- * @param[in] if_str If condition is met, display this string
- * @param[in] else_str Otherwise, display this string
- * @param[in] data Pointer to the mailbox Context
- * @param[in] flags Format flags
- * @retval src (unchanged)
- *
- * status_format_str() is a callback function for mutt_expando_format().
+ * status_format_str - Create the status bar string - Implements ::format_t
*
* | Expando | Description
* |:--------|:--------------------------------------------------------