Re: [feature request] emacs: use `notmuch insert` for FCC
[notmuch-archives.git] / 86 / 3772324040d540f29601c18ff424dc95e3fa4c
1 Return-Path: <cycleofsong@gmail.com>\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 09CC06DE1799\r
6  for <notmuch@notmuchmail.org>; Mon, 28 Dec 2015 21:54:30 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.557\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.557 tagged_above=-999 required=5 tests=[AWL=0.243,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001,\r
13  HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001,\r
14  SPF_PASS=-0.001] autolearn=disabled\r
15 Received: from arlo.cworth.org ([127.0.0.1])\r
16  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
17  with ESMTP id 5amJIvp8hueR for <notmuch@notmuchmail.org>;\r
18  Mon, 28 Dec 2015 21:54:26 -0800 (PST)\r
19 Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com\r
20  [209.85.220.47])\r
21  by arlo.cworth.org (Postfix) with ESMTPS id 9CCAF6DE1795\r
22  for <notmuch@notmuchmail.org>; Mon, 28 Dec 2015 21:54:26 -0800 (PST)\r
23 Received: by mail-pa0-f47.google.com with SMTP id yy13so27348743pab.3\r
24  for <notmuch@notmuchmail.org>; Mon, 28 Dec 2015 21:54:26 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
26  h=mime-version:in-reply-to:references:date:message-id:subject:from:to\r
27  :cc:content-type;\r
28  bh=SrsA1Y2F8DLvsizgf8VVdHYe0OaxPknLSgb9HQxzw1k=;\r
29  b=zvEgic8guai8gT95nBwWdqcrOL5TaI5M+jDJRkGWjU23OtvGUt/l8mGUh5lNYcbOYv\r
30  dS5Lbb4kAnhLf4S+jZn9Hccd8qZCgoeNSKsdrU6ORnEVTeo/Cs656f/9XVgSZRJfA8X5\r
31  NgmLRs1hr+CGKeDRcFzpRbyQbDiTeJ0BJlEPPJN20W8n2qdJYCzXU7EhgyN0BsMDjb5m\r
32  R+v29xD+Fh0KwKu/52RqQhhwM1Jpk8K9ph31scApaACoo5MOL/q55w7O/v6i8iyLyMWt\r
33  UQD2gRBHqCRduZKZaftNQjuRhalVf1SOohtwjUaOqBVGWFwYTTS+VcCgEaJWD8hgrU0G\r
34  p+RQ==\r
35 MIME-Version: 1.0\r
36 X-Received: by 10.66.190.66 with SMTP id go2mr84946477pac.114.1451368464428;\r
37  Mon, 28 Dec 2015 21:54:24 -0800 (PST)\r
38 Received: by 10.66.219.198 with HTTP; Mon, 28 Dec 2015 21:54:24 -0800 (PST)\r
39 In-Reply-To: <87ege6d41j.fsf@zancas.localnet>\r
40 References:\r
41  <CAE+_6Tw18LY954NZt+koH-mn=nniubVdk4tR8TSitDy_6wJB2Q@mail.gmail.com>\r
42  <87wprzb4sj.fsf@endefensadelsl.org> <87ege6d41j.fsf@zancas.localnet>\r
43 Date: Tue, 29 Dec 2015 00:54:24 -0500\r
44 Message-ID:\r
45  <CAE+_6TzCar9+y66p4hVL0U=dLFOR9uEUkSLJJ=pCDqJ6-bLkXw@mail.gmail.com>\r
46 Subject: Re: file-error "not a regular file"\r
47 From: Peter Salazar <cycleofsong@gmail.com>\r
48 To: David Bremner <david@tethera.net>\r
49 Cc: fauno <fauno@kiwwwi.com.ar>, notmuch@notmuchmail.org\r
50 Content-Type: multipart/alternative; boundary=047d7bf0e44cc2b5eb0528030de7\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.20\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55  <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
57  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
62  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Tue, 29 Dec 2015 05:54:30 -0000\r
64 \r
65 --047d7bf0e44cc2b5eb0528030de7\r
66 Content-Type: text/plain; charset=UTF-8\r
67 \r
68 Hi David,\r
69 \r
70 Thanks for looking into this. Much appreciated.\r
71 \r
72 Yes, following your steps, emacs -q followed by "M-x load-library <return>\r
73 notmuch", I was able to send an email without the error. It prompted me for\r
74 my smtp server, username, and password, then returned this:\r
75 \r
76 Sending email\r
77 Sending email done\r
78 Invalid image size (see `max-image-size')\r
79 Mark set\r
80 Saving file\r
81 /Users/peter/Dropbox/mail/gmail/sent/tmp/1451367804.6837_72197_1.Infinity.local...\r
82 Wrote\r
83 /Users/peter/Dropbox/mail/gmail/sent/tmp/1451367804.6837_72197_1.Infinity.local\r
84 Sending...done\r
85 \r
86 To answer your other question, yes, there is an Fcc: header when I try to\r
87 send email from my regular Emacs configuration. It's the same header I saw\r
88 when I sent email from the minimal configuration:\r
89 \r
90 Fcc: /Users/peter/Dropbox/mail/gmail/sent\r
91 \r
92 That directory does indeed exist:\r
93 \r
94 drwxr-xr-x@ 9 peter  staff  306 Dec 27 21:54 *sent*\r
95 And it contains:\r
96 \r
97 .DS_Store    .mbsyncstate *.nnmaildir*   .uidvalidity *cur*          *new*\r
98         *tmp*\r
99 Does this give us any leads?\r
100 \r
101 Thanks again.\r
102 \r
103 On Mon, Dec 28, 2015 at 9:46 AM, David Bremner <david@tethera.net> wrote:\r
104 \r
105 > fauno <fauno@kiwwwi.com.ar> writes:\r
106 >\r
107 > > Peter Salazar <cycleofsong@gmail.com> writes:\r
108 > >\r
109 > >> Hello,\r
110 > >>\r
111 > >> I'm using notmuch-mode from within Emacs to send email using\r
112 > async/mbsync\r
113 > >> through Gmail. However, every time I send email from within Emacs, I get\r
114 > >> this error:\r
115 > >\r
116 > > i got this message too for fcc with default values, i'm on emacs 24.5\r
117 > > with notmuch 0.21\r
118 > >\r
119 >\r
120 > Can either of you replicate the problem with a minimal configuration,\r
121 > ideally with "emacs -q", followed by "M-x load-library <return>\r
122 > notmuch"?\r
123 >\r
124 > If so, does the path in the Fcc header exist? If so, what is it? a file,\r
125 > a directory, a symlink?\r
126 >\r
127 > For me, in emacs 24.5 / notmuch 0.21, with emacs -q, if that path is\r
128 > missing I am prompted to create it. If I refuse, then I later get a\r
129 > message about not being a maildir.\r
130 >\r
131 > I guess the tl;dr is that I can't duplicate this problem. Looking at the\r
132 > traceback Peter provided, it looks like he is using\r
133 > "send-message-without-bullets" to send the message. Since this isn't a\r
134 > notmuch function, it's likely bypassing the notmuch fcc setup that\r
135 > notmuch-mua-send and notmuch-mua-send-and-exit do.\r
136 >\r
137 >\r
138 > d\r
139 >\r
140 >\r
141 \r
142 --047d7bf0e44cc2b5eb0528030de7\r
143 Content-Type: text/html; charset=UTF-8\r
144 Content-Transfer-Encoding: quoted-printable\r
145 \r
146 <div dir=3D"ltr">Hi David,<div><br></div><div>Thanks for looking into this.=\r
147  Much appreciated.=C2=A0</div><div><br></div><div>Yes, following your steps=\r
148 , emacs -q followed by=C2=A0<span style=3D"font-size:19.2px">&quot;M-x load=\r
149 -library &lt;return&gt;</span></div><span style=3D"font-size:19.2px">notmuc=\r
150 h&quot;, I was able to send an email without the error. It prompted me for =\r
151 my smtp server, username, and password, then returned this:</span><div><spa=\r
152 n style=3D"font-size:19.2px"><br></span></div><div><div><span style=3D"font=\r
153 -size:19.2px">Sending email=C2=A0</span></div><div><span style=3D"font-size=\r
154 :19.2px">Sending email done</span></div><div><span style=3D"font-size:19.2p=\r
155 x">Invalid image size (see `max-image-size&#39;)</span></div><div><span sty=\r
156 le=3D"font-size:19.2px">Mark set</span></div><div><span style=3D"font-size:=\r
157 19.2px">Saving file /Users/peter/Dropbox/mail/gmail/sent/tmp/1451367804.683=\r
158 7_72197_1.Infinity.local...</span></div><div><span style=3D"font-size:19.2p=\r
159 x">Wrote /Users/peter/Dropbox/mail/gmail/sent/tmp/1451367804.6837_72197_1.I=\r
160 nfinity.local</span></div><div><span style=3D"font-size:19.2px">Sending...d=\r
161 one=C2=A0</span></div></div><div><span style=3D"font-size:19.2px"><br></spa=\r
162 n></div><div><span style=3D"font-size:19.2px">To answer your other question=\r
163 , yes, there is an Fcc: header when I try to send email from my regular Ema=\r
164 cs configuration. It&#39;s the same header I saw when I sent email from the=\r
165  minimal configuration:=C2=A0</span></div><div><span style=3D"font-size:19.=\r
166 2px"><br></span></div><div><div><span style=3D"font-size:19.2px">Fcc: /User=\r
167 s/peter/Dropbox/mail/gmail/sent</span></div><div style=3D"font-size:19.2px"=\r
168 ><br></div></div><div style=3D"font-size:19.2px">That directory=C2=A0does i=\r
169 ndeed exist:=C2=A0</div><div style=3D"font-size:19.2px">\r
170 \r
171 \r
172 \r
173 \r
174 \r
175 \r
176 \r
177 <p class=3D""><span class=3D"">drwxr-xr-x@ 9 peter =C2=A0staff=C2=A0 306 De=\r
178 c 27 21:54 </span><span class=3D""><b>sent</b></span></p></div><div style=\r
179 =3D"font-size:19.2px">And it contains:</div><div style=3D"font-size:19.2px"=\r
180 >\r
181 \r
182 \r
183 \r
184 \r
185 \r
186 \r
187 \r
188 <p class=3D"">\r
189 \r
190 \r
191 \r
192 \r
193 \r
194 \r
195 \r
196 </p><p class=3D""><span class=3D"">.DS_Store=C2=A0 =C2=A0 .mbsyncstate </sp=\r
197 an><span class=3D""><b>.nnmaildir</b></span><span class=3D""> =C2=A0 .uidva=\r
198 lidity </span><span class=3D""><b>cur</b></span><span class=3D"">=C2=A0 =C2=\r
199 =A0 =C2=A0 =C2=A0 =C2=A0 </span><span class=3D""><b>new</b></span><span cla=\r
200 ss=3D"">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 </span><span class=3D""><b>tmp</=\r
201 b></span></p></div><div><span style=3D"font-size:19.2px">Does this give us =\r
202 any leads?=C2=A0</span></div><div><span style=3D"font-size:19.2px"><br></sp=\r
203 an></div><div><span style=3D"font-size:19.2px">Thanks again.</span></div></=\r
204 div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Mon, Dec 2=\r
205 8, 2015 at 9:46 AM, David Bremner <span dir=3D"ltr">&lt;<a href=3D"mailto:d=\r
206 avid@tethera.net" target=3D"_blank">david@tethera.net</a>&gt;</span> wrote:=\r
207 <br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=\r
208 t:1px #ccc solid;padding-left:1ex"><span class=3D"">fauno &lt;<a href=3D"ma=\r
209 ilto:fauno@kiwwwi.com.ar">fauno@kiwwwi.com.ar</a>&gt; writes:<br>\r
210 <br>\r
211 &gt; Peter Salazar &lt;<a href=3D"mailto:cycleofsong@gmail.com">cycleofsong=\r
212 @gmail.com</a>&gt; writes:<br>\r
213 &gt;<br>\r
214 &gt;&gt; Hello,<br>\r
215 &gt;&gt;<br>\r
216 &gt;&gt; I&#39;m using notmuch-mode from within Emacs to send email using a=\r
217 sync/mbsync<br>\r
218 &gt;&gt; through Gmail. However, every time I send email from within Emacs,=\r
219  I get<br>\r
220 &gt;&gt; this error:<br>\r
221 &gt;<br>\r
222 &gt; i got this message too for fcc with default values, i&#39;m on emacs 2=\r
223 4.5<br>\r
224 &gt; with notmuch 0.21<br>\r
225 &gt;<br>\r
226 <br>\r
227 </span>Can either of you replicate the problem with a minimal configuration=\r
228 ,<br>\r
229 ideally with &quot;emacs -q&quot;, followed by &quot;M-x load-library &lt;r=\r
230 eturn&gt;<br>\r
231 notmuch&quot;?<br>\r
232 <br>\r
233 If so, does the path in the Fcc header exist? If so, what is it? a file,<br=\r
234 >\r
235 a directory, a symlink?<br>\r
236 <br>\r
237 For me, in emacs 24.5 / notmuch 0.21, with emacs -q, if that path is<br>\r
238 missing I am prompted to create it. If I refuse, then I later get a<br>\r
239 message about not being a maildir.<br>\r
240 <br>\r
241 I guess the tl;dr is that I can&#39;t duplicate this problem. Looking at th=\r
242 e<br>\r
243 traceback Peter provided, it looks like he is using<br>\r
244 &quot;send-message-without-bullets&quot; to send the message. Since this is=\r
245 n&#39;t a<br>\r
246 notmuch function, it&#39;s likely bypassing the notmuch fcc setup that<br>\r
247 notmuch-mua-send and notmuch-mua-send-and-exit do.<br>\r
248 <span class=3D"HOEnZb"><font color=3D"#888888"><br>\r
249 <br>\r
250 d<br>\r
251 <br>\r
252 </font></span></blockquote></div><br></div>\r
253 \r
254 --047d7bf0e44cc2b5eb0528030de7--\r