Missing headers when forwarding html message as RFC822
[notmuch-archives.git] / 7e / 5efadca831689a9bebe125eed9302b4a4b2089
1 Return-Path: <tomi.ollila@iki.fi>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 8813E6DE1997\r
6  for <notmuch@notmuchmail.org>; Wed, 20 May 2015 01:48:52 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 1.038\r
10 X-Spam-Level: *\r
11 X-Spam-Status: No, score=1.038 tagged_above=-999 required=5 tests=[AWL=0.386, \r
12  SPF_NEUTRAL=0.652] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id u5I12wLpXQfU for <notmuch@notmuchmail.org>;\r
16  Wed, 20 May 2015 01:48:50 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18  by arlo.cworth.org (Postfix) with ESMTP id 1A56B6DE13EA\r
19  for <notmuch@notmuchmail.org>; Wed, 20 May 2015 01:48:50 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21  by guru.guru-group.fi (Postfix) with ESMTP id 678721000F2;\r
22  Wed, 20 May 2015 11:48:28 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: David Bremner <david@tethera.net>, David Bremner <david@tethera.net>,\r
25  Ronny Chevalier <chevalier.ronny@gmail.com>\r
26 Subject: Re: [PATCH] configure: Add sanity checking for environment variables\r
27 In-Reply-To: <1432109551-16861-1-git-send-email-david@tethera.net>\r
28 References: <m2617onuhh.fsf@guru.guru-group.fi>\r
29  <1432109551-16861-1-git-send-email-david@tethera.net>\r
30 User-Agent: Notmuch/0.19+115~g9a981cb (http://notmuchmail.org) Emacs/24.3.1\r
31  (x86_64-unknown-linux-gnu)\r
32 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
33  $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
34  !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
35 Date: Wed, 20 May 2015 11:48:28 +0300\r
36 Message-ID: <m2pp5v7hyb.fsf@guru.guru-group.fi>\r
37 MIME-Version: 1.0\r
38 Content-Type: text/plain\r
39 Cc: notmuch@notmuchmail.org\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.18\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44  <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Wed, 20 May 2015 08:48:52 -0000\r
53 \r
54 On Wed, May 20 2015, David Bremner <david@tethera.net> wrote:\r
55 \r
56 > Passing in environment variables incompatible with the compiler may\r
57 > cause other parts of the configure script to fail in hard to\r
58 > understand ways, so we abort early.\r
59 > ---\r
60 >\r
61 > meh, the previous version was borken by lazy evaluation of CXXFLAGS\r
62 > using make syntax. Better suggestions for how to do this?\r
63 \r
64 Final try, I promise ;D\r
65 \r
66 >\r
67 >  configure | 31 +++++++++++++++++++++++++++++--\r
68 >  1 file changed, 29 insertions(+), 2 deletions(-)\r
69 >\r
70 > diff --git a/configure b/configure\r
71 > index 4af7ba9..650b976 100755\r
72 > --- a/configure\r
73 > +++ b/configure\r
74 > @@ -269,6 +269,35 @@ dependencies are available:\r
75 >  EOF\r
76 >  \r
77 >  errors=0\r
78 > +printf "int main(void){return 0;}\n" > minimal.c\r
79 > +\r
80 > +printf "Sanity checking C compilation environment... "\r
81 > +if ${CC} ${CFLAGS} ${CPPFLAGS}  minimal.c ${LDFLAGS} -o minimal > /dev/null 2>&1\r
82 \r
83 if ${CC} ${CFLAGS} ${CPPFLAGS} minimal.c ${LDFLAGS} -o minimal > /dev/null 2>&1\r
84 \r
85 > +then\r
86 > +    printf "OK.\n"\r
87 > +else\r
88 > +    printf "Fail.\n"\r
89 > +    errors=$((errors + 1))\r
90 > +fi\r
91 \r
92 if [ "$CXXFLAGS" = '$(CFLAGS)' ]\r
93 then\r
94    CXXFLAGS_for_sh=$CFLAGS\r
95 else\r
96    CXXFLAGS_for_sh=$CXXFLAGS\r
97 fi\r
98 \r
99 the above is basically safe as if there are slight chages in string\r
100 '$(CFLAGS)' the CXXFLAGS_for_sh=$CXXFLAGS applies and if it is borken\r
101 then we notice it.\r
102 \r
103 > +\r
104 > +printf "Sanity checking C++ compilation environment... "\r
105 > +if ${CXX} ${CXXFLAGS_for_sh} ${CPPFLAGS} minimal.c ${LDFLAGS} -o minimal > /dev/null 2>&1\r
106 > +then\r
107 > +    printf "OK.\n"\r
108 > +else\r
109 > +    printf "Fail.\n"\r
110 > +    errors=$((errors + 1))\r
111 > +fi\r
112 \r
113 unset CXXFLAGS_for_sh\r
114 \r
115 > +\r
116 > +if [ $errors -gt 0 ]; then\r
117 > +    cat <<EOF\r
118 > +*** Error: Initial sanity checking of environment failed.  Please try\r
119 > +running configure in a clean environment, and if the problem persists,\r
120 > +report a bug.\r
121 > +EOF\r
122 > +    rm -f minimal minimal.c\r
123 > +    exit 1\r
124 > +fi\r
125 >  \r
126 >  if pkg-config --version > /dev/null 2>&1; then\r
127 >      have_pkg_config=1\r
128 > @@ -690,8 +719,6 @@ else\r
129 >  fi\r
130 >  rm -f compat/check_asctime\r
131 >  \r
132 > -printf "int main(void){return 0;}\n" > minimal.c\r
133 > -\r
134 >  printf "Checking for rpath support... "\r
135 >  if ${CC} -Wl,--enable-new-dtags -Wl,-rpath,/tmp/ -o minimal minimal.c >/dev/null 2>&1\r
136 >  then\r
137 > -- \r
138 > 2.1.4\r
139 >\r
140 > _______________________________________________\r
141 > notmuch mailing list\r
142 > notmuch@notmuchmail.org\r
143 > http://notmuchmail.org/mailman/listinfo/notmuch\r