sup 1.1 → 1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/checks.yml +27 -39
  3. data/CONTRIBUTORS +3 -1
  4. data/History.txt +16 -3
  5. data/Manifest.txt +22 -0
  6. data/README.md +0 -1
  7. data/bin/sup-sync-back-maildir +1 -1
  8. data/contrib/nix/Gemfile +22 -0
  9. data/contrib/nix/Gemfile.lock +80 -0
  10. data/contrib/nix/README +7 -0
  11. data/contrib/nix/gem-install-shell.nix +12 -0
  12. data/contrib/nix/gemset.nix +339 -0
  13. data/contrib/nix/ruby2.4-Gemfile.lock +81 -0
  14. data/contrib/nix/ruby2.4-gemset.nix +309 -0
  15. data/contrib/nix/ruby2.4-shell.nix +30 -0
  16. data/contrib/nix/ruby2.5-Gemfile.lock +81 -0
  17. data/contrib/nix/ruby2.5-gemset.nix +309 -0
  18. data/contrib/nix/ruby2.5-shell.nix +30 -0
  19. data/contrib/nix/ruby2.6-Gemfile.lock +83 -0
  20. data/contrib/nix/ruby2.6-gemset.nix +319 -0
  21. data/contrib/nix/ruby2.6-shell.nix +30 -0
  22. data/contrib/nix/ruby2.7-shell.nix +23 -0
  23. data/contrib/nix/ruby3.0-shell.nix +23 -0
  24. data/contrib/nix/ruby3.1-shell.nix +23 -0
  25. data/contrib/nix/ruby3.2-shell.nix +23 -0
  26. data/contrib/nix/ruby3.3-shell.nix +23 -0
  27. data/contrib/nix/test-all-rubies.sh +6 -0
  28. data/doc/Hooks.txt +1 -1
  29. data/ext/mkrf_conf_xapian.rb +2 -2
  30. data/lib/sup/crypto.rb +1 -1
  31. data/lib/sup/index.rb +2 -2
  32. data/lib/sup/maildir.rb +1 -1
  33. data/lib/sup/mbox.rb +1 -1
  34. data/lib/sup/message.rb +2 -2
  35. data/lib/sup/modes/console_mode.rb +1 -1
  36. data/lib/sup/thread.rb +20 -20
  37. data/lib/sup/util.rb +3 -5
  38. data/lib/sup/version.rb +1 -1
  39. data/man/sup-add.1 +27 -27
  40. data/man/sup-config.1 +23 -19
  41. data/man/sup-dump.1 +28 -29
  42. data/man/sup-import-dump.1 +24 -20
  43. data/man/sup-psych-ify-config-files.1 +23 -19
  44. data/man/sup-recover-sources.1 +23 -19
  45. data/man/sup-sync-back-maildir.1 +23 -19
  46. data/man/sup-sync.1 +23 -19
  47. data/man/sup-tweak-labels.1 +23 -19
  48. data/man/sup.1 +23 -19
  49. data/shell.nix +1 -0
  50. data/test/integration/test_maildir.rb +3 -0
  51. data/test/integration/test_mbox.rb +3 -0
  52. data/test/integration/test_sup-sync-back-maildir.rb +40 -0
  53. data/test/test_header_parsing.rb +2 -2
  54. metadata +26 -3
data/man/sup-sync.1 CHANGED
@@ -1,15 +1,11 @@
1
- .\" Automatically generated by Pandoc 2.9.2.1
1
+ .\" Automatically generated by Pandoc 3.1.9
2
2
  .\"
3
3
  .TH "SUP-SYNC" "1" "April 9, 2012" "Sup User Manual" ""
4
- .hy
5
4
  .SH NAME
6
- .PP
7
5
  sup-sync - sychronize the Sup index with message sources
8
6
  .SH SYNOPSIS
9
- .PP
10
7
  sup-sync [\f[I]options\f[R]] source \&...
11
8
  .SH DESCRIPTION
12
- .PP
13
9
  Synchronizes the Sup index with one or more message sources by adding
14
10
  messages, deleting messages, or changing message state in the index as
15
11
  appropriate.
