community/pipermail-archives/sup-devel/2013-11.txt (67501B) - raw
1 From eg@gaute.vetsj.com Tue Nov 5 07:51:42 2013
2 From: eg@gaute.vetsj.com (Gaute Hope)
3 Date: Tue, 05 Nov 2013 08:51:42 +0100
4 Subject: [sup-devel] sup 0.15?
5 Message-ID: <1383637745-sup-2758@qwerzila>
6
7 hi there,
8
9 any objections to releasing sup 0.15 (I figured it deserves a whole new
10 version number!) with maildir-syncback as it is now? Is it ready to be
11 released into the wild?
12
13 (maildir-syncback is now in 'develop' - go ahead and test if you
14 haven't)
15
16 Cheers, Gaute
17
18
19 From eg@gaute.vetsj.com Tue Nov 5 08:10:54 2013
20 From: eg@gaute.vetsj.com (Gaute Hope)
21 Date: Tue, 05 Nov 2013 09:10:54 +0100
22 Subject: [sup-devel] some easy issues for those who want to get involved
23 Message-ID: <1383638882-sup-7342@qwerzila>
24
25 hi there,
26
27 there are a few easy issues in the issue-tracker [0] for those who want
28 to get involved in developing sup. Please check them out:
29
30 - #174: add a keybinding for opening a decoded attachment [1]
31 - #175: expunge script for maildir-syncback [2]
32
33 rewards:
34 - a better sup
35 - you get to be added to the contributors team for sup (on github) (yey!)
36
37 Cheers, Gaute
38
39
40 [0] https://github.com/sup-heliotrope/sup/issues?state=open
41 [1] https://github.com/sup-heliotrope/sup/issues/174
42 [2] https://github.com/sup-heliotrope/sup/issues/175
43
44
45 From matthieu.rakotojaona@gmail.com Tue Nov 5 19:36:06 2013
46 From: matthieu.rakotojaona@gmail.com (Matthieu Rakotojaona)
47 Date: Tue, 05 Nov 2013 20:36:06 +0100
48 Subject: [sup-devel] sup 0.15?
49 In-Reply-To: <1383637745-sup-2758@qwerzila>
50 References: <1383637745-sup-2758@qwerzila>
51 Message-ID: <1383638661-sup-4880@kpad>
52
53 Hello,
54
55 Excerpts from Gaute Hope's message of 2013-11-05 08:51:42 +0100:
56 > any objections to releasing sup 0.15
57
58 No objections for me (but I haven't been using the maildir-syncback
59 feature much, so that's not really much...)
60
61 --
62 Matthieu Rakotojaona
63 -------------- next part --------------
64 A non-text attachment was scrubbed...
65 Name: signature.asc
66 Type: application/pgp-signature
67 Size: 836 bytes
68 Desc: not available
69 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131105/6701c519/attachment.bin>
70
71 From eg@gaute.vetsj.com Thu Nov 7 15:04:36 2013
72 From: eg@gaute.vetsj.com (Gaute Hope)
73 Date: Thu, 07 Nov 2013 16:04:36 +0100
74 Subject: [sup-devel] Release 0.15.0
75 Message-ID: <1383836355-sup-568@qwerzila>
76
77 Hi all,
78
79 Sup 0.15.0 is out, get it at rubygems:
80
81
82
83 $ gem install sup
84
85
86 (detailed installation instructions in the wiki [1])
87
88
89 News, please at least skim through:
90
91 * Maildir Syncback has now been merged into main sup! This is a
92 long-time waiting feature initially developed by Damien Leone,
93 then picked up by Edward Z. Yang who continued development. Additionally
94 several others have been contributing.
95
96 Eventually, recently, Eric Weikl has picked up this branch, modernized
97 it to current sup, maintained it and gotten it ready for release.
98
99 Main authors:
100
101 Damien Leone
102 Edward Z. Yang
103 Eric Weikl
104
105 Not all of the features initially proposed have been included. This is
106 to maintain compatibility with more operating systems and wait with
107 the more daring features to make sure sup is stable-ish.
108
109 This is a big change since sup now can modify your mail (!), please
110 back up your mail and your configuration before using the maildir
111 syncback feature. For instructions on how to migrate an existing
112 maildir source or how to set up a new one, refer to the wiki:
113
114 https://github.com/sup-heliotrope/sup/wiki/Using-sup-with-other-clients
115
116 It is possible to both disable maildir syncback globally (default:
117 disabled) and per-source (default: enabled).
118
119 * Sup on Ruby 2.0.0 now works - but beware, this has not been very throughly
120 tested. Patches are welcome.
121
122 * We are now using our own rmail-sup gem with fixes for Ruby 2.0.0 and
123 various warnings fixed.
124
125 * sup-sync-back has been renamed to sup-sync-back-mbox to conform with
126 the other sync-back scripts.
127
128 * You can now save attachments to directories without specifying the full
129 filename (default filename is used).
130
131 * Various encoding fixes and minor bug fixes
132
133
134 Important: If you are upgrading from a Sup version prior to 0.14.0
135 please read the migration instructions in the wiki [0].
136
137 Please report any issues you encounter to our GitHub issue tracker [2].
138
139 Thanks to all who have contributed to sup either with code [3] or
140 testing!
141
142 Cheers, Gaute
143
144
145 [0] https://github.com/sup-heliotrope/sup/wiki/Migration-0.13-to-0.14
146 [1] https://github.com/sup-heliotrope/sup/wiki
147 [2] https://github.com/sup-heliotrope/sup/issues
148 [3] https://github.com/sup-heliotrope/sup/blob/release-0.15.0/CONTRIBUTORS
149
150 -------------- next part --------------
151 A non-text attachment was scrubbed...
152 Name: signature.asc
153 Type: application/pgp-signature
154 Size: 836 bytes
155 Desc: not available
156 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131107/e363e386/attachment.bin>
157
158 From sdothum@gmail.com Sun Nov 10 15:49:47 2013
159 From: sdothum@gmail.com (Steven Hum)
160 Date: Sun, 10 Nov 2013 10:49:47 -0500
161 Subject: [sup-devel] sup 0.15?
162 In-Reply-To: <1384097900-sup-2821@luna>
163 References: <1383637745-sup-2758@qwerzila> <1384097900-sup-2821@luna>
164 Message-ID: <1384098458-sup-7304@luna>
165
166
167 Edit: regarding the rmail comment.. I noticed the sup-rmail-1.0.1 gem
168 which I presume sup-0.15.0 installed.
169
170 Steven
171
172
173 Excerpts from Steven Hum's message of 2013-11-10 10:42:00 -0500:
174 >
175 > Hello Gaute,
176 >
177 > I did a gem install of 0.15.0 on a Debian Sid system and got this error:
178 >
179 >
180 > --- RuntimeError from thread: load threads for thread-index-mode
181 > invalid source 13
182 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:237:in `block in build_message'
183 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:235:in `map'
184 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:235:in `build_message'
185 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:161:in `block (2 levels) in each_id_by_date'
186 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/thread.rb:338:in `call'
187 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/thread.rb:338:in `block in load_n_threads'
188 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:161:in `block in each_id_by_date'
189 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:284:in `block in each_id'
190 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:284:in `each'
191 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:284:in `each_id'
192 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:161:in `each_id_by_date'
193 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/thread.rb:334:in `load_n_threads'
194 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/modes/thread_index_mode.rb:674:in `load_n_threads'
195 > (eval):12:in `load_n_threads'
196 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/modes/thread_index_mode.rb:658:in `block in load_n_threads_background'
197 > /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup.rb:87:in `block in reporting_thread'
198 >
199 >
200 > Gem version 0.14.1.1 works fine on Debian Sid (rmail did not appear to
201 > be installed with 0.15.0 but that doesn't seem to be related to the
202 > above error).
203 >
204 > Regards,
205 > Steven
206 >
207 > Excerpts from Gaute Hope's message of 2013-11-05 02:51:42 -0500:
208 > > hi there,
209 > >
210 > > any objections to releasing sup 0.15 (I figured it deserves a whole new
211 > > version number!) with maildir-syncback as it is now? Is it ready to be
212 > > released into the wild?
213 > >
214 > > (maildir-syncback is now in 'develop' - go ahead and test if you
215 > > haven't)
216 > >
217 > > Cheers, Gaute
218 > >
219 >
220
221 --
222 "Truth or die."
223
224 Steven Hum
225 5 - 28 Gilmour St
226 Ottawa, ON K2P 0N3
227 email sdothum at gmail.com
228 tel 613.237.9058
229
230 From eg@gaute.vetsj.com Sun Nov 10 19:45:13 2013
231 From: eg@gaute.vetsj.com (Gaute Hope)
232 Date: Sun, 10 Nov 2013 20:45:13 +0100
233 Subject: [sup-devel] sup 0.15?
234 In-Reply-To: <1384097900-sup-2821@luna>
235 References: <1383637745-sup-2758@qwerzila> <1384097900-sup-2821@luna>
236 Message-ID: <1384112448-sup-9012@qwerzila>
237
238 Excerpts from Steven Hum's message of 2013-11-10 16:42:00 +0100:
239 > I did a gem install of 0.15.0 on a Debian Sid system and got this error:
240 >
241 >
242 > --- RuntimeError from thread: load threads for thread-index-mode
243 > invalid source 13
244
245 Hi Steven,
246
247 have you changed your sources.yaml in ~/.sup somehow? It seems like sup
248 can't find source number 13.
249
250 Sup 0.14.1.1 worked? If you upgraded from before 0.14 you need to follow
251 these instructions:
252
253 https://github.com/sup-heliotrope/sup/wiki/Migration-0.13-to-0.14
254
255 Btw; I haven't seen anything about sup-rmail-1.0.1, is that a debian
256 package?
257
258 - gaute
259
260 From sdothum@gmail.com Sun Nov 10 15:42:00 2013
261 From: sdothum@gmail.com (Steven Hum)
262 Date: Sun, 10 Nov 2013 10:42:00 -0500
263 Subject: [sup-devel] sup 0.15?
264 In-Reply-To: <1383637745-sup-2758@qwerzila>
265 References: <1383637745-sup-2758@qwerzila>
266 Message-ID: <1384097900-sup-2821@luna>
267
268
269 Hello Gaute,
270
271 I did a gem install of 0.15.0 on a Debian Sid system and got this error:
272
273
274 --- RuntimeError from thread: load threads for thread-index-mode
275 invalid source 13
276 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:237:in `block in build_message'
277 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:235:in `map'
278 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:235:in `build_message'
279 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:161:in `block (2 levels) in each_id_by_date'
280 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/thread.rb:338:in `call'
281 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/thread.rb:338:in `block in load_n_threads'
282 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:161:in `block in each_id_by_date'
283 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:284:in `block in each_id'
284 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:284:in `each'
285 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:284:in `each_id'
286 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/index.rb:161:in `each_id_by_date'
287 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/thread.rb:334:in `load_n_threads'
288 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/modes/thread_index_mode.rb:674:in `load_n_threads'
289 (eval):12:in `load_n_threads'
290 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup/modes/thread_index_mode.rb:658:in `block in load_n_threads_background'
291 /var/lib/gems/1.9.1/gems/sup-0.15.0/lib/sup.rb:87:in `block in reporting_thread'
292
293
294 Gem version 0.14.1.1 works fine on Debian Sid (rmail did not appear to
295 be installed with 0.15.0 but that doesn't seem to be related to the
296 above error).
297
298 Regards,
299 Steven
300
301
302 Excerpts from Gaute Hope's message of 2013-11-05 02:51:42 -0500:
303 > hi there,
304 >
305 > any objections to releasing sup 0.15 (I figured it deserves a whole new
306 > version number!) with maildir-syncback as it is now? Is it ready to be
307 > released into the wild?
308 >
309 > (maildir-syncback is now in 'develop' - go ahead and test if you
310 > haven't)
311 >
312 > Cheers, Gaute
313 >
314
315 --
316 "Truth or die."
317
318 Steven Hum
319 5 - 28 Gilmour St
320 Ottawa, ON K2P 0N3
321 email sdothum at gmail.com
322 tel 613.237.9058
323
324 From sdothum@gmail.com Mon Nov 11 13:18:45 2013
325 From: sdothum@gmail.com (Steven Hum)
326 Date: Mon, 11 Nov 2013 08:18:45 -0500
327 Subject: [sup-devel] sup 0.15?
328 In-Reply-To: <1384112448-sup-9012@qwerzila>
329 References: <1383637745-sup-2758@qwerzila> <1384097900-sup-2821@luna>
330 <1384112448-sup-9012@qwerzila>
331 Message-ID: <1384175088-sup-8928@luna>
332
333
334 Hello Gaute,
335
336 Thanks for pointing me in the right direction. My sources.yaml file was
337 unchanged from sup 0.14.x but only had one source defined in it. I was
338 using a startup.rb hook to scan and define my offlineimap sources and
339 that is where the problem seems to have originated for sup 0.15.0..
340 (due to a possible change to the SourceManager.add_source?)
341
342 By eliminating my startup hook and manually defining all my sources,
343 I was able to reinitialize the xapian mail database and all seems to be
344 functioning now.
345
346 Guess I will have to poke around to find out why my startup hook
347 appears to be causing problems.
348
349 Regards,
350 Steven
351
352
353 Excerpts from Gaute Hope's message of 2013-11-10 14:45:13 -0500:
354 > Excerpts from Steven Hum's message of 2013-11-10 16:42:00 +0100:
355 > > I did a gem install of 0.15.0 on a Debian Sid system and got this error:
356 > >
357 > >
358 > > --- RuntimeError from thread: load threads for thread-index-mode
359 > > invalid source 13
360 >
361 > Hi Steven,
362 >
363 > have you changed your sources.yaml in ~/.sup somehow? It seems like sup
364 > can't find source number 13.
365 >
366 > Sup 0.14.1.1 worked? If you upgraded from before 0.14 you need to follow
367 > these instructions:
368 >
369 > https://github.com/sup-heliotrope/sup/wiki/Migration-0.13-to-0.14
370 >
371 > Btw; I haven't seen anything about sup-rmail-1.0.1, is that a debian
372 > package?
373 >
374 > - gaute
375
376 --
377 "Truth or die."
378
379 Steven Hum
380 5 - 28 Gilmour St
381 Ottawa, ON K2P 0N3
382 email sdothum at gmail.com
383 tel 613.237.9058
384
385 From eg@gaute.vetsj.com Mon Nov 11 13:31:57 2013
386 From: eg@gaute.vetsj.com (Gaute Hope)
387 Date: Mon, 11 Nov 2013 14:31:57 +0100
388 Subject: [sup-devel] sup 0.15?
389 In-Reply-To: <1384175088-sup-8928@luna>
390 References: <1383637745-sup-2758@qwerzila> <1384097900-sup-2821@luna>
391 <1384112448-sup-9012@qwerzila> <1384175088-sup-8928@luna>
392 Message-ID: <1384176621-sup-7237@qwerzila>
393
394 Excerpts from Steven Hum's message of 2013-11-11 14:18:45 +0100:
395 >
396 > Hello Gaute,
397 >
398 > Thanks for pointing me in the right direction. My sources.yaml file was
399 > unchanged from sup 0.14.x but only had one source defined in it. I was
400 > using a startup.rb hook to scan and define my offlineimap sources and
401 > that is where the problem seems to have originated for sup 0.15.0..
402 > (due to a possible change to the SourceManager.add_source?)
403 >
404 > By eliminating my startup hook and manually defining all my sources,
405 > I was able to reinitialize the xapian mail database and all seems to be
406 > functioning now.
407 >
408 > Guess I will have to poke around to find out why my startup hook
409 > appears to be causing problems.
410
411 Yes, weird. Perhaps some of the maildir-syncback startup checking has
412 messed up the startup hook? (@ericweikl: poke.)
413
414 Great that you figured it out.
415
416 Regards, Gaute
417
418
419 From eric.weikl@gmx.net Tue Nov 12 19:42:50 2013
420 From: eric.weikl@gmx.net (Eric Weikl)
421 Date: Tue, 12 Nov 2013 20:42:50 +0100
422 Subject: [sup-devel] sup 0.15?
423 In-Reply-To: <1384175088-sup-8928@luna>
424 References: <1383637745-sup-2758@qwerzila> <1384097900-sup-2821@luna>
425 <1384112448-sup-9012@qwerzila> <1384175088-sup-8928@luna>
426 Message-ID: <1384285065-sup-2892@alderaan>
427
428 Hi Steven,
429
430 On 11/11/2013 14:18:45, Steven Hum wrote:
431 > Thanks for pointing me in the right direction. My sources.yaml file was
432 > unchanged from sup 0.14.x but only had one source defined in it. I was
433 > using a startup.rb hook to scan and define my offlineimap sources and
434 > that is where the problem seems to have originated for sup 0.15.0..
435 > (due to a possible change to the SourceManager.add_source?)
436 >
437 > By eliminating my startup hook and manually defining all my sources, I
438 > was able to reinitialize the xapian mail database and all seems to be
439 > functioning now.
440 >
441 > Guess I will have to poke around to find out why my startup hook
442 > appears to be causing problems.
443
444 Hmm... I'm not aware of any changes that could cause that behavior.
445 Could you post your hook? I'd like to make sure we didn't change any
446 expected behavior.
447
448 Cheers,
449 Eric
450
451 From sdothum@gmail.com Wed Nov 13 00:47:55 2013
452 From: sdothum@gmail.com (Steven Hum)
453 Date: Tue, 12 Nov 2013 19:47:55 -0500
454 Subject: [sup-devel] sup 0.15?
455 In-Reply-To: <1384285065-sup-2892@alderaan>
456 References: <1383637745-sup-2758@qwerzila> <1384097900-sup-2821@luna>
457 <1384112448-sup-9012@qwerzila> <1384175088-sup-8928@luna>
458 <1384285065-sup-2892@alderaan>
459 Message-ID: <1384303088-sup-6652@luna>
460
461
462 Hello Eric,
463
464 Attached is my startup.rb file. Essentially, it scans my offlineimap
465 folder directory for the mail folders (and labels them with their
466 folder names -- I use imapfilter to pre-process my incoming mail and
467 move my mail to the appropriate folders). If I initialize (rm) the
468 xapian database, all mail is initially archived.
469
470 Hope this helps. For now, I have simply created an explicit
471 sources.yaml file (one to archive all to rebuild the mail database from
472 scratch, one with selected archiving to simulate my startup hook) -- so
473 sup behaves as before.
474
475 Regards,
476 Steven
477
478
479 Excerpts from Eric Weikl's message of 2013-11-12 14:42:50 -0500:
480 > Hi Steven,
481 >
482 > On 11/11/2013 14:18:45, Steven Hum wrote:
483 > > Thanks for pointing me in the right direction. My sources.yaml file was
484 > > unchanged from sup 0.14.x but only had one source defined in it. I was
485 > > using a startup.rb hook to scan and define my offlineimap sources and
486 > > that is where the problem seems to have originated for sup 0.15.0..
487 > > (due to a possible change to the SourceManager.add_source?)
488 > >
489 > > By eliminating my startup hook and manually defining all my sources, I
490 > > was able to reinitialize the xapian mail database and all seems to be
491 > > functioning now.
492 > >
493 > > Guess I will have to poke around to find out why my startup hook
494 > > appears to be causing problems.
495 >
496 > Hmm... I'm not aware of any changes that could cause that behavior.
497 > Could you post your hook? I'd like to make sure we didn't change any
498 > expected behavior.
499 >
500 > Cheers,
501 > Eric
502
503 --
504 "Truth or die."
505
506 Steven Hum
507 5 - 28 Gilmour St
508 Ottawa, ON K2P 0N3
509 email sdothum at gmail.com
510 tel 613.237.9058
511 -------------- next part --------------
512 A non-text attachment was scrubbed...
513 Name: startup.rb
514 Type: application/x-ruby
515 Size: 1597 bytes
516 Desc: not available
517 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131112/8dc76cb3/attachment.bin>
518
519 From eg@gaute.vetsj.com Mon Nov 25 15:24:58 2013
520 From: eg@gaute.vetsj.com (Gaute Hope)
521 Date: Mon, 25 Nov 2013 16:24:58 +0100
522 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
523 (imap folders)
524 Message-ID: <1385392376-sup-8491@qwerzila>
525
526 Hi fellow suppers,
527
528 for a while I have been using a 'maildir-root' source that I created.
529 It is based on the maildir-syncback code, but goes further: you only
530 specify a root folder with maildirs to the source, then each sub folder
531 (maildirsub) is mapped to a label. Some of the labels are special: like
532 deleted, inbox and archive (the special-label to maildirsub mapping can
533 be specified in the source configuration).
534
535 This means that a sup label corresponds to maildir inside the
536 maildir-root and the behavior works like this:
537
538 - (remote to local) if a message is found in a maildirsub that label is added to it.
539 - (remote to local) if a message is removed from a maildirsub that
540 label is removed (unless it has just been moved).
541 - (local to remote) if you add a label the message is written to that
542 maildirsub (of all the maildir-roots the message belongs to)
543 - (local to remote) if you remove a label from a message the message is deleted
544 from that maildirsub. if it is deleted from all maildirsubs it is
545 copied to the archive maildirsub.
546 - (local to remote) if you archive a message it is removed from the
547 inbox maildirsub, if it doesn't belong to any other
548 labels/maildirsubs it is copied to archive.
549 - (local to remote / remote to local) the same flag features as
550 maildir-syncback (done on all copies in all maildirsubs)
551 - (local to remote) if you add a label to a message and the message
552 belongs to a maildir-root where no corresponding maildirsub exists a
553 maildir will be created for it.
554
555 I have been using it for 4-5 months now and it is getting fairly stable.
556 It works fairly well on gmail (label sync), but I am also using it on
557 regular IMAP servers (here it might, in the future, be useful to always keep a copy in
558 archive).
559
560 If you are interested in trying this please have a look at:
561 https://github.com/gauteh/sup/blob/maildir-root/lib/sup/maildirroot.rb
562
563 or my branch: https://github.com/gauteh/sup/tree/maildir-root, but please
564 be careful.
565
566 I am using this with offlineimap and utf-7-imap to utf-8 conversion. It
567 is probably necessary to do a full sync every time to make sure things
568 stay in sync. Remember that it is technically possible to still do
569 changes to the maildir while offlineimap is syncing, I haven't had any
570 problems with this (except read flag), but it is potentially a little
571 careless.
572
573
574 Cheers, Gaute
575
576 -------------- next part --------------
577 A non-text attachment was scrubbed...
578 Name: signature.asc
579 Type: application/pgp-signature
580 Size: 836 bytes
581 Desc: not available
582 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131125/f0483ddf/attachment.bin>
583
584 From steven@schmeiser.org Mon Nov 25 18:23:24 2013
585 From: steven@schmeiser.org (Steven Schmeiser)
586 Date: Mon, 25 Nov 2013 13:23:24 -0500
587 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
588 (imap folders)
589 In-Reply-To: <1385392376-sup-8491@qwerzila>
590 References: <1385392376-sup-8491@qwerzila>
591 Message-ID: <1385403694-sup-5692@indy.local>
592
593 Hi,
594 I'm very interested in trying out this branch.
595
596 I don't know the sup internals very well, so I'm having a hard time figuring this out on my own, but what config options need to be changed/set to use maildir-root? I'm currently using marildir-sync.
597
598 Thanks for all your work on sup!
599
600 Steve
601
602 > Hi fellow suppers,
603 >
604 > for a while I have been using a 'maildir-root' source that I created.
605 > It is based on the maildir-syncback code, but goes further: you only
606 > specify a root folder with maildirs to the source, then each sub folder
607 > (maildirsub) is mapped to a label. Some of the labels are special: like
608 > deleted, inbox and archive (the special-label to maildirsub mapping can
609 > be specified in the source configuration).
610 >
611 > This means that a sup label corresponds to maildir inside the
612 > maildir-root and the behavior works like this:
613 >
614 > - (remote to local) if a message is found in a maildirsub that label is added to it.
615 > - (remote to local) if a message is removed from a maildirsub that
616 > label is removed (unless it has just been moved).
617 > - (local to remote) if you add a label the message is written to that
618 > maildirsub (of all the maildir-roots the message belongs to)
619 > - (local to remote) if you remove a label from a message the message is deleted
620 > from that maildirsub. if it is deleted from all maildirsubs it is
621 > copied to the archive maildirsub.
622 > - (local to remote) if you archive a message it is removed from the
623 > inbox maildirsub, if it doesn't belong to any other
624 > labels/maildirsubs it is copied to archive.
625 > - (local to remote / remote to local) the same flag features as
626 > maildir-syncback (done on all copies in all maildirsubs)
627 > - (local to remote) if you add a label to a message and the message
628 > belongs to a maildir-root where no corresponding maildirsub exists a
629 > maildir will be created for it.
630 >
631 > I have been using it for 4-5 months now and it is getting fairly stable.
632 > It works fairly well on gmail (label sync), but I am also using it on
633 > regular IMAP servers (here it might, in the future, be useful to always keep a copy in
634 > archive).
635 >
636 > If you are interested in trying this please have a look at:
637 > https://github.com/gauteh/sup/blob/maildir-root/lib/sup/maildirroot.rb
638 >
639 > or my branch: https://github.com/gauteh/sup/tree/maildir-root, but please
640 > be careful.
641 >
642 > I am using this with offlineimap and utf-7-imap to utf-8 conversion. It
643 > is probably necessary to do a full sync every time to make sure things
644 > stay in sync. Remember that it is technically possible to still do
645 > changes to the maildir while offlineimap is syncing, I haven't had any
646 > problems with this (except read flag), but it is potentially a little
647 > careless.
648 >
649 >
650 > Cheers, Gaute
651
652 From matthieu.rakotojaona@gmail.com Mon Nov 25 21:08:48 2013
653 From: matthieu.rakotojaona@gmail.com (Matthieu Rakotojaona)
654 Date: Mon, 25 Nov 2013 22:08:48 +0100
655 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
656 (imap folders)
657 In-Reply-To: <1385392376-sup-8491@qwerzila>
658 References: <1385392376-sup-8491@qwerzila>
659 Message-ID: <1385413528-sup-6595@kpad>
660
661 Wow, that's amazing stuff. Would you care to share your .offlineimaprc ?
662 I myself use the gmail source
663 (https://github.com/rakoo/sup/tree/gmail_source), but it's not very
664 smart at syncing old labels, and it's mostly targeted towards gmail, so
665 I'd like to switch to something else (plus having a local tree of
666 maildirs is always helpful)
667
668 --
669 Matthieu Rakotojaona
670 -------------- next part --------------
671 A non-text attachment was scrubbed...
672 Name: signature.asc
673 Type: application/pgp-signature
674 Size: 836 bytes
675 Desc: not available
676 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131125/b40686d3/attachment.bin>
677
678 From eg@gaute.vetsj.com Mon Nov 25 21:51:09 2013
679 From: eg@gaute.vetsj.com (Gaute Hope)
680 Date: Mon, 25 Nov 2013 22:51:09 +0100
681 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
682 (imap folders)
683 In-Reply-To: <1385392376-sup-8491@qwerzila>
684 References: <1385392376-sup-8491@qwerzila>
685 Message-ID: <1385415206-sup-5054@qwerzila>
686
687 Hi,
688
689 I have attached my relevant configs (and hopefully managed to anonymize
690 them enough). As you can see I use the 'utf7.py' module (placed in
691 ~/.offlineimap/) to decode/encode between imap4-utf-7 and utf-8 on
692 system (if your filesystem uses a different encoding you might have
693 issues). Please don't use the configs verbatim, but rather as
694 inspiration: I might have cut out important parts. Some of this is
695 in the wiki.
696
697 Some of the folders are translated (bi-directional of course) in my
698 offlineimaprc, but if you check out my sources.yaml you will see that I
699 have specified which folders are related to special (deleted, starred,
700 inbox, etc) for some of the sources.
701
702 My translation setup in offlineimaprc for my first GMail account
703 corresponds to the default values the maildirroot source suggests. The
704 only relevant change in config.yaml is to set sync_back_to_maildir:
705 true.
706
707 The way I set up sup with maildirroot is:
708 $ sup-config
709
710 fill in, don't add any sources. If you have a working config.yaml, you
711 can use it.
712
713 add sources:
714 $ sup-add maildirroot:///home/gaute/.mail/imap_account
715
716 I edit ~/.sup/sources.yaml and enable:
717 - confirm_enable_experimental: true
718 - sync_back: true
719 - maildir_creation_allowed: true
720
721 and tweak the folder names if necessary.
722
723 Then if your index is empty (you _cannot_ merge an existing maildir
724 source by using the same source id) - I run sup-sync:
725 $ sup-sync -v
726
727 Note that sup-sync does not support the :updated flag (when a message
728 has moved on disk), for that you have to run regular Sup and do a poll.
729 sup-sync scans through and adds labels; you can also just start up sup
730 and see what happens, but that takes a longer time: you probably do not
731 need to enable the stuff in sources.yaml before after sup-sync if you
732 are nervous (I would be!).
733
734 Some annoying issues:
735 - deleting a maildir is hard:
736 * if you delete it remotely it will be recreated by offlineimap (i
737 think)
738 * you have to first remove all emails remotely, sync sup, to make sure
739 labels are removed.
740 * if you remove all messages from a label the maildir will be empty,
741 to delete the maildir: sync, delete the maildir locally + delete it
742 remotely; then re-sync.
743
744 this is the behaviour of offlineimap, but I think it is hard to do
745 it differently. this means that if you accidentally add a bogus
746 label, it is a bit of a pain to get rid of the maildir.
747
748
749 - if a message is deleted from the inbox remotely (archived) it is not
750 removed from the inbox view (or any thread index view it is visible
751 in) before sup is restarted.
752
753 To test maildirroot:
754 checkout my branch; make the gem: $ rake gem and install it: $ gem
755 install pkg/sup-999.gem. If develop has changed you can try to merge it in
756 first.
757
758 Again; please make a backup copy of your .mail so that you can restore
759 it if it turns out maildirroot has been eating or multiplying emails :)
760
761 I probably don't have the time to difficult bugs, but I would be happy
762 to accept patches and I could also put this branch on official Sup if it
763 turns out to be worth something.
764
765
766 Cheers, Gaute
767 -------------- next part --------------
768 A non-text attachment was scrubbed...
769 Name: offlineimaprc
770 Type: application/octet-stream
771 Size: 3998 bytes
772 Desc: not available
773 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131125/c2378a2c/attachment-0001.obj>
774 -------------- next part --------------
775 A non-text attachment was scrubbed...
776 Name: utf7.py
777 Type: application/x-python
778 Size: 2213 bytes
779 Desc: not available
780 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131125/c2378a2c/attachment-0004.bin>
781 -------------- next part --------------
782 A non-text attachment was scrubbed...
783 Name: sources.yaml
784 Type: text/x-yaml
785 Size: 1560 bytes
786 Desc: not available
787 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131125/c2378a2c/attachment-0005.bin>
788 -------------- next part --------------
789 A non-text attachment was scrubbed...
790 Name: config.yaml
791 Type: text/x-yaml
792 Size: 603 bytes
793 Desc: not available
794 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131125/c2378a2c/attachment-0006.bin>
795 -------------- next part --------------
796 A non-text attachment was scrubbed...
797 Name: signature.asc
798 Type: application/pgp-signature
799 Size: 836 bytes
800 Desc: not available
801 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131125/c2378a2c/attachment-0007.bin>
802
803 From eg@gaute.vetsj.com Mon Nov 25 22:28:32 2013
804 From: eg@gaute.vetsj.com (Gaute Hope)
805 Date: Mon, 25 Nov 2013 23:28:32 +0100
806 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
807 (imap folders)
808 In-Reply-To: <1385415206-sup-5054@qwerzila>
809 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
810 Message-ID: <1385418447-sup-2385@qwerzila>
811
812 By the way:
813
814 sub dirs show up with dots between them so maildir:
815 dev/sup becomes label dev.sup (can't remember if this is standard
816 offlineimap behavior or something I did).
817
818 - gaute
819
820 -------------- next part --------------
821 A non-text attachment was scrubbed...
822 Name: signature.asc
823 Type: application/pgp-signature
824 Size: 836 bytes
825 Desc: not available
826 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131125/db7530b8/attachment.bin>
827
828 From steven@schmeiser.org Tue Nov 26 14:43:49 2013
829 From: steven@schmeiser.org (Steven Schmeiser)
830 Date: Tue, 26 Nov 2013 09:43:49 -0500
831 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
832 (imap folders)
833 In-Reply-To: <1385415206-sup-5054@qwerzila>
834 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
835 Message-ID: <1385476504-sup-9378@indy.local>
836
837 I've installed the branch and am trying it out. So far it looks good, but there have been a few oddities...
838
839 I'm running with a standard IMAP account (not Gmail). The root looks like
840
841 [steve at indy ~]$ ls -l .mail
842 total 0
843 drwx------ 5 steve staff 170 Nov 19 13:44 Archive
844 drwx------ 5 steve staff 170 Nov 22 12:31 INBOX
845 drwx------ 5 steve staff 170 Nov 19 13:44 drafts
846 drwx------ 5 steve staff 170 Nov 19 13:44 econpapers
847 drwx------ 5 steve staff 170 Nov 19 13:44 sent
848 drwx------ 5 steve staff 170 Nov 19 13:44 spam
849 drwx------ 5 steve staff 170 Nov 25 19:25 trash
850
851 and my sources are configured as follows
852
853 [steve at indy ~]$ more .sup/sources.yaml
854 ---
855 - !supmua.org,2006-10-01/Redwood/MaildirRoot
856 uri: maildirroot:///Users/steve/.mail
857 usual: true
858 archived: false
859 id: 1
860 labels: []
861 sync_back: true
862 confirm_enable_experimental: true
863 maildir_creation_allowed: true
864 inbox_folder: INBOX
865 sent_folder: sent
866 drafts_folder: drafts
867 spam_folder: spam
868 trash_folder: trash
869 archive_folder: Archive
870 - !supmua.org,2006-10-01/Redwood/SentLoader{}
871
872 I had around 40k messages in the Archive folder and ~20 in the INBOX. After sup-sync, around 10k of the messages in Archive were moved into sup's inbox with labels 'INBOX' and 'Inbox'. They were also (incorrectly) marked as unread.
873
874 I'll keep experimenting. Thanks for your effort -- I think this is a great new feature and would really like to see it merged into the mainline someday.
875
876 Steve
877
878
879 > Hi,
880 >
881 > I have attached my relevant configs (and hopefully managed to anonymize
882 > them enough). As you can see I use the 'utf7.py' module (placed in
883 > ~/.offlineimap/) to decode/encode between imap4-utf-7 and utf-8 on
884 > system (if your filesystem uses a different encoding you might have
885 > issues). Please don't use the configs verbatim, but rather as
886 > inspiration: I might have cut out important parts. Some of this is
887 > in the wiki.
888 >
889 > Some of the folders are translated (bi-directional of course) in my
890 > offlineimaprc, but if you check out my sources.yaml you will see that I
891 > have specified which folders are related to special (deleted, starred,
892 > inbox, etc) for some of the sources.
893 >
894 > My translation setup in offlineimaprc for my first GMail account
895 > corresponds to the default values the maildirroot source suggests. The
896 > only relevant change in config.yaml is to set sync_back_to_maildir:
897 > true.
898 >
899 > The way I set up sup with maildirroot is:
900 > $ sup-config
901 >
902 > fill in, don't add any sources. If you have a working config.yaml, you
903 > can use it.
904 >
905 > add sources:
906 > $ sup-add maildirroot:///home/gaute/.mail/imap_account
907 >
908 > I edit ~/.sup/sources.yaml and enable:
909 > - confirm_enable_experimental: true
910 > - sync_back: true
911 > - maildir_creation_allowed: true
912 >
913 > and tweak the folder names if necessary.
914 >
915 > Then if your index is empty (you _cannot_ merge an existing maildir
916 > source by using the same source id) - I run sup-sync:
917 > $ sup-sync -v
918 >
919 > Note that sup-sync does not support the :updated flag (when a message
920 > has moved on disk), for that you have to run regular Sup and do a poll.
921 > sup-sync scans through and adds labels; you can also just start up sup
922 > and see what happens, but that takes a longer time: you probably do not
923 > need to enable the stuff in sources.yaml before after sup-sync if you
924 > are nervous (I would be!).
925 >
926 > Some annoying issues:
927 > - deleting a maildir is hard:
928 > * if you delete it remotely it will be recreated by offlineimap (i
929 > think)
930 > * you have to first remove all emails remotely, sync sup, to make sure
931 > labels are removed.
932 > * if you remove all messages from a label the maildir will be empty,
933 > to delete the maildir: sync, delete the maildir locally + delete it
934 > remotely; then re-sync.
935 >
936 > this is the behaviour of offlineimap, but I think it is hard to do
937 > it differently. this means that if you accidentally add a bogus
938 > label, it is a bit of a pain to get rid of the maildir.
939 >
940 >
941 > - if a message is deleted from the inbox remotely (archived) it is not
942 > removed from the inbox view (or any thread index view it is visible
943 > in) before sup is restarted.
944 >
945 > To test maildirroot:
946 > checkout my branch; make the gem: $ rake gem and install it: $ gem
947 > install pkg/sup-999.gem. If develop has changed you can try to merge it in
948 > first.
949 >
950 > Again; please make a backup copy of your .mail so that you can restore
951 > it if it turns out maildirroot has been eating or multiplying emails :)
952 >
953 > I probably don't have the time to difficult bugs, but I would be happy
954 > to accept patches and I could also put this branch on official Sup if it
955 > turns out to be worth something.
956 >
957 >
958 > Cheers, Gaute
959
960 From eg@gaute.vetsj.com Tue Nov 26 15:14:25 2013
961 From: eg@gaute.vetsj.com (Gaute Hope)
962 Date: Tue, 26 Nov 2013 16:14:25 +0100
963 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
964 (imap folders)
965 In-Reply-To: <1385476504-sup-9378@indy.local>
966 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
967 <1385476504-sup-9378@indy.local>
968 Message-ID: <1385478548-sup-9110@qwerzila>
969
970 Excerpts from Steven Schmeiser's message of 2013-11-26 15:43:49 +0100:
971 > I've installed the branch and am trying it out. So far it looks good, but there have been a few oddities...
972 >
973 > I'm running with a standard IMAP account (not Gmail). The root looks like
974 >
975 > [steve at indy ~]$ ls -l .mail
976 > total 0
977 > drwx------ 5 steve staff 170 Nov 19 13:44 Archive
978 > drwx------ 5 steve staff 170 Nov 22 12:31 INBOX
979 > drwx------ 5 steve staff 170 Nov 19 13:44 drafts
980 > drwx------ 5 steve staff 170 Nov 19 13:44 econpapers
981 > drwx------ 5 steve staff 170 Nov 19 13:44 sent
982 > drwx------ 5 steve staff 170 Nov 19 13:44 spam
983 > drwx------ 5 steve staff 170 Nov 25 19:25 trash
984 >
985 > and my sources are configured as follows
986 >
987 > [steve at indy ~]$ more .sup/sources.yaml
988 > ---
989 > - !supmua.org,2006-10-01/Redwood/MaildirRoot
990 > uri: maildirroot:///Users/steve/.mail
991 > usual: true
992 > archived: false
993 > id: 1
994 > labels: []
995 > sync_back: true
996 > confirm_enable_experimental: true
997 > maildir_creation_allowed: true
998 > inbox_folder: INBOX
999 > sent_folder: sent
1000 > drafts_folder: drafts
1001 > spam_folder: spam
1002 > trash_folder: trash
1003 > archive_folder: Archive
1004 > - !supmua.org,2006-10-01/Redwood/SentLoader{}
1005 >
1006 > I had around 40k messages in the Archive folder and ~20 in the INBOX. After sup-sync, around 10k of the messages in Archive were moved into sup's inbox with labels 'INBOX' and 'Inbox'. They were also (incorrectly) marked as unread.
1007 >
1008 > I'll keep experimenting. Thanks for your effort -- I think this is a great new feature and would really like to see it merged into the mainline someday.
1009
1010 Ok, there are likely to be a few more of the oddities - you are brave :)
1011
1012 Please set the environment variable: SUP_LOG_LEVEL=debug and try to
1013 start sup, it would be interesting to see how the maildirsubs are
1014 initialized (the startup section from ~/.sup/log).
1015
1016 Were any of the messages in Archive also somewhere else (duplicates with
1017 the same id)? Also, if sup discovers a message that is part of a thread
1018 it will join them and (possibly) apply all the labels to all the
1019 messages in that thread. If any of those are unread it might be
1020 affected.
1021
1022 The labels 'INBOX' and 'Inbox' are both not the same as the special
1023 label 'inbox', so apparently it is not recognized as the special label
1024 but a custom label.
1025
1026 It could be that you have more luck with starting with a clean index and
1027 just starting regular sup (not sup-sync). You can follow the log by
1028 doing: tail -f ~/.sup/log.
1029
1030 - gaute
1031
1032
1033 From steven@schmeiser.org Tue Nov 26 16:42:48 2013
1034 From: steven@schmeiser.org (Steven Schmeiser)
1035 Date: Tue, 26 Nov 2013 11:42:48 -0500
1036 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1037 (imap folders)
1038 In-Reply-To: <1385478548-sup-9110@qwerzila>
1039 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1040 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1041 Message-ID: <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1042
1043
1044
1045 On Nov 26, 2013, at 10:14, Gaute Hope <eg at gaute.vetsj.com> wrote:
1046
1047 > Excerpts from Steven Schmeiser's message of 2013-11-26 15:43:49 +0100:
1048 >> I've installed the branch and am trying it out. So far it looks good, but there have been a few oddities...
1049 >>
1050 >> I'm running with a standard IMAP account (not Gmail). The root looks like
1051 >>
1052 >> [steve at indy ~]$ ls -l .mail
1053 >> total 0
1054 >> drwx------ 5 steve staff 170 Nov 19 13:44 Archive
1055 >> drwx------ 5 steve staff 170 Nov 22 12:31 INBOX
1056 >> drwx------ 5 steve staff 170 Nov 19 13:44 drafts
1057 >> drwx------ 5 steve staff 170 Nov 19 13:44 econpapers
1058 >> drwx------ 5 steve staff 170 Nov 19 13:44 sent
1059 >> drwx------ 5 steve staff 170 Nov 19 13:44 spam
1060 >> drwx------ 5 steve staff 170 Nov 25 19:25 trash
1061 >>
1062 >> and my sources are configured as follows
1063 >>
1064 >> [steve at indy ~]$ more .sup/sources.yaml
1065 >> ---
1066 >> - !supmua.org,2006-10-01/Redwood/MaildirRoot
1067 >> uri: maildirroot:///Users/steve/.mail
1068 >> usual: true
1069 >> archived: false
1070 >> id: 1
1071 >> labels: []
1072 >> sync_back: true
1073 >> confirm_enable_experimental: true
1074 >> maildir_creation_allowed: true
1075 >> inbox_folder: INBOX
1076 >> sent_folder: sent
1077 >> drafts_folder: drafts
1078 >> spam_folder: spam
1079 >> trash_folder: trash
1080 >> archive_folder: Archive
1081 >> - !supmua.org,2006-10-01/Redwood/SentLoader{}
1082 >>
1083 >> I had around 40k messages in the Archive folder and ~20 in the INBOX. After sup-sync, around 10k of the messages in Archive were moved into sup's inbox with labels 'INBOX' and 'Inbox'. They were also (incorrectly) marked as unread.
1084 >>
1085 >> I'll keep experimenting. Thanks for your effort -- I think this is a great new feature and would really like to see it merged into the mainline someday.
1086 >
1087 > Ok, there are likely to be a few more of the oddities - you are brave :)
1088 >
1089 > Please set the environment variable: SUP_LOG_LEVEL=debug and try to
1090 > start sup, it would be interesting to see how the maildirsubs are
1091 > initialized (the startup section from ~/.sup/log).
1092 >
1093 > Were any of the messages in Archive also somewhere else (duplicates with
1094 > the same id)? Also, if sup discovers a message that is part of a thread
1095 > it will join them and (possibly) apply all the labels to all the
1096 > messages in that thread. If any of those are unread it might be
1097 > affected.
1098 >
1099 > The labels 'INBOX' and 'Inbox' are both not the same as the special
1100 > label 'inbox', so apparently it is not recognized as the special label
1101 > but a custom label.
1102 >
1103 > It could be that you have more luck with starting with a clean index and
1104 > just starting regular sup (not sup-sync). You can follow the log by
1105 > doing: tail -f ~/.sup/log.
1106 >
1107 > - gaute
1108
1109 Startup log follows...
1110
1111 [2013-11-26 11:34:20 -0500] using character set encoding "UTF-8"
1112 [2013-11-26 11:34:21 -0500] dynamically loading setlocale() from libc.dylib
1113 [2013-11-26 11:34:21 -0500] setting locale...
1114 [2013-11-26 11:34:21 -0500] locking /Users/steve/.sup/lock...
1115 [2013-11-26 11:34:21 -0500] maildirroot:///Users/steve/.mail: setting up maildirroot..
1116 [2013-11-26 11:34:21 -0500] setting up maildir subs..
1117 [2013-11-26 11:34:21 -0500] maildirsub set up, type: archive, label: archive
1118 [2013-11-26 11:34:21 -0500] maildirsub set up, type: inbox, label: inbox
1119 [2013-11-26 11:34:21 -0500] maildirsub set up, type: sent, label: sent
1120 [2013-11-26 11:34:21 -0500] maildirsub set up, type: draft, label: draft
1121 [2013-11-26 11:34:21 -0500] maildirsub set up, type: spam, label: spam
1122 [2013-11-26 11:34:21 -0500] maildirsub set up, type: deleted, label: deleted
1123 [2013-11-26 11:34:21 -0500] setting up generic folders..
1124 [2013-11-26 11:34:21 -0500] maildirsub set up, type: generic, label: econpapers
1125 [2013-11-26 11:34:21 -0500] no draft source, auto-adding...
1126 [2013-11-26 11:34:21 -0500] starting curses
1127 [2013-11-26 11:34:21 -0500] loading user colors from /Users/steve/.sup/colors.yaml
1128 [2013-11-26 11:34:21 -0500] initializing log buffer
1129 [2013-11-26 11:34:21 -0500] Welcome to Sup! Log level is set to debug.
1130 [2013-11-26 11:34:21 -0500] initializing inbox buffer
1131 [2013-11-26 11:34:21 -0500] ready for interaction!
1132
1133 I'm now not able to run sup-sync or open some of the threads in my inbox without crashing with the following error:
1134
1135 /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:180:in `block (2 levels) in <top (required)>': NotImplementedError (NotImplementedError)
1136 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/poll.rb:292:in `block (2 levels) in poll_from'
1137 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:298:in `block in each_message'
1138 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:285:in `block in each_id'
1139 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:285:in `each'
1140 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:285:in `each_id'
1141 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/index.rb:297:in `each_message'
1142 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:649:in `method_missing'
1143 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/poll.rb:251:in `block in poll_from'
1144 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/maildirroot.rb:512:in `block (2 levels) in poll'
1145 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/maildirroot.rb:511:in `each'
1146 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/maildirroot.rb:511:in `block in poll'
1147 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:261:in `call'
1148 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:261:in `block in benchmark'
1149 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/1.9.1/benchmark.rb:280:in `measure'
1150 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:261:in `benchmark'
1151 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/maildirroot.rb:474:in `poll'
1152 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/poll.rb:201:in `poll_from'
1153 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/lib/sup/util.rb:649:in `method_missing'
1154 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:125:in `block in <top (required)>'
1155 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:120:in `each'
1156 from /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:120:in `<top (required)>'
1157 from /usr/local/opt/ruby193/bin/sup-sync:23:in `load'
1158 from /usr/local/opt/ruby193/bin/sup-sync:23:in `<main>'
1159
1160 I'll try starting with a clean index.
1161
1162 Steve
1163
1164 From eg@gaute.vetsj.com Tue Nov 26 16:55:16 2013
1165 From: eg@gaute.vetsj.com (Gaute Hope)
1166 Date: Tue, 26 Nov 2013 17:55:16 +0100
1167 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1168 (imap folders)
1169 In-Reply-To: <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1170 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1171 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1172 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1173 Message-ID: <1385484573-sup-869@qwerzila>
1174
1175 Excerpts from Steven Schmeiser's message of 2013-11-26 17:42:48 +0100:
1176 >
1177 > On Nov 26, 2013, at 10:14, Gaute Hope <eg at gaute.vetsj.com> wrote:
1178 >
1179 > > Excerpts from Steven Schmeiser's message of 2013-11-26 15:43:49 +0100:
1180 > [2013-11-26 11:34:21 -0500] maildirsub set up, type: deleted, label: deleted
1181 > [2013-11-26 11:34:21 -0500] setting up generic folders..
1182 > [2013-11-26 11:34:21 -0500] maildirsub set up, type: generic, label: econpapers
1183 > [2013-11-26 11:34:21 -0500] no draft source, auto-adding...
1184 > [2013-11-26 11:34:21 -0500] starting curses
1185 > [2013-11-26 11:34:21 -0500] loading user colors from /Users/steve/.sup/colors.yaml
1186 > [2013-11-26 11:34:21 -0500] initializing log buffer
1187 > [2013-11-26 11:34:21 -0500] Welcome to Sup! Log level is set to debug.
1188 > [2013-11-26 11:34:21 -0500] initializing inbox buffer
1189 > [2013-11-26 11:34:21 -0500] ready for interaction!
1190
1191 Looks good: Only econpapers is identified as a generic label, the other
1192 folders are mapped to one of the specials.
1193
1194
1195 >
1196 > I'm now not able to run sup-sync or open some of the threads in my inbox without crashing with the following error:
1197 >
1198 > /usr/local/Cellar/ruby193/1.9.3-p448/lib/ruby/gems/1.9.1/gems/sup-999/bin/sup-sync:180:in `block (2 levels) in <top (required)>': NotImplementedError (NotImplementedError)
1199
1200 I haven't implemented :updated in sup-sync yet (see first, or possibly
1201 second email). To update: start Sup normally, let the Sup poll _finish_
1202 before you try to open the problematic message. This happens now and
1203 then, when you label a message (copy to a label dir) it gets a generic
1204 name, upon offlinimap sync it is renamed (by offlineimap) and untill a
1205 new poll has been run the source is out of sync. Since the poll has to
1206 finish to fix the error it is easy to trigger it again when if you start
1207 sup again.
1208
1209
1210 > I'll try starting with a clean index.
1211
1212 Always a good idea :)
1213
1214 - gaute
1215
1216
1217 From steven@schmeiser.org Wed Nov 27 00:48:20 2013
1218 From: steven@schmeiser.org (Steven Schmeiser)
1219 Date: Tue, 26 Nov 2013 19:48:20 -0500
1220 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1221 (imap folders)
1222 In-Reply-To: <1385484573-sup-869@qwerzila>
1223 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1224 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1225 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1226 <1385484573-sup-869@qwerzila>
1227 Message-ID: <1385513221-sup-4344@indy.local>
1228
1229
1230
1231 > Excerpts from Steven Schmeiser's message of 2013-11-26 17:42:48 +0100:
1232 > >
1233 > > On Nov 26, 2013, at 10:14, Gaute Hope <eg at gaute.vetsj.com> wrote:
1234 > >
1235 > > > Excerpts from Steven Schmeiser's message of 2013-11-26 15:43:49 +0100:
1236 > > [2013-11-26 11:34:21 -0500] maildirsub set up, type: deleted, label: deleted
1237 > > [2013-11-26 11:34:21 -0500] setting up generic folders..
1238 > > [2013-11-26 11:34:21 -0500] maildirsub set up, type: generic, label: econpapers
1239 > > [2013-11-26 11:34:21 -0500] no draft source, auto-adding...
1240 > > [2013-11-26 11:34:21 -0500] starting curses
1241 > > [2013-11-26 11:34:21 -0500] loading user colors from /Users/steve/.sup/colors.yaml
1242 > > [2013-11-26 11:34:21 -0500] initializing log buffer
1243 > > [2013-11-26 11:34:21 -0500] Welcome to Sup! Log level is set to debug.
1244 > > [2013-11-26 11:34:21 -0500] initializing inbox buffer
1245 > > [2013-11-26 11:34:21 -0500] ready for interaction!
1246 >
1247 > Looks good: Only econpapers is identified as a generic label, the other
1248 > folders are mapped to one of the specials.
1249
1250 It turned out to be a before-add-message hook that was causing all the problems. Working great now.
1251
1252 Steve
1253
1254 From eg@gaute.vetsj.com Wed Nov 27 06:21:41 2013
1255 From: eg@gaute.vetsj.com (Gaute Hope)
1256 Date: Wed, 27 Nov 2013 07:21:41 +0100
1257 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1258 (imap folders)
1259 In-Reply-To: <1385513221-sup-4344@indy.local>
1260 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1261 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1262 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1263 <1385484573-sup-869@qwerzila> <1385513221-sup-4344@indy.local>
1264 Message-ID: <1385533106-sup-5646@qwerzila>
1265
1266 Excerpts from Steven Schmeiser's message of 2013-11-27 01:48:20 +0100:
1267 >
1268 > > Excerpts from Steven Schmeiser's message of 2013-11-26 17:42:48 +0100:
1269 > > >
1270 > > > On Nov 26, 2013, at 10:14, Gaute Hope <eg at gaute.vetsj.com> wrote:
1271 > > >
1272 > > > > Excerpts from Steven Schmeiser's message of 2013-11-26 15:43:49 +0100:
1273 > > > [2013-11-26 11:34:21 -0500] maildirsub set up, type: deleted, label: deleted
1274 > > > [2013-11-26 11:34:21 -0500] setting up generic folders..
1275 > > > [2013-11-26 11:34:21 -0500] maildirsub set up, type: generic, label: econpapers
1276 > > > [2013-11-26 11:34:21 -0500] no draft source, auto-adding...
1277 > > > [2013-11-26 11:34:21 -0500] starting curses
1278 > > > [2013-11-26 11:34:21 -0500] loading user colors from /Users/steve/.sup/colors.yaml
1279 > > > [2013-11-26 11:34:21 -0500] initializing log buffer
1280 > > > [2013-11-26 11:34:21 -0500] Welcome to Sup! Log level is set to debug.
1281 > > > [2013-11-26 11:34:21 -0500] initializing inbox buffer
1282 > > > [2013-11-26 11:34:21 -0500] ready for interaction!
1283 > >
1284 > > Looks good: Only econpapers is identified as a generic label, the other
1285 > > folders are mapped to one of the specials.
1286 >
1287 > It turned out to be a before-add-message hook that was causing all the problems. Working great now.
1288
1289 Cool! Let me know how it works in the longer run!
1290
1291 I was thinking about changing one thing: currently messages are not
1292 copied into 'archive' before it has been _no_ other labels. On GMail you
1293 can still find it on the 'All mail' page on the web interface, but for
1294 regular IMAP accounts that doesn't work. Should the message always be
1295 copied to 'archive' when it is removed from the inbox?
1296
1297 - gaute
1298
1299
1300 From eg@gaute.vetsj.com Wed Nov 27 06:23:52 2013
1301 From: eg@gaute.vetsj.com (Gaute Hope)
1302 Date: Wed, 27 Nov 2013 07:23:52 +0100
1303 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1304 (imap folders)
1305 In-Reply-To: <1385484573-sup-869@qwerzila>
1306 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1307 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1308 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1309 <1385484573-sup-869@qwerzila>
1310 Message-ID: <1385533325-sup-4841@qwerzila>
1311
1312 Excerpts from Gaute Hope's message of 2013-11-26 17:55:16 +0100:
1313 > I haven't implemented :updated in sup-sync yet (see first, or possibly
1314 > second email). To update: start Sup normally, let the Sup poll _finish_
1315 > before you try to open the problematic message. This happens now and
1316 > then, when you label a message (copy to a label dir) it gets a generic
1317 > name, upon offlinimap sync it is renamed (by offlineimap) and untill a
1318 > new poll has been run the source is out of sync. Since the poll has to
1319 > finish to fix the error it is easy to trigger it again when if you start
1320 > sup again.
1321
1322 This, by the way, is also a problem in current Sup (maildir-syncback) -
1323 :updated is not handled in sup-sync. Only in lib/sup/poll.rb.
1324
1325 - gaute
1326 -------------- next part --------------
1327 A non-text attachment was scrubbed...
1328 Name: signature.asc
1329 Type: application/pgp-signature
1330 Size: 836 bytes
1331 Desc: not available
1332 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131127/a79b8e61/attachment.bin>
1333
1334 From steven@schmeiser.org Wed Nov 27 12:42:33 2013
1335 From: steven@schmeiser.org (Steven Schmeiser)
1336 Date: Wed, 27 Nov 2013 07:42:33 -0500
1337 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1338 (imap folders)
1339 In-Reply-To: <1385533106-sup-5646@qwerzila>
1340 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1341 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1342 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1343 <1385484573-sup-869@qwerzila> <1385513221-sup-4344@indy.local>
1344 <1385533106-sup-5646@qwerzila>
1345 Message-ID: <1385555365-sup-7389@indy.local>
1346
1347
1348 > Excerpts from Steven Schmeiser's message of 2013-11-27 01:48:20 +0100:
1349 > >
1350 > > > Excerpts from Steven Schmeiser's message of 2013-11-26 17:42:48 +0100:
1351 > > > >
1352 > > > > On Nov 26, 2013, at 10:14, Gaute Hope <eg at gaute.vetsj.com> wrote:
1353 > > > >
1354 > > > > > Excerpts from Steven Schmeiser's message of 2013-11-26 15:43:49 +0100:
1355 > > > > [2013-11-26 11:34:21 -0500] maildirsub set up, type: deleted, label: deleted
1356 > > > > [2013-11-26 11:34:21 -0500] setting up generic folders..
1357 > > > > [2013-11-26 11:34:21 -0500] maildirsub set up, type: generic, label: econpapers
1358 > > > > [2013-11-26 11:34:21 -0500] no draft source, auto-adding...
1359 > > > > [2013-11-26 11:34:21 -0500] starting curses
1360 > > > > [2013-11-26 11:34:21 -0500] loading user colors from /Users/steve/.sup/colors.yaml
1361 > > > > [2013-11-26 11:34:21 -0500] initializing log buffer
1362 > > > > [2013-11-26 11:34:21 -0500] Welcome to Sup! Log level is set to debug.
1363 > > > > [2013-11-26 11:34:21 -0500] initializing inbox buffer
1364 > > > > [2013-11-26 11:34:21 -0500] ready for interaction!
1365 > > >
1366 > > > Looks good: Only econpapers is identified as a generic label, the other
1367 > > > folders are mapped to one of the specials.
1368 > >
1369 > > It turned out to be a before-add-message hook that was causing all the problems. Working great now.
1370 >
1371 > Cool! Let me know how it works in the longer run!
1372 >
1373 > I was thinking about changing one thing: currently messages are not
1374 > copied into 'archive' before it has been _no_ other labels. On GMail you
1375 > can still find it on the 'All mail' page on the web interface, but for
1376 > regular IMAP accounts that doesn't work. Should the message always be
1377 > copied to 'archive' when it is removed from the inbox?
1378 >
1379 > - gaute
1380
1381 I don't have much personal preference between these two options. The second option is closer to Gmail's "All Mail" folder that a lot of people are familiar with, so maybe that is the way to go. Especially if the "copy" is a hard link that doesn't take up disk space.
1382
1383 Steve
1384
1385 From eg@gaute.vetsj.com Wed Nov 27 13:08:36 2013
1386 From: eg@gaute.vetsj.com (Gaute Hope)
1387 Date: Wed, 27 Nov 2013 14:08:36 +0100
1388 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1389 (imap folders)
1390 In-Reply-To: <1385555365-sup-7389@indy.local>
1391 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1392 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1393 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1394 <1385484573-sup-869@qwerzila> <1385513221-sup-4344@indy.local>
1395 <1385533106-sup-5646@qwerzila> <1385555365-sup-7389@indy.local>
1396 Message-ID: <1385557223-sup-3280@qwerzila>
1397
1398 Excerpts from Steven Schmeiser's message of 2013-11-27 13:42:33 +0100:
1399 > > I was thinking about changing one thing: currently messages are not
1400 > > copied into 'archive' before it has been _no_ other labels. On GMail
1401 > > you can still find it on the 'All mail' page on the web interface,
1402 > > but for regular IMAP accounts that doesn't work. Should the message
1403 > > always be copied to 'archive' when it is removed from the inbox?
1404 > >
1405 > > - gaute
1406 >
1407 > I don't have much personal preference between these two options. The
1408 > second option is closer to Gmail's "All Mail" folder that a lot of
1409 > people are familiar with, so maybe that is the way to go. Especially
1410 > if the "copy" is a hard link that doesn't take up disk space.
1411
1412 I noticed Gmail does it that way in their IMAP interface (archive on no
1413 other labels), thats why I did it. I guess it doesn't matter all that
1414 much as long as we are all using Sup. Archive becomes a place for the
1415 uncategorized. I don't delete an email from archive if it is already in
1416 there, so if it at some point has been copied in there - it stays.
1417
1418 Copy is hard-link, but I doubt offlineimap is able to identify remote
1419 identical emails. So hard-linking is only on the machine that the
1420 link happened on.
1421
1422 - gaute
1423
1424
1425 From eg@gaute.vetsj.com Wed Nov 27 13:24:15 2013
1426 From: eg@gaute.vetsj.com (Gaute Hope)
1427 Date: Wed, 27 Nov 2013 14:24:15 +0100
1428 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1429 (imap folders)
1430 In-Reply-To: <1385557223-sup-3280@qwerzila>
1431 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1432 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1433 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1434 <1385484573-sup-869@qwerzila> <1385513221-sup-4344@indy.local>
1435 <1385533106-sup-5646@qwerzila> <1385555365-sup-7389@indy.local>
1436 <1385557223-sup-3280@qwerzila>
1437 Message-ID: <1385558459-sup-8094@qwerzila>
1438
1439 Excerpts from Gaute Hope's message of 2013-11-27 14:08:36 +0100:
1440 > Excerpts from Steven Schmeiser's message of 2013-11-27 13:42:33 +0100:
1441 > > > I was thinking about changing one thing: currently messages are not
1442 > > > copied into 'archive' before it has been _no_ other labels. On GMail
1443 > > > you can still find it on the 'All mail' page on the web interface,
1444 > > > but for regular IMAP accounts that doesn't work. Should the message
1445 > > > always be copied to 'archive' when it is removed from the inbox?
1446 > > >
1447 > > > - gaute
1448 > >
1449 > > I don't have much personal preference between these two options. The
1450 > > second option is closer to Gmail's "All Mail" folder that a lot of
1451 > > people are familiar with, so maybe that is the way to go. Especially
1452 > > if the "copy" is a hard link that doesn't take up disk space.
1453 >
1454 > I noticed Gmail does it that way in their IMAP interface (archive on no
1455 > other labels), thats why I did it. I guess it doesn't matter all that
1456 > much as long as we are all using Sup. Archive becomes a place for the
1457 > uncategorized. I don't delete an email from archive if it is already in
1458 > there, so if it at some point has been copied in there - it stays.
1459 >
1460 > Copy is hard-link, but I doubt offlineimap is able to identify remote
1461 > identical emails. So hard-linking is only on the machine that the
1462 > link happened on.
1463
1464 Another nice feature is that I now have the possibility to have my
1465 filters on the server copy/move the message to a IMAP folder and it will be
1466 automatically tagged in Sup as well.
1467
1468 Some servers automatically delete stuff in Trash / Deleted Items or
1469 email marked as Trash (T), these will also be removed from Sup when they
1470 are deleted (might not work when it is in several folders and only
1471 marked with T).
1472
1473 - gaute
1474
1475
1476 From matthieu.rakotojaona@gmail.com Wed Nov 27 18:32:02 2013
1477 From: matthieu.rakotojaona@gmail.com (Matthieu Rakotojaona)
1478 Date: Wed, 27 Nov 2013 19:32:02 +0100
1479 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1480 (imap folders)
1481 In-Reply-To: <1385557223-sup-3280@qwerzila>
1482 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1483 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1484 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1485 <1385484573-sup-869@qwerzila> <1385513221-sup-4344@indy.local>
1486 <1385533106-sup-5646@qwerzila> <1385555365-sup-7389@indy.local>
1487 <1385557223-sup-3280@qwerzila>
1488 Message-ID: <1385576444-sup-3271@kpad>
1489
1490 Excerpts from Gaute Hope's message of 2013-11-27 14:08:36 +0100:
1491 > I noticed Gmail does it that way in their IMAP interface (archive on no
1492 > other labels), thats why I did it.
1493
1494 _Any_ email in gmail is also in the All Mail [0], except when it is
1495 manually moved to the [Gmail]/Trash folder, in which case it disappears
1496 forever (well, at least for you :). I think this is the best solution,
1497 because it is the most understandable for all MUAs out there: the fact
1498 that "a maildir is a label" is something pretty specific to
1499 gmail-pioneered MUAs, so at least when I backup the [Gmail]/All Mail I
1500 know I won't have lost any of them (even if I have lost the labels).
1501
1502 Regarding hardlinking, I'm afraid of the cross-platform issues. I know
1503 some people here use Mac OSX, is it safe to use hardlinking on this
1504 platform ?
1505
1506 (Oh and by the way I found a script [1] that basically hardlinks every
1507 copy of an email, this could be especially useful for gmail-based
1508 installations)
1509
1510
1511
1512 [0] https://support.google.com/mail/answer/78755?hl=en
1513 [1] http://jak-linux.org/projects/hardlink/
1514
1515 --
1516 Matthieu Rakotojaona
1517 -------------- next part --------------
1518 A non-text attachment was scrubbed...
1519 Name: signature.asc
1520 Type: application/pgp-signature
1521 Size: 836 bytes
1522 Desc: not available
1523 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131127/4d3b8523/attachment.bin>
1524
1525 From eg@gaute.vetsj.com Wed Nov 27 21:10:38 2013
1526 From: eg@gaute.vetsj.com (Gaute Hope)
1527 Date: Wed, 27 Nov 2013 22:10:38 +0100
1528 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1529 (imap folders)
1530 In-Reply-To: <1385576444-sup-3271@kpad>
1531 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1532 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1533 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1534 <1385484573-sup-869@qwerzila> <1385513221-sup-4344@indy.local>
1535 <1385533106-sup-5646@qwerzila> <1385555365-sup-7389@indy.local>
1536 <1385557223-sup-3280@qwerzila> <1385576444-sup-3271@kpad>
1537 Message-ID: <1385584974-sup-8936@qwerzila>
1538
1539 Excerpts from Matthieu Rakotojaona's message of 2013-11-27 19:32:02 +0100:
1540 > Excerpts from Gaute Hope's message of 2013-11-27 14:08:36 +0100:
1541 > > I noticed Gmail does it that way in their IMAP interface (archive on no
1542 > > other labels), thats why I did it.
1543 >
1544 > _Any_ email in gmail is also in the All Mail [0], except when it is
1545 > manually moved to the [Gmail]/Trash folder, in which case it disappears
1546 > forever (well, at least for you :). I think this is the best solution,
1547 > because it is the most understandable for all MUAs out there: the fact
1548 > that "a maildir is a label" is something pretty specific to
1549 > gmail-pioneered MUAs, so at least when I backup the [Gmail]/All Mail I
1550 > know I won't have lost any of them (even if I have lost the labels).
1551
1552 Hm ok. I just figured it out by trail-and-error, I probably missed
1553 something. I have changed sync_back to always make sure the message is
1554 present in the archive. This does not have any effect on existing
1555 messages before you do some edit that triggers sync_back. It also
1556 currently does not check new messages (since non-gmail sources will not
1557 have a copy in archive), we should do a check upon :add in
1558 poll.rb#do_poll to the source that checks if existing_sources has
1559 @archive, if not add and return to poll with updated locations (no
1560 sync_back needed and no index sync needed as poll will do that
1561 afterwards).
1562
1563 About deletion, current behavior:
1564 - apply :deleted label; this means:
1565 - the message is moved to the trash folder
1566 - the T flag is added to all the labels it is part of
1567
1568 this might not work exactly as it should on GMail, but it is the only
1569 way to preserve labels (in case of restore).
1570
1571 > Regarding hardlinking, I'm afraid of the cross-platform issues. I know
1572 > some people here use Mac OSX, is it safe to use hardlinking on this
1573 > platform ?
1574
1575 I am using the util function I created for maildir-sync (in develop)
1576 which falls back to copying the file if hardlinking fails, that function
1577 works on Mac OS X. Hardlinking doesn't work for me since I am using
1578 encfs to store mail.
1579
1580
1581 > (Oh and by the way I found a script [1] that basically hardlinks every
1582 > copy of an email, this could be especially useful for gmail-based
1583 > installations)
1584 >
1585 > [0] https://support.google.com/mail/answer/78755?hl=en
1586 > [1] http://jak-linux.org/projects/hardlink/
1587
1588 That could be very useful and run as a cronjob now and then.
1589
1590 - gaute
1591
1592 -------------- next part --------------
1593 A non-text attachment was scrubbed...
1594 Name: signature.asc
1595 Type: application/pgp-signature
1596 Size: 836 bytes
1597 Desc: not available
1598 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131127/1882a48f/attachment-0001.bin>
1599
1600 From eg@gaute.vetsj.com Fri Nov 29 09:22:44 2013
1601 From: eg@gaute.vetsj.com (Gaute Hope)
1602 Date: Fri, 29 Nov 2013 10:22:44 +0100
1603 Subject: [sup-devel] A maildir root source: syncing labels with maildirs
1604 (imap folders)
1605 In-Reply-To: <1385584974-sup-8936@qwerzila>
1606 References: <1385392376-sup-8491@qwerzila> <1385415206-sup-5054@qwerzila>
1607 <1385476504-sup-9378@indy.local> <1385478548-sup-9110@qwerzila>
1608 <2AC33855-6B00-42FB-9F3B-D160D8B556D4@schmeiser.org>
1609 <1385484573-sup-869@qwerzila> <1385513221-sup-4344@indy.local>
1610 <1385533106-sup-5646@qwerzila> <1385555365-sup-7389@indy.local>
1611 <1385557223-sup-3280@qwerzila> <1385576444-sup-3271@kpad>
1612 <1385584974-sup-8936@qwerzila>
1613 Message-ID: <1385716758-sup-298@qwerzila>
1614
1615 Excerpts from Gaute Hope's message of 2013-11-27 22:10:38 +0100:
1616 > Excerpts from Matthieu Rakotojaona's message of 2013-11-27 19:32:02 +0100:
1617 > > Excerpts from Gaute Hope's message of 2013-11-27 14:08:36 +0100:
1618 [..]
1619
1620 > It also
1621 > currently does not check new messages (since non-gmail sources will not
1622 > have a copy in archive), we should do a check upon :add in
1623 > poll.rb#do_poll to the source that checks if existing_sources has
1624 > @archive, if not add and return to poll with updated locations (no
1625 > sync_back needed and no index sync needed as poll will do that
1626 > afterwards).
1627
1628 As of commit db5e75f we check in poll if the message is in archive,
1629 otherwise add (archive is the first subdir to be polled so it should
1630 always be present).
1631
1632 Another issue is messages that get labels added automatically, these are
1633 not synced back before the message is opened or somehow otherwise
1634 activated. Could possibly do a full sync_back after :add, :delete or
1635 :update in poll.
1636
1637 - gaute
1638
1639 -------------- next part --------------
1640 A non-text attachment was scrubbed...
1641 Name: signature.asc
1642 Type: application/pgp-signature
1643 Size: 836 bytes
1644 Desc: not available
1645 URL: <http://rubyforge.org/pipermail/sup-devel/attachments/20131129/1f2b9584/attachment.bin>
1646