diff options
author | Kevin McCarthy <kevin@8t8.us> | 2022-12-12 15:06:34 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2022-12-12 15:06:34 -0800 |
commit | 9917c0eae89edaaca076a313dc2902a9b1ead03f (patch) | |
tree | ce11ccda2bd342ad9ca4bf6260682b8fbbfdf59d | |
parent | db429b21a906d807312461cb4364e480917fb626 (diff) | |
parent | 16d8ad647bd1723bcd3cc14f5f299dbce65e2743 (diff) |
Merge branch 'stable'
-rw-r--r-- | doc/manual.xml.head | 38 | ||||
-rw-r--r-- | mh.c | 13 |
2 files changed, 31 insertions, 20 deletions
diff --git a/doc/manual.xml.head b/doc/manual.xml.head index dea8eeaa..6f3de06c 100644 --- a/doc/manual.xml.head +++ b/doc/manual.xml.head @@ -7767,25 +7767,6 @@ echo (equal "one two" "`echo one two`") ==> "t" note: backticks inside double quotes generates a single argument: "one two" </screen> - <para> - Note that boolean configuration variables evaluate to the strings - "yes" or "no". You can see the value of other - kinds of configuration variables using the - <link linkend="echo">echo</link> command. - </para> -<screen> -unset allow_ansi -echo $allow_ansi - ===> "no" - -# the correct way to test a boolean: -echo (if (equal $allow_ansi "yes") "set" "unset") - ===> "unset" - -# the incorrect way to test a boolean: -echo (if $allow_ansi "set" "unset") - ===> "set" -</screen> </sect3> <sect3 id="muttlisp-not"> @@ -7864,6 +7845,25 @@ set spoolfile = "/var/mail/user" echo (if (equal $spoolfile "/var/mail/user") yes no) ==> "yes" </screen> + <para> + Note that boolean configuration variables evaluate to the strings + "yes" or "no". You can see the value of other + kinds of configuration variables using the + <link linkend="echo">echo</link> command. + </para> +<screen> +unset allow_ansi +echo $allow_ansi + ===> "no" + +# the correct way to test a boolean: +echo (if (equal $allow_ansi "yes") "set" "unset") + ===> "unset" + +# the incorrect way to test a boolean: +echo (if $allow_ansi "set" "unset") + ===> "set" +</screen> </sect3> </sect2> @@ -2334,9 +2334,20 @@ static int maildir_check_mailbox (CONTEXT * ctx, int *index_hint) if (ctx->hdrs[i]->deleted != p->h->deleted) { ctx->hdrs[i]->deleted = p->h->deleted; + if (ctx->hdrs[i]->deleted) + ctx->deleted++; + else + ctx->deleted--; flags_changed = 1; } - ctx->hdrs[i]->trash = p->h->trash; + if (ctx->hdrs[i]->trash != p->h->trash) + { + ctx->hdrs[i]->trash = p->h->trash; + if (ctx->hdrs[i]->trash) + ctx->trashed++; + else + ctx->trashed--; + } /* this is a duplicate of an existing header, so remove it */ mutt_free_header (&p->h); |