@@ -76,28 +72,31 @@ Show help message
76
72
  $HOME/.sup/sources.yaml
77
73
  Configuration file for Sup mail sources
78
74
  .SH SEE ALSO
79
- .PP
80
75
  sup(1), sup-add(1), sup-config(1), sup-dump(1),
81
76
  sup-sync-back-maildir(1), sup-tweak-labels(1)
82
77
  .SH REPORTING BUGS
83
- .PP
84
78
  You are welcome to submit bug reports to the Sup issue tracker, located
85
79
  at
86
80
  .PP
87
- <https://github.com/sup-heliotrope/sup/issues>
81
+ \c
82
+ .UR https://github.com/sup-heliotrope/sup/issues
83
+ .UE \c
88
84
  .SH CONTACT INFORMATION
89
85
  .TP
90
86
  The Sup web page:
91
- <https://sup-heliotrope.github.io/>
87
+ \c
88
+ .UR https://sup-heliotrope.github.io/
89
+ .UE \c
92
90
  .TP
93
91
  Code repository:
94
- <https://github.com/sup-heliotrope/sup/>
92
+ \c
93
+ .UR https://github.com/sup-heliotrope/sup/
94
+ .UE \c
95
95
  .TP
96
96
  Sup Wiki:
97
- <https://github.com/sup-heliotrope/sup/wiki/>
98
- .TP
99
- Sup IRC channel:
100
- #sup \[at] freenode.net
97
+ \c
98
+ .UR https://github.com/sup-heliotrope/sup/wiki/
99
+ .UE \c
101
100
  .TP
102
101
  Mailing list:
103
102
  supmua\[at]googlegroups.com
@@ -105,11 +104,14 @@ supmua\[at]googlegroups.com
105
104
  .PP
106
105
  supmua+subscribe\[at]googlegroups.com
107
106
  .PP
108
- Archives: <https://groups.google.com/d/forum/supmua/>
107
+ Archives: \c
108
+ .UR https://groups.google.com/d/forum/supmua/
109
+ .UE \c
109
110
  .RE
110
111
  .SH COPYRIGHT
111
- .PP
112
- Copyright \[co] 2006-2009 William Morgan <mworgan-sup@masanjin.net>
112
+ Copyright © 2006-2009 William Morgan \c
113
+ .MT mworgan-sup@masanjin.net
114
+ .ME \c
113
115
  .PP
114
116
  Copyright \[at] 2013-2014 Sup developers
115
117
  .PP
@@ -117,5 +119,7 @@ Permission is granted to copy and distribute this manual under the terms
117
119
  of the GNU General Public License; either version 2 or (at your option)
118
120
  any later version.
119
121
  .SH AUTHORS
120
- Sup was originally written by William Morgan <wmorgan-sup@masanjin.net>
121
- and is now developed and maintained by the Sup developers.
122
+ Sup was originally written by William Morgan \c
123
+ .MT wmorgan-sup@masanjin.net
124
+ .ME \c
125
+ \ and is now developed and maintained by the Sup developers.
@@ -1,15 +1,11 @@
1
- .\" Automatically generated by Pandoc 2.9.2.1
1
+ .\" Automatically generated by Pandoc 3.1.9
2
2
  .\"
3
3
  .TH "SUP-TWEAK-LABELS" "1" "April 9, 2012" "Sup User Manuel" ""
4
- .hy
5
4
  .SH NAME
6
- .PP
7
5
  sup-tweak-labels - batch modification of message state already in index
8
6
  .SH SYNOPSIS
9
- .PP
10
7
  sup-tweak-labels [\f[I]options\f[R]] source \&...
11
8
  .SH DESCRIPTION
12
- .PP
13
9
  Batch modification of message state for messages already in the index.
14
10
  .PP
15
11
  Supported source URI schemes can be seen by running \[lq]sup-add
@@ -47,27 +43,30 @@ Show version information
47
43
  -h, --help
48
44
  Show help message
49
45
  .SH SEE ALSO
50
- .PP
51
46
  sup(1), sup-add(1)
52
47
  .SH REPORTING BUGS
53
- .PP
54
48
  You are welcome to submit bug reports to the Sup issue tracker, located
