struct Buffer *err, bool is_index, int match)
{
/* is_index used to store compiled pattern
- * only for `index' color object
+ * only for 'index' color object
* when called from mutt_parse_color() */
struct ColorLine *tmp = NULL;
* * #CH_NONEWLINE don't output a newline after the header
* * #CH_NOSTATUS ignore the Status: and X-Status:
* * #CH_PREFIX quote header with $indent_string
- * * #CH_REORDER output header in order specified by `hdr_order'
+ * * #CH_REORDER output header in order specified by 'hdr_order'
* * #CH_TXTPLAIN generate text/plain MIME headers [hack alert.]
* * #CH_UPDATE write new Status: and X-Status:
* * #CH_UPDATE_LEN write new Content-Length: and Lines:
mutt_addr_write_single(pbuf, buflen + 1, addr, display);
/* this should be safe since we always have at least 1 char passed into
- the above call, which means `pbuf' should always be nul terminated */
+ the above call, which means 'pbuf' should always be nul terminated */
len = mutt_str_strlen(pbuf);
pbuf += len;
buflen -= len;
mutt_addrlist_to_local(env->mail_followup_to);
}
-/* Note that `a' in the `env->a' expression is macro argument, not
- * "real" name of an `env' compound member. Real name will be substituted
+/* Note that 'a' in the 'env->a' expression is macro argument, not
+ * "real" name of an 'env' compound member. Real name will be substituted
* by preprocessor at the macro-expansion time.
* Note that #a escapes and double quotes the argument.
*/
{
new->value = mutt_str_strdup(buffer);
- mutt_debug(2, "parse_parameter: '%s' = `%s'\n",
+ mutt_debug(2, "parse_parameter: '%s' = '%s'\n",
new->attribute ? new->attribute : "", new->value ? new->value : "");
/* Add this parameter to the list */
#endif
case 'o':
- /* field `Organization:' saves only for pager! */
+ /* field 'Organization:' saves only for pager! */
if (mutt_str_strcasecmp(line + 1, "rganization") == 0)
{
if (!env->organization && (mutt_str_strcasecmp(p, "unknown") != 0))
break;
/* --------------------------------------------------------------------
- * `index' specific commands
+ * 'index' specific commands
*/
case OP_MAIN_DELETE_PATTERN:
** .pp
** When \fIset\fP, Mutt assumes the presence of a List-Post header
** means the recipient is subscribed to the list. Unless the mailing list
- ** is in the ``unsubscribe'' or ``unlist'' lists, it will be added
- ** to the ``$subscribe'' list. Parsing and checking these things slows
+ ** is in the "unsubscribe" or "unlist" lists, it will be added
+ ** to the "$subscribe" list. Parsing and checking these things slows
** header reading down, so this option is disabled by default.
*/
{ "auto_tag", DT_BOOL, R_NONE, &AutoTag, false },
/*
** .pp
** This variable provides a toggle. When active, the From: header will be
- ** extracted from the current mail's `X-Original-To:' header. This setting
+ ** extracted from the current mail's 'X-Original-To:' header. This setting
** does not have precedence over "$reverse_realname".
** .pp
- ** Assuming `fast_reply' is disabled, this option will prompt the user with a
+ ** Assuming 'fast_reply' is disabled, this option will prompt the user with a
** prefilled From: header.
*/
{ "resolve", DT_BOOL, R_NONE, &Resolve, true },
** This contains the list of characters which you would like to treat
** as folder separators for displaying paths in the sidebar.
** .pp
- ** Local mail is often arranged in directories: `dir1/dir2/mailbox'.
+ ** Local mail is often arranged in directories: 'dir1/dir2/mailbox'.
** .ts
** set sidebar_delim_chars='/'
** .te
** .pp
- ** IMAP mailboxes are often named: `folder1.folder2.mailbox'.
+ ** IMAP mailboxes are often named: 'folder1.folder2.mailbox'.
** .ts
** set sidebar_delim_chars='.'
** .te
{
for (int i = 0; i < nummenus; ++i)
{
- km_bindkey(key, menu[i], OP_NULL); /* the `unbind' command */
+ km_bindkey(key, menu[i], OP_NULL); /* the 'unbind' command */
}
}
else
fseek(f, 0, SEEK_END);
pos = ftello(f);
- /* Set `bytes_read' to the size of the last, probably partial, buffer;
- * 0 < `bytes_read' <= `BUFSIZ'. */
+ /* Set 'bytes_read' to the size of the last, probably partial, buffer;
+ * 0 < 'bytes_read' <= 'BUFSIZ'. */
bytes_read = pos % BUFSIZ;
if (bytes_read == 0)
bytes_read = BUFSIZ;
- /* Make `pos' a multiple of `BUFSIZ' (0 if the file is short), so that all
+ /* Make 'pos' a multiple of 'BUFSIZ' (0 if the file is short), so that all
* reads will be on block boundaries, which might increase efficiency. */
while ((pos -= bytes_read) >= 0)
{
bytes_read = fread(buffer, sizeof(char), bytes_read, f);
if (bytes_read == 0)
return -1;
- /* 'i' is Index into `buffer' for scanning. */
+ /* 'i' is Index into 'buffer' for scanning. */
for (int i = bytes_read; i >= 0; i--)
{
if (mutt_str_startswith(buffer + i, "\n\nFrom ", CASE_MATCH))
}
}
- /* save the new offset for this message. we add `offset' because the
+ /* save the new offset for this message. we add 'offset' because the
* temporary file only contains saved message which are located after
- * `offset' in the real mailbox
+ * 'offset' in the real mailbox
*/
new_offset[i - first].hdr = ftello(fp) + offset;
break; /* bad format */
src++;
- /* eat the `if' part of the string */
+ /* eat the 'if' part of the string */
cp = if_str;
count = 0;
lrbalance = 1;
}
*cp = 0;
- /* eat the `else' part of the string (optional) */
+ /* eat the 'else' part of the string (optional) */
if (*src == '&')
src++; /* skip the & */
cp = else_str;
if (!*src)
break; /* bad format */
- src++; /* move past the trailing `>' (formerly '?') */
+ src++; /* move past the trailing '>' (formerly '?') */
}
/* handle generic cases first */
{
char *p = mutt_str_strdup(src);
int rc = mutt_ch_convert_string(&p, Charset, "us-ascii", 0);
- /* `src' may be NULL, such as when called from the pop3 driver. */
+ /* 'src' may be NULL, such as when called from the pop3 driver. */
size_t len = mutt_str_strfcpy(buf, (rc == 0) ? p : src, buflen);
/* convert the path to POSIX "Portable Filename Character Set" */
mutt_make_label_hash(m);
- /* if the user has a `push' command in their .neomuttrc, or in a folder-hook,
+ /* if the user has a 'push' command in their .neomuttrc, or in a folder-hook,
* it will cause the progress messages not to be displayed because
* mutt_refresh() will think we are in the middle of a macro. so set a
* flag to indicate that we should really refresh the screen.
rset[rset_n++] = key;
else
{
- mutt_error(_("error adding recipient `%s': %s\n"), buf, gpgme_strerror(err));
+ mutt_error(_("error adding recipient '%s': %s\n"), buf, gpgme_strerror(err));
rset[rset_n] = NULL;
free_recipient_set(&rset);
gpgme_release(context);
WHERE bool OptKeepQuiet; /**< (pseudo) shut up the message and refresh functions while we are executing an external program. */
WHERE bool OptMenuCaller; /**< (pseudo) tell menu to give caller a take */
WHERE bool OptMsgErr; /**< (pseudo) used by mutt_error/mutt_message */
-WHERE bool OptNeedRescore; /**< (pseudo) set when the `score' command is used */
+WHERE bool OptNeedRescore; /**< (pseudo) set when the 'score' command is used */
WHERE bool OptNeedResort; /**< (pseudo) used to force a re-sort */
#ifdef USE_NNTP
WHERE bool OptNews; /**< (pseudo) used to change reader mode */
}
memset(&min, 0, sizeof(min));
- /* the `0' time is Jan 1, 1970 UTC, so in order to prevent a negative time
+ /* the '0' time is Jan 1, 1970 UTC, so in order to prevent a negative time
when doing timezone conversion, we use Jan 2, 1970 UTC as the base
here */
min.tm_mday = 2;
* mutt_get_postponed - Recall a postponed message
* @param[in] ctx Context info, used when recalling a message to which we reply
* @param[in] hdr envelope/attachment info for recalled message
- * @param[out] cur if message was a reply, `cur' is set to the message which `hdr' is in reply to
+ * @param[out] cur if message was a reply, 'cur' is set to the message which 'hdr' is in reply to
* @param[in] fcc fcc for the recalled message
* @param[in] fcclen max length of fcc
* @retval -1 Error/no messages
/* this is handled here so that the user can match ~f in send-hook */
if (cur && ReverseName && !(flags & (SEND_POSTPONED | SEND_RESEND)))
{
- /* we shouldn't have to worry about freeing `msg->env->from' before
+ /* we shouldn't have to worry about freeing 'msg->env->from' before
* setting it here since this code will only execute when doing some
* sort of reply. the pointer will only be set when using the -H command
* line option.
}
if (cur && ReplyWithXorig && !(flags & (SEND_POSTPONED | SEND_RESEND | SEND_FORWARD)))
{
- /* We shouldn't have to worry about freeing `msg->env->from' before
+ /* We shouldn't have to worry about freeing 'msg->env->from' before
* setting it here since this code will only execute when doing some
* sort of reply. The pointer will only be set when using the -H command
* line option.
*
- * If there is already a from address recorded in `msg->env->from',
+ * If there is already a from address recorded in 'msg->env->from',
* then it theoretically comes from ReverseName handling, and we don't use
- * the `X-Orig-To header'.
+ * the 'X-Orig-To header'.
*/
if (cur->env->x_original_to && !msg->env->from)
{
}
/* the from address must be set here regardless of whether or not
- * $use_from is set so that the `~P' (from you) operator in send-hook
+ * $use_from is set so that the '~P' (from you) operator in send-hook
* patterns will work. if $use_from is unset, the from address is killed
* after send-hooks are evaluated */
* @param path Path to attachment
* @retval num MIME type, e.g. #TYPE_IMAGE
*
- * Given a file at `path`, see if there is a registered MIME type.
+ * Given a file at 'path', see if there is a registered MIME type.
* Returns the major MIME type, and copies the subtype to "d". First look
* in a system mime.types if we can find one, then look for ~/.mime.types.
- * The longest match is used so that we can match `ps.gz' when `gz' also
+ * The longest match is used so that we can match 'ps.gz' when 'gz' also
* exists.
*/
int mutt_lookup_mime_type(struct Body *att, const char *path)
{
int fold = 0;
- /* find the next word and place it in `buf'. it may start with
+ /* find the next word and place it in 'buf'. it may start with
* whitespace we can fold before */
const char *next = mutt_str_find_word(p);
l = MIN(sizeof(buf) - 1, next - p);
fputs(mutt_date_make_date(buf, sizeof(buf)), fp);
/* UseFrom is not consulted here so that we can still write a From:
- * field if the user sets it with the `my_hdr' command
+ * field if the user sets it with the 'my_hdr' command
*/
if (env->from && !privacy)
{
stat(path, &st);
}
- e->read = !post; /* make sure to put it in the `cur' directory (maildir) */
+ e->read = !post; /* make sure to put it in the 'cur' directory (maildir) */
onm_flags = MUTT_ADD_FROM;
if (post)
onm_flags |= MUTT_SET_DRAFT;