* cosmetics
This commit is contained in:
@ -124,7 +124,7 @@ needs_index (MuIndexCallbackData *data, const char *fullpath,
|
|||||||
|
|
||||||
|
|
||||||
static MuError
|
static MuError
|
||||||
insert_or_update_maybe (const char* fullpath, const char* mdir,
|
insert_or_update_maybe (const char *fullpath, const char *mdir,
|
||||||
time_t filestamp, MuIndexCallbackData *data,
|
time_t filestamp, MuIndexCallbackData *data,
|
||||||
gboolean *updated)
|
gboolean *updated)
|
||||||
{
|
{
|
||||||
@ -178,7 +178,7 @@ run_msg_callback_maybe (MuIndexCallbackData *data)
|
|||||||
|
|
||||||
|
|
||||||
static MuError
|
static MuError
|
||||||
on_run_maildir_msg (const char* fullpath, const char* mdir,
|
on_run_maildir_msg (const char *fullpath, const char *mdir,
|
||||||
struct stat *statbuf, MuIndexCallbackData *data)
|
struct stat *statbuf, MuIndexCallbackData *data)
|
||||||
{
|
{
|
||||||
MuError result;
|
MuError result;
|
||||||
@ -248,7 +248,7 @@ on_run_maildir_dir (const char* fullpath, gboolean enter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
check_path (const char* path)
|
check_path (const char *path)
|
||||||
{
|
{
|
||||||
g_return_val_if_fail (path, FALSE);
|
g_return_val_if_fail (path, FALSE);
|
||||||
|
|
||||||
@ -310,7 +310,7 @@ mu_index_set_xbatch_size (MuIndex *index, guint xbatchsize)
|
|||||||
|
|
||||||
|
|
||||||
MuError
|
MuError
|
||||||
mu_index_run (MuIndex *index, const char* path,
|
mu_index_run (MuIndex *index, const char *path,
|
||||||
gboolean reindex, MuIndexStats *stats,
|
gboolean reindex, MuIndexStats *stats,
|
||||||
MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb,
|
MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb,
|
||||||
void *user_data)
|
void *user_data)
|
||||||
@ -345,7 +345,7 @@ mu_index_run (MuIndex *index, const char* path,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static MuError
|
static MuError
|
||||||
on_stats_maildir_file (const char *fullpath, const char* mdir,
|
on_stats_maildir_file (const char *fullpath, const char *mdir,
|
||||||
struct stat *statbuf,
|
struct stat *statbuf,
|
||||||
MuIndexCallbackData *cb_data)
|
MuIndexCallbackData *cb_data)
|
||||||
{
|
{
|
||||||
@ -368,7 +368,7 @@ on_stats_maildir_file (const char *fullpath, const char* mdir,
|
|||||||
|
|
||||||
|
|
||||||
MuError
|
MuError
|
||||||
mu_index_stats (MuIndex *index, const char* path,
|
mu_index_stats (MuIndex *index, const char *path,
|
||||||
MuIndexStats *stats, MuIndexMsgCallback cb_msg,
|
MuIndexStats *stats, MuIndexMsgCallback cb_msg,
|
||||||
MuIndexDirCallback cb_dir, void *user_data)
|
MuIndexDirCallback cb_dir, void *user_data)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -110,7 +110,7 @@ typedef MuError (*MuIndexMsgCallback) (MuIndexStats* stats, void *user_data);
|
|||||||
* case of some error.
|
* case of some error.
|
||||||
*/
|
*/
|
||||||
typedef MuError (*MuIndexDirCallback) (const char* path, gboolean enter,
|
typedef MuError (*MuIndexDirCallback) (const char* path, gboolean enter,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start the indexing process
|
* start the indexing process
|
||||||
@ -131,7 +131,7 @@ typedef MuError (*MuIndexDirCallback) (const char* path, gboolean enter,
|
|||||||
* MU_STOP if the user stopped or MU_ERROR in
|
* MU_STOP if the user stopped or MU_ERROR in
|
||||||
* case of some error.
|
* case of some error.
|
||||||
*/
|
*/
|
||||||
MuError mu_index_run (MuIndex *index, const char* path, gboolean force,
|
MuError mu_index_run (MuIndex *index, const char *path, gboolean force,
|
||||||
MuIndexStats *stats, MuIndexMsgCallback msg_cb,
|
MuIndexStats *stats, MuIndexMsgCallback msg_cb,
|
||||||
MuIndexDirCallback dir_cb, void *user_data);
|
MuIndexDirCallback dir_cb, void *user_data);
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ MuError mu_index_run (MuIndex *index, const char* path, gboolean force,
|
|||||||
* MU_STOP if the user stopped or MU_ERROR in
|
* MU_STOP if the user stopped or MU_ERROR in
|
||||||
* case of some error.
|
* case of some error.
|
||||||
*/
|
*/
|
||||||
MuError mu_index_stats (MuIndex *index, const char* path, MuIndexStats *stats,
|
MuError mu_index_stats (MuIndex *index, const char *path, MuIndexStats *stats,
|
||||||
MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb,
|
MuIndexMsgCallback msg_cb, MuIndexDirCallback dir_cb,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ MuError mu_index_stats (MuIndex *index, const char* path, MuIndexStats *stats,
|
|||||||
* @return a MuResult
|
* @return a MuResult
|
||||||
*/
|
*/
|
||||||
typedef MuError (*MuIndexCleanupDeleteCallback) (MuIndexStats *stats,
|
typedef MuError (*MuIndexCleanupDeleteCallback) (MuIndexStats *stats,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cleanup the database; ie. remove entries for which no longer a corresponding
|
* cleanup the database; ie. remove entries for which no longer a corresponding
|
||||||
|
|||||||
@ -83,8 +83,8 @@ gchar* mu_util_guess_mu_homedir (void)
|
|||||||
* @return TRUE if a read/writeable directory `path' exists after
|
* @return TRUE if a read/writeable directory `path' exists after
|
||||||
* leaving this function, FALSE otherwise
|
* leaving this function, FALSE otherwise
|
||||||
*/
|
*/
|
||||||
gboolean mu_util_create_dir_maybe (const gchar *path, mode_t mode, gboolean nowarn)
|
gboolean mu_util_create_dir_maybe (const gchar *path, mode_t mode,
|
||||||
G_GNUC_WARN_UNUSED_RESULT;
|
gboolean nowarn) G_GNUC_WARN_UNUSED_RESULT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* check whether path is a directory, and optionally, if it's readable
|
* check whether path is a directory, and optionally, if it's readable
|
||||||
|
|||||||
@ -860,7 +860,8 @@ all messages in the thread at point in the headers view."
|
|||||||
(read-number (mu4e-format "%s (1-%d): " prompt count)))
|
(read-number (mu4e-format "%s (1-%d): " prompt count)))
|
||||||
(progn
|
(progn
|
||||||
(setq def (if (= count 1) "1" (format "1-%d" count)))
|
(setq def (if (= count 1) "1" (format "1-%d" count)))
|
||||||
(read-string (mu4e-format "%s (default %s): " prompt def) nil nil def)))))
|
(read-string (mu4e-format "%s (default %s): " prompt def)
|
||||||
|
nil nil def)))))
|
||||||
|
|
||||||
(defun mu4e~view-get-attach (msg attnum)
|
(defun mu4e~view-get-attach (msg attnum)
|
||||||
"Return the attachment plist in MSG corresponding to attachment
|
"Return the attachment plist in MSG corresponding to attachment
|
||||||
|
|||||||
Reference in New Issue
Block a user