Show
Ignore:
Timestamp:
2008-08-15 11:41:26 (3 months ago)
Author:
Brendan Cully <brendan@…>
Branch:
HEAD
Message:

Fix a couple of compiler warnings introduced in [00ce81d778bf].
Make the style of mutt_parse_references more pleasing to me.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5472 r5475  
     12008-07-10 09:38 -0400  Aron Griffis  <agriffis@n01se.net>  (d3ee9644765f) 
     2 
     3        * copy.c: Fix three bugs handling flags in mutt_copy_header 
     4 
     5        1. mutt_copy_header incorrectly tests CH_UPDATE to determine whether 
     6        to write the In-Reply-To and References headers. CH_UPDATE 
     7        refers only to Status: and X-Status: 
     8 
     9        2. mutt_copy_header ignores CH_NOSTATUS which is supposed to 
     10        indicate that the mailbox type doesn't use those headers. 
     11 
     12        3. mutt_copy_header tests h->env->irt_changed and 
     13        h->env->refs_changed when it should be testing CH_UPDATE_IRT and 
     14        CH_UPDATE_REFS, respectively. Early in the function this 
     15        happens: 
     16 
     17         if (h->env) flags |= (h->env->irt_changed ? CH_UPDATE_IRT 
     18        : 0) | (h->env->refs_changed ? CH_UPDATE_REFS : 0); 
     19 
     20         This means that for most callers, the result is the same, but 
     21        mutt_copy_header should be testing the flags because the caller 
     22        might have set them explicitly without setting 
     23        irt_changed/refs_changed. 
     24 
     25        * parse.c, protos.h, send.c: Unify parser for message-ids 
     26 
     27        Rewrite mutt_extract_message_id and change mutt_parse_references to 
     28        us it. The parser in mutt_extract_message_id is looser than the old 
     29        one in mutt_parse_references; it just looks for <[^\s>]+> and 
     30        doesn't worry about @-signs. Additionally it doesn't use strtok, so 
     31        the input string can be const. 
     32 
     33        Closes #3090, #1935, #1116 (both the stated bug and the conversation 
     34        following). 
     35 
     362008-08-11 16:42 +0200  Rocco Rutte  <pdmef@gmx.net>  (508ffc26dad2) 
     37 
     38        * alias.c, doc/manual.xml.head, init.c: Prefer "backtick" over 
     39        "backtic" on comments and docs as it's more common, closes #3101. 
     40 
    1412008-07-27 10:48 -0400  Aron Griffis  <agriffis@n01se.net>  (3f595d14a285) 
    242 
     
    19592008-07-24 16:19 -0400  Brendan Cully  <brendan@kublai.com>  (0e2f9189a1dd) 
    2060 
    21         * ChangeLog, m4/codeset.m4, m4/iconv.m4: Fix m4 serial numbers to 
    22         avoid aclocal 1.10 warnings 
     61        * m4/codeset.m4, m4/iconv.m4: Fix m4 serial numbers to avoid 
     62        aclocal 1.10 warnings 
    2363 
    24642008-07-21 11:42 +0200  Rocco Rutte  <pdmef@gmx.net>  (7e6d98886cce) 
     
    3171        use <itemizedlist/>, \(hy for roff and '-' for text. 
    3272 
    33 2008-07-21 11:41 +0200  Rocco Rutte  <pdmef@gmx.net>  (e09af06a5312) 
    34  
    3573        * doc/manual.xml.head: Document that account-hook is intended for 
    3674        connection-related settings only 
    3775 
    38 2008-07-21 11:40 +0200  Rocco Rutte  <pdmef@gmx.net>  (089c83504474) 
    39  
    4076        * doc/manual.xml.head: Manual: Use tables for message flags as it's 
    4177        more compact 
    4278 
    43 2008-07-21 11:40 +0200  Rocco Rutte  <pdmef@gmx.net>  (7bdd9439304e) 
    44  
    4579        * doc/manual.xml.head: Manual: minor formatting tweaks 
    4680 
    47 2008-07-21 09:11 +0200  Rocco Rutte  <pdmef@gmx.net>  (f93dcd689032) 
    48  
    49         * ChangeLog, alias.c, init.h: Encode lines written to $alias_file in 
     81        * alias.c, init.h: Encode lines written to $alias_file in 
    5082        $config_charset if set. Closes #3095 
    5183 
     
    5991 
    6092        Signed-off-by: Aron Griffis <agriffis@n01se.net> 
    61  
    62 2008-07-10 09:38 -0400  Aron Griffis  <agriffis@n01se.net>  (651ffe277dfd) 
    6393 
    6494        * copy.c: Clean up error handling in mutt_copy_header 
     
    741042008-07-17 19:48 +0200  Rocco Rutte  <pdmef@gmx.net>  (f135d64e0082) 
    75105 
    76         * ChangeLog, query.c: Cleanup unused vars changeset ba0d96408425 
    77         didn't remove 
     106        * query.c: Cleanup unused vars changeset ba0d96408425 didn't 
     107        remove 
    78108 
    791092008-07-11 11:34 +0200  Rocco Rutte  <pdmef@gmx.net>  (cc67b008038c) 
     
    81111        * doc/manual.xml.head: Mention that @ can be used in usernames in URLs 
    82112 
    83 2008-07-11 11:33 +0200  Rocco Rutte  <pdmef@gmx.net>  (953430663eff) 
    84  
    85         * ChangeLog, charset.c: Allow UTF-8 charset to be misspelled as "utf8" 
    86  
    87 2008-07-11 08:47 +0200  Rocco Rutte  <pdmef@gmx.net>  (934a802dff7f) 
     113        * charset.c: Allow UTF-8 charset to be misspelled as "utf8" 
    88114 
    89115        * mutt_ssl.c: Verify hostname in (Open)SSL certificate validation 
     
    971232008-07-10 22:02 +0200  Rocco Rutte  <pdmef@gmx.net>  (b9ac445b035b) 
    98124 
    99         * ChangeLog, hcache.c: Prevent some pointers of 'struct body' being 
    100         saved to hcache 
     125        * hcache.c: Prevent some pointers of 'struct body' being saved to 
     126        hcache 
    101127 
    102128        This addresses the hcache safety issue but maybe doesn't fix it 
     
    1141402008-07-09 09:14 +0000  Rocco Rutte  <pdmef@gmx.net>  (2a9e9c487bad) 
    115141 
    116         * ChangeLog, doc/mutt.man, main.c: Document redirection to trigger 
    117         batch send mode in mutt(1) and mutt -h. Closes #2070. 
     142        * doc/mutt.man, main.c: Document redirection to trigger batch send 
     143        mode in mutt(1) and mutt -h. Closes #2070. 
    118144 
    1191452008-07-04 09:09 +0200  Ralf Wildenhues  <wildenhues@ins.uni-bonn.de>  (74b54f11c919) 
     
    1231492008-07-02 18:26 +0200  Vladimir Marek  <Vladimir.Marek@Sun.COM>  (f72fce68ca19) 
    124150 
    125         * ChangeLog, lib.c: Use stat() instead of dirent->d_type to test for 
     151        * lib.c: Use stat() instead of dirent->d_type to test for 
    126152        directory. Closes #3089. 
    127153 
     
    131157        (maybe changing number of messages). Closes #3088. 
    132158 
    133 2008-07-02 18:08 +0200  Rocco Rutte  <pdmef@gmx.net>  (f41ba27be46f) 
    134  
    135         * ChangeLog, curs_lib.c: Fix casts for progress update to prevent 
    136         -ftrapv aborts to trigger. Closes #3018. 
     159        * curs_lib.c: Fix casts for progress update to prevent -ftrapv 
     160        aborts to trigger. Closes #3018. 
    137161 
    1381622008-07-02 08:56 -0700  Brendan Cully  <brendan@kublai.com>  (c51c16db46cc) 
     
    1431672008-07-02 11:19 +0200  Rocco Rutte  <pdmef@gmx.net>  (8b783c916893) 
    144168 
    145         * ChangeLog, browser.c, buffy.c, commands.c, compose.c, curs_main.c, 
    146         enter.c, headers.c, hook.c, imap/imap.c, init.c, mbox.c, muttlib.c, 
    147         postpone.c, protos.h, recvattach.c, send.c, status.c: Use realpath() 
    148         in mutt_pretty_mailbox() for paths that may need it. This requires 
    149         to add the buffer size as parameter since the result may be longer 
    150         than the original but still fit in the buffer. Closes #2948. 
    151  
    152 2008-07-02 10:06 +0200  Rocco Rutte  <pdmef@gmx.net>  (cc2334fdf126) 
     169        * browser.c, buffy.c, commands.c, compose.c, curs_main.c, enter.c, 
     170        headers.c, hook.c, imap/imap.c, init.c, mbox.c, muttlib.c, 
     171        postpone.c, protos.h, recvattach.c, send.c, status.c: Use 
     172        realpath() in mutt_pretty_mailbox() for paths that may need 
     173        it. This requires to add the buffer size as parameter since the 
     174        result may be longer than the original but still fit in the 
     175        buffer. Closes #2948. 
    153176 
    154177        * hash.c: Use casts to avoid triggering integer overflow detection in