nmh-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated


From: David Levine
Subject: [Nmh-commits] [SCM] The nmh Mail Handling System branch, master, updated. 31cba404636730df219dd009ca5893ccc56d46af
Date: Sun, 25 Dec 2011 02:39:38 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The nmh Mail Handling System".

The branch, master has been updated
       via  31cba404636730df219dd009ca5893ccc56d46af (commit)
      from  39a5a4f9ebf77ed31a5abf9ff2ca6ea391c52a2c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/nmh.git/commit/?id=31cba404636730df219dd009ca5893ccc56d46af


commit 31cba404636730df219dd009ca5893ccc56d46af
Author: David Levine <address@hidden>
Date:   Sat Dec 24 20:28:50 2011 -0600

    Changed second argument of calls to part_ok() and type_ok() from
    0 to 1, to match what store_multi() in mhstoresbr.c does.
    
    A test case is below.  Without this fix, the following command:
    
      mhshow -part 1.1 -form mhl.null
    
    produced no output.  mhlist showed a part 1.1:
    
     msg part  type/subtype              size description
    1231       multipart/mixed            276
         1     multipart/related          107
         1.1   text/plain                  29
    
    and "mhstore -part 1.1" properly stored it.  With this
    fix, mhshow behaves properly and shows the part.
    
    Analogous behavior happened with -type text/plain.
    
    test case:
    
    MIME-Version: 1.0
    Content-Type: multipart/mixed; boundary="NextPart_001"
    Content-class: urn:content-classes:message
    Date: Thu, 19 May 2011 00:00:00 -0000
    From: address@hidden
    To: address@hidden
    
    This is a multi-part message in MIME format.
    
    --NextPart_001
    Content-Type: multipart/related;
        type="multipart/alternative";
        boundary="NextPart_002"
    
    --NextPart_002
    Content-Type: text/plain;
        charset="utf-8"
    
    This is the text/plain part.
    
    --NextPart_002--
    
    --NextPart_001--

diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c
index a63b8ed..368b25c 100644
--- a/uip/mhshowsbr.c
+++ b/uip/mhshowsbr.c
@@ -744,7 +744,7 @@ show_multi_internal (CT ct, int serial, int alternate)
     for (part = m->mp_parts; part; part = part->mp_next) {
        p = part->mp_part;
 
-       if (part_ok (p, 0) && type_ok (p, 0)) {
+       if (part_ok (p, 1) && type_ok (p, 1)) {
            int inneresult;
 
            inneresult = show_switch (p, nowserial, nowalternate);

-----------------------------------------------------------------------

Summary of changes:
 uip/mhshowsbr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
The nmh Mail Handling System



reply via email to

[Prev in Thread] Current Thread [Next in Thread]