55
49
  at
56
50
  .PP
57
- <https://github.com/sup-heliotrope/sup/issues>
51
+ \c
52
+ .UR https://github.com/sup-heliotrope/sup/issues
53
+ .UE \c
58
54
  .SH CONTACT INFORMATION
59
55
  .TP
60
56
  The Sup web page:
61
- <https://sup-heliotrope.github.io/>
57
+ \c
58
+ .UR https://sup-heliotrope.github.io/
59
+ .UE \c
62
60
  .TP
63
61
  Code repository:
64
- <https://github.com/sup-heliotrope/sup/>
62
+ \c
63
+ .UR https://github.com/sup-heliotrope/sup/
64
+ .UE \c
65
65
  .TP
66
66
  Sup Wiki:
67
- <https://github.com/sup-heliotrope/sup/wiki/>
68
- .TP
69
- Sup IRC channel:
70
- #sup \[at] freenode.net
67
+ \c
68
+ .UR https://github.com/sup-heliotrope/sup/wiki/
69
+ .UE \c
71
70
  .TP
72
71
  Mailing list:
73
72
  supmua\[at]googlegroups.com
@@ -75,11 +74,14 @@ supmua\[at]googlegroups.com
75
74
  .PP
76
75
  supmua+subscribe\[at]googlegroups.com
77
76
  .PP
78
- Archives: <https://groups.google.com/d/forum/supmua/>
77
+ Archives: \c
78
+ .UR https://groups.google.com/d/forum/supmua/
79
+ .UE \c
79
80
  .RE
80
81
  .SH COPYRIGHT
81
- .PP
82
- Copyright \[co] 2006-2009 William Morgan <mworgan-sup@masanjin.net>
82
+ Copyright © 2006-2009 William Morgan \c
83
+ .MT mworgan-sup@masanjin.net
84
+ .ME \c
83
85
  .PP
84
86
  Copyright \[at] 2013-2014 Sup developers
85
87
  .PP
@@ -87,5 +89,7 @@ Permission is granted to copy and distribute this manual under the terms
87
89
  of the GNU General Public License; either version 2 or (at your option)
88
90
  any later version.
89
91
  .SH AUTHORS
90
- Sup was originally written by William Morgan <wmorgan-sup@masanjin.net>
91
- and is now developed and maintained by the Sup developers.
92
+ Sup was originally written by William Morgan \c
93
+ .MT wmorgan-sup@masanjin.net
94
+ .ME \c
95
+ \ and is now developed and maintained by the Sup developers.
data/man/sup.1 CHANGED
@@ -1,15 +1,11 @@
1
- .\" Automatically generated by Pandoc 2.9.2.1
1
+ .\" Automatically generated by Pandoc 3.1.9
2
2
  .\"
3
3
  .TH "SUP" "1" "April 8, 2014" "Sup User Manual" ""
4
- .hy
5
4
  .SH NAME
6
- .PP
7
5
  sup - a curses-based email client
8
6
  .SH SYNOPSIS
9
- .PP
10
7
  sup [\f[I]options\f[R]]
11
8
  .SH DESCRIPTION
12
- .PP
13
9
  Sup is a console-based email client for people with a lot of email.
14
10
  .PP
15
11
  It presents an interface of a list of threads, which are each
@@ -72,29 +68,32 @@ Configuration file for Sup mail sources
72
68
  $HOME/.sup/colors.yaml
73
69
  Color theme for Sup
74
70
  .SH SEE ALSO
75
- .PP
76
71
  mail(1), sup-add(1), sup-config(1), sup-dump(1), sup-import-dump(1),
77
72
  sup-recover-sources(1), sup-sync(1), sup-sync-back-maildir(1),
78
73
  sup-tweak-labels(1)
79
74
  .SH REPORTING BUGS
80
- .PP
81
75
  You are welcome to submit bug reports to the Sup issue tracker, located
82
76
  at
83
77
  .PP
84
- <https://github.com/sup-heliotrope/sup/issues>
78
+ \c
79
+ .UR https://github.com/sup-heliotrope/sup/issues
80
+ .UE \c
85
81
  .SH CONTACT INFORMATION
86
82
  .TP
87
83
  The Sup web page:
88
- <https://sup-heliotrope.github.io/>
84
+ \c
85
+ .UR https://sup-heliotrope.github.io/
86
+ .UE \c
89
87
  .TP
90
88
  Code repository:
91
- <https://github.com/sup-heliotrope/sup/>
89
+ \c
90
+ .UR https://github.com/sup-heliotrope/sup/
91
+ .UE \c
92
92
  .TP
93
93
  Sup Wiki:
94
- <https://github.com/sup-heliotrope/sup/wiki/>
95
- .TP
96
- Sup IRC channel:
97
- #sup \[at] freenode.net
94
+ \c
95
+ .UR https://github.com/sup-heliotrope/sup/wiki/
96
+ .UE \c
98
97
  .TP
99
98
  Mailing list:
100
99
  supmua\[at]googlegroups.com
@@ -102,11 +101,14 @@ supmua\[at]googlegroups.com
102
101
  .PP
103
102
  supmua+subscribe\[at]googlegroups.com
104
103
  .PP
105
- Archives: <https://groups.google.com/d/forum/supmua/>
104
+ Archives: \c
105
+ .UR https://groups.google.com/d/forum/supmua/
106
+ .UE \c
106
107
  .RE
107
108
  .SH COPYRIGHT
108
- .PP
109
- Copyright \[co] 2006-2009 William Morgan <mworgan-sup@masanjin.net>
109
+ Copyright © 2006-2009 William Morgan \c
110
+ .MT mworgan-sup@masanjin.net
111
+ .ME \c
110
112
  .PP
111
113
  Copyright \[at] 2013-2014 Sup developers
112
114
  .PP
@@ -114,5 +116,7 @@ Permission is granted to copy and distribute this manual under the terms
114
116
  of the GNU General Public License; either version 2 or (at your option)
115
117
  any later version.
116
118
  .SH AUTHORS
117
- Sup was originally written by William Morgan <wmorgan-sup@masanjin.net>
118
- and is now developed and maintained by the Sup developers.
119
+ Sup was originally written by William Morgan \c
120
+ .MT wmorgan-sup@masanjin.net
121
+ .ME \c
122
+ \ and is now developed and maintained by the Sup developers.
data/shell.nix ADDED
@@ -0,0 +1 @@
1
+ contrib/nix/ruby3.3-shell.nix
@@ -1,7 +1,10 @@
1
+ require "sup"
1
2
  require "test_helper"
2
3
 
3
4
  class TestMaildir < Minitest::Test
4
5
 
6
+ include Redwood
7
+
5
8
  def setup
6
9
  @path = Dir.mktmpdir
7
10
 
@@ -1,7 +1,10 @@
1
+ require "sup"
1
2
  require "test_helper"
2
3
 
3
4
  class TestMbox < Minitest::Test
4
5
 
6
+ include Redwood
7
+
5
8
  def setup
6
9
  @path = Dir.mktmpdir
7
10
 
@@ -0,0 +1,40 @@
1
+ require "test_helper"
2
+
3
+ class TestSupSyncBackMaildir < Minitest::Test
4
+
5
+ def setup
6
+ @path = Dir.mktmpdir
7
+
8
+ @maildir = File.join @path, "test_maildir"
9
+ Dir.mkdir @maildir
10
+ %w[cur new tmp].each do |subdir|
11
+ Dir.mkdir (File.join @maildir, subdir)
12
+ end
13
+ msg_path = File.join @maildir, "new", "123.hostname"
14
+ FileUtils.copy_file fixture_path("simple-message.eml"), msg_path
15
+
16
+ _out, _err = capture_subprocess_io do
17
+ assert system({"SUP_BASE" => @path}, "bin/sup-add", "maildir://#{@maildir}")
18
+ assert system({"SUP_BASE" => @path}, "bin/sup-sync")
19
+ end
20
+ end
21
+
22
+ def teardown
23
+ FileUtils.rm_r @path
24
+ end
25
+
26
+ def test_it_syncs_seen_unread_flags
27
+ _out, _err = capture_subprocess_io do
28
+ assert system({"SUP_BASE" => @path},
29
+ "bin/sup-tweak-labels",
30
+ "--all-sources",
31
+ "--add=replied",
32
+ "--remove=unread")
33
+ assert system({"SUP_BASE" => @path}, "bin/sup-sync-back-maildir", "--no-confirm")
34
+ end
35
+
36
+ refute File.exist? (File.join @maildir, "new", "123.hostname")
37
+ assert File.exist? (File.join @maildir, "cur", "123.hostname:2,RS")
38
+ end
39
+
40
+ end
@@ -4,10 +4,10 @@ require 'test_helper'
4
4
  require 'sup'
5
5
  require 'stringio'
6
6
 
7
- include Redwood
8
-
9
7
  class TestMBoxParsing < Minitest::Test
10
8
 
9
+ include Redwood
10
+
11
11
  def setup
12
12
  @path = Dir.mktmpdir
13
13
  @mbox = File.join(@path, 'test_mbox')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sup
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.1'
4
+ version: '1.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Morgan
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-05-23 00:00:00.000000000 Z
14
+ date: 2024-04-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: ncursesw
@@ -322,6 +322,26 @@ files:
322
322
  - contrib/colorpicker.rb
323
323
  - contrib/completion/_sup.bash
324
324
  - contrib/completion/_sup.zsh
325
+ - contrib/nix/Gemfile
326
+ - contrib/nix/Gemfile.lock
327
+ - contrib/nix/README
328
+ - contrib/nix/gem-install-shell.nix
329
+ - contrib/nix/gemset.nix
330
+ - contrib/nix/ruby2.4-Gemfile.lock
331
+ - contrib/nix/ruby2.4-gemset.nix
332
+ - contrib/nix/ruby2.4-shell.nix
333
+ - contrib/nix/ruby2.5-Gemfile.lock
334
+ - contrib/nix/ruby2.5-gemset.nix
335
+ - contrib/nix/ruby2.5-shell.nix
336
+ - contrib/nix/ruby2.6-Gemfile.lock
337
+ - contrib/nix/ruby2.6-gemset.nix
338
+ - contrib/nix/ruby2.6-shell.nix
339
+ - contrib/nix/ruby2.7-shell.nix
340
+ - contrib/nix/ruby3.0-shell.nix
341
+ - contrib/nix/ruby3.1-shell.nix
342
+ - contrib/nix/ruby3.2-shell.nix
343
+ - contrib/nix/ruby3.3-shell.nix
344
+ - contrib/nix/test-all-rubies.sh
325
345
  - devel/console.sh
326
346
  - devel/count-loc.sh
327
347
  - devel/load-index.rb
@@ -408,6 +428,7 @@ files:
408
428
  - man/sup-sync.1
409
429
  - man/sup-tweak-labels.1
410
430
  - man/sup.1
431
+ - shell.nix
411
432
  - sup.gemspec
412
433
  - test/dummy_source.rb
413
434
  - test/fixtures/bad-content-transfer-encoding-1.eml
@@ -441,6 +462,7 @@ files:
441
462
  - test/integration/test_maildir.rb
442
463
  - test/integration/test_mbox.rb
443
464
  - test/integration/test_sup-add.rb
465
+ - test/integration/test_sup-sync-back-maildir.rb
444
466
  - test/test_crypto.rb
445
467
  - test/test_header_parsing.rb
446
468
  - test/test_helper.rb
@@ -482,7 +504,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
482
504
  - !ruby/object:Gem::Version
483
505
  version: '0'
484
506
  requirements: []
485
- rubygems_version: 3.2.22
507
+ rubygems_version: 3.4.22
486
508
  signing_key:
487
509
  specification_version: 4
488
510
  summary: A console-based email client with the best features of GMail, mutt and Emacs
@@ -519,6 +541,7 @@ test_files:
519
541
  - test/integration/test_maildir.rb
520
542
  - test/integration/test_mbox.rb
521
543
  - test/integration/test_sup-add.rb
544
+ - test/integration/test_sup-sync-back-maildir.rb
522
545
  - test/test_crypto.rb
523
546
  - test/test_header_parsing.rb
524
547
  - test/test_helper.rb