NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
hdrline.h File Reference

String processing routines to generate the mail index. More...

#include <stdio.h>
#include "format_flags.h"
+ Include dependency graph for hdrline.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void mutt_make_string (char *buf, size_t buflen, int cols, const char *s, struct Mailbox *m, int inpgr, struct Email *e, MuttFormatFlags flags, const char *progress)
 Create formatted strings using mailbox expandos. More...

Detailed Description

String processing routines to generate the mail index.

  • Richard Russon
  • Pietro Cerutti

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

Definition in file hdrline.h.

Function Documentation

◆ mutt_make_string()

void mutt_make_string ( char *  buf,
size_t  buflen,
int  cols,
const char *  s,
struct Mailbox m,
int  inpgr,
struct Email e,
MuttFormatFlags  flags,
const char *  progress 

Create formatted strings using mailbox expandos.

bufBuffer for the result
buflenBuffer length
colsNumber of screen columns (OPTIONAL)
sprintf-line format string
inpgrMessage shown in the pager
flagsFlags, see MuttFormatFlags
progressPager progress string

Definition at line 1409 of file hdrline.c.

1412 {
1413  struct HdrFormatInfo hfi = { 0 };
1415 = e;
1416  hfi.mailbox = m;
1417  hfi.msg_in_pager = inpgr;
1418  hfi.pager_progress = progress;
1420  mutt_expando_format(buf, buflen, 0, cols, s, index_format_str, (intptr_t) &hfi, flags);
1421 }
void mutt_expando_format(char *buf, size_t buflen, size_t col, int cols, const char *src, format_t callback, intptr_t data, MuttFormatFlags flags)
Expand expandos (x) in a string -.
Definition: muttlib.c:780
Data passed to index_format_str()
Definition: hdrline.c:66
struct Mailbox * mailbox
Definition: hdrline.c:68
static const char * index_format_str(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, intptr_t data, MuttFormatFlags flags)
Format a string for the index list - Implements format_t -Expando Description %a Address of the auth...
Definition: hdrline.c:440
int msg_in_pager
Definition: hdrline.c:69
const char * pager_progress
Definition: hdrline.c:71
struct Email * email
Definition: hdrline.c:70
+ Here is the call graph for this function:
+ Here is the caller graph for this function: