* mu-cmd-find, mu-output: don't use --summary-len anymore, use --summary

This commit is contained in:
Dirk-Jan C. Binnema
2011-05-25 22:03:43 +03:00
parent c6d4200b0a
commit 5bda5975c9
2 changed files with 4 additions and 3 deletions

View File

@ -138,7 +138,7 @@ run_query_format (MuMsgIter *iter, MuConfig *opts,
return mu_output_links (iter, opts->linksdir, opts->clearlinks, return mu_output_links (iter, opts->linksdir, opts->clearlinks,
count); count);
case FORMAT_PLAIN: case FORMAT_PLAIN:
return mu_output_plain (iter, opts->fields, opts->summary_len, return mu_output_plain (iter, opts->fields, opts->summary,
count); count);
case FORMAT_XML: case FORMAT_XML:
return mu_output_xml (iter, count); return mu_output_xml (iter, count);

View File

@ -33,13 +33,14 @@ G_BEGIN_DECLS
* *
* @param iter iterator pointing to a message row * @param iter iterator pointing to a message row
* @param fields the fields to print (see MuMsgFields) * @param fields the fields to print (see MuMsgFields)
* @param summary_len number of lines to include in message summary * @param summary whether we should include a summary (TRUE) or not (FALSE
* )
* @param count output param to receive the number of messages found, or NULL * @param count output param to receive the number of messages found, or NULL
* *
* @return TRUE if the printing succeeded, FALSE in case of error * @return TRUE if the printing succeeded, FALSE in case of error
*/ */
gboolean mu_output_plain (MuMsgIter *iter, const char *fields, gboolean mu_output_plain (MuMsgIter *iter, const char *fields,
size_t summary_len, size_t *count); gboolean summary, size_t *count);
/** /**
* output the search results (MsgIter) as a maildir of symlinks * output the search results (MsgIter) as a maildir of symlinks