sup 1.2 → 1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/checks.yml +16 -2
  3. data/.gitmodules +1 -0
  4. data/History.txt +16 -0
  5. data/Manifest.txt +12 -1
  6. data/contrib/nix/Gemfile +2 -0
  7. data/contrib/nix/Gemfile.lock +37 -16
  8. data/contrib/nix/gem-install-shell.nix +2 -0
  9. data/contrib/nix/gemset.nix +83 -31
  10. data/contrib/nix/ruby2.4-Gemfile.lock +5 -1
  11. data/contrib/nix/ruby2.4-gemset.nix +22 -2
  12. data/contrib/nix/ruby2.4-shell.nix +2 -6
  13. data/contrib/nix/ruby2.5-Gemfile.lock +5 -1
  14. data/contrib/nix/ruby2.5-gemset.nix +22 -2
  15. data/contrib/nix/ruby2.5-shell.nix +2 -6
  16. data/contrib/nix/ruby2.6-Gemfile.lock +5 -1
  17. data/contrib/nix/ruby2.6-gemset.nix +22 -2
  18. data/contrib/nix/ruby2.6-shell.nix +2 -6
  19. data/contrib/nix/ruby2.7-Gemfile.lock +91 -0
  20. data/contrib/nix/ruby2.7-gemset.nix +359 -0
  21. data/contrib/nix/ruby2.7-shell.nix +2 -11
  22. data/contrib/nix/ruby3.0-Gemfile.lock +91 -0
  23. data/contrib/nix/ruby3.0-gemset.nix +359 -0
  24. data/contrib/nix/ruby3.0-shell.nix +2 -11
  25. data/contrib/nix/ruby3.1-shell.nix +9 -7
  26. data/contrib/nix/ruby3.2-shell.nix +9 -7
  27. data/contrib/nix/ruby3.3-shell.nix +9 -7
  28. data/contrib/nix/ruby3.4-shell.nix +36 -0
  29. data/contrib/nix/test-all-rubies.sh +1 -1
  30. data/lib/sup/crypto.rb +7 -5
  31. data/lib/sup/maildir.rb +4 -0
  32. data/lib/sup/mbox.rb +25 -7
  33. data/lib/sup/message.rb +13 -10
  34. data/lib/sup/modes/edit_message_mode.rb +5 -5
  35. data/lib/sup/util.rb +9 -2
  36. data/lib/sup/version.rb +1 -1
  37. data/man/sup-add.1 +15 -15
  38. data/man/sup-config.1 +9 -9
  39. data/man/sup-dump.1 +13 -12
  40. data/man/sup-import-dump.1 +20 -20
  41. data/man/sup-psych-ify-config-files.1 +11 -11
  42. data/man/sup-recover-sources.1 +18 -18
  43. data/man/sup-sync-back-maildir.1 +18 -17
  44. data/man/sup-sync.1 +29 -29
  45. data/man/sup-tweak-labels.1 +22 -21
  46. data/man/sup.1 +21 -21
  47. data/sup.gemspec +2 -0
  48. data/test/dummy_source.rb +6 -0
  49. data/test/fixtures/embedded-message-rfc6532.eml +33 -0
  50. data/test/fixtures/invalid-date.eml +8 -0
  51. data/test/gnupg_test_home/private-keys-v1.d/26C05E44706A8E230B3255BB9532B34DC9420232.key +42 -0
  52. data/test/gnupg_test_home/private-keys-v1.d/D187ADC90EC4DEB7047678EAA37E33A53A465D47.key +5 -0
  53. data/test/gnupg_test_home/private-keys-v1.d/FB2D9BD3B1BE90B5BCF697781F8404224B0FCF5B.key +5 -0
  54. data/test/gnupg_test_home/pubring.gpg +0 -0
  55. data/test/gnupg_test_home/receiver_pubring.gpg +0 -0
  56. data/test/gnupg_test_home/receiver_secring.gpg +0 -0
  57. data/test/gnupg_test_home/regen_keys.sh +11 -2
  58. data/test/gnupg_test_home/secring.gpg +0 -0
  59. data/test/gnupg_test_home/sup-test-2@foo.bar.asc +20 -20
  60. data/test/integration/test_maildir.rb +15 -1
  61. data/test/integration/test_mbox.rb +10 -0
  62. data/test/test_crypto.rb +108 -71
  63. data/test/test_message.rb +42 -0
  64. data/test/unit/test_contact.rb +1 -1
  65. data/test/unit/test_edit_message_mode.rb +94 -0
  66. data/test/unit/test_person.rb +3 -3
  67. data/test/unit/test_rmail_message.rb +36 -0
  68. data/test/unit/util/test_string.rb +3 -3
  69. metadata +50 -5
  70. data/test/gnupg_test_home/private-keys-v1.d/306D2EE90FF0014B5B9FD07E265C751791674140.key +0 -0
@@ -563,7 +563,7 @@ protected
563
563
  ## there are attachments, so wrap body in an attachment of its own
564
564
  unless @attachments.empty?
565
565
  body_m = m
566
- body_m.header["Content-Disposition"] = "inline"
566
+ body_m.header["Content-Disposition"] = +"inline"
567
567
  m = RMail::Message.new
568
568
 
569
569
  m.add_part body_m
@@ -601,8 +601,8 @@ protected
601
601
  m.header["Date"] = date.rfc2822
602
602
  m.header["Message-Id"] = @message_id
603
603
  m.header["User-Agent"] = "Sup/#{Redwood::VERSION}"
604
- m.header["Content-Transfer-Encoding"] ||= '8bit'
605
- m.header["MIME-Version"] = "1.0" if m.multipart?
604
+ m.header["Content-Transfer-Encoding"] ||= +"8bit"
605
+ m.header["MIME-Version"] = +"1.0" if m.multipart?
606
606
  m
607
607
  end
608
608
 
@@ -716,10 +716,10 @@ private
716
716
  ## encode to quoted-printable for all text/* MIME types,
717
717
  ## use base64 otherwise
718
718
  if msg_part.header["Content-Type"] =~ /text\/.*/
719
- msg_part.header["Content-Transfer-Encoding"] = 'quoted-printable'
719
+ msg_part.header.set "Content-Transfer-Encoding", +"quoted-printable"
720
720
  msg_part.body = [msg_part.body].pack('M')
721
721
  else
722
- msg_part.header["Content-Transfer-Encoding"] = 'base64'
722
+ msg_part.header.set "Content-Transfer-Encoding", +"base64"
723
723
  msg_part.body = [msg_part.body].pack('m')
724
724
  end
725
725
  msg_part
data/lib/sup/util.rb CHANGED
@@ -80,7 +80,14 @@ module RMail
80
80
  def self.make_file_attachment fn
81
81
  bfn = File.basename fn
82
82
  t = MIME::Types.type_for(bfn).first || MIME::Types.type_for("exe").first
83
- make_attachment IO.read(fn), t.content_type, t.encoding, bfn.to_s
83
+ payload = IO.read fn
84
+ ## Need to encode as base64 or quoted-printable if any lines are longer than 998 chars.
85
+ encoding = if t.encoding != t.default_encoding and payload.each_line.any? { |l| l.length > 998 }
86
+ t.default_encoding
87
+ else
88
+ t.encoding
89
+ end
90
+ make_attachment payload, t.content_type, encoding, bfn.to_s
84
91
  end
85
92
 
86
93
  def charset
@@ -206,7 +213,7 @@ class String
206
213
  end
207
214
 
208
215
  def slice_by_display_length len
209
- each_char.each_with_object "" do |c, buffer|
216
+ each_char.each_with_object (+"") do |c, buffer|
210
217
  len -= Unicode::DisplayWidth.of(c)
211
218
  return buffer if len < 0
212
219
  buffer << c
data/lib/sup/version.rb CHANGED
@@ -8,5 +8,5 @@ def git_suffix
8
8
  end
9
9
 
10
10
  module Redwood
11
- VERSION = "1.2"
11
+ VERSION = "1.3"
12
12
  end
data/man/sup-add.1 CHANGED
@@ -1,10 +1,10 @@
1
- .\" Automatically generated by Pandoc 3.1.9
1
+ .\" Automatically generated by Pandoc 3.1.11.1
2
2
  .\"
3
- .TH "SUP-ADD" "1" "April 9, 2012" "Sup User Manual" ""
3
+ .TH "SUP\-ADD" "1" "April 9, 2012" "Sup User Manual" ""
4
4
  .SH NAME
5
- sup-add - add a source to the Sup source list
5
+ sup\-add \- add a source to the Sup source list
6
6
  .SH SYNOPSIS
7
- sup-add [\f[I]options\f[R]] [\f[I]source uri\&...\f[R]]
7
+ sup\-add [\f[I]options\f[R]] [\f[I]source uri\&...\f[R]]
8
8
  .SH DESCRIPTION
9
9
  Add one ore more sources to the Sup source list
10
10
  .PP
@@ -25,33 +25,33 @@ maildir://<path to Maildir directory>
25
25
  .EE
26
26
  .SH OPTIONS
27
27
  .TP
28
- -a, --archive
28
+ \-a, \-\-archive
29
29
  Automatically archive all new messages from thesesources.
30
30
  .TP
31
- -u, --unusual
31
+ \-u, \-\-unusual
32
32
  Do not automatically poll these sources for new messages.
33
33
  .TP
34
- -l \f[I]STRING\f[R], --labels \f[I]STRING\f[R]
35
- A comma-separated set of labels to apply to all messages from this
34
+ \-l \f[I]STRING\f[R], \-\-labels \f[I]STRING\f[R]
35
+ A comma\-separated set of labels to apply to all messages from this
36
36
  source
37
37
  .TP
38
- -f, --force-new
38
+ \-f, \-\-force\-new
39
39
  Create a new account for this source, even if one already exists
40
40
  .TP
41
- -o \f[I]STRING\f[R], --force-account \f[I]STRING\f[R]
41
+ \-o \f[I]STRING\f[R], \-\-force\-account \f[I]STRING\f[R]
42
42
  Reuse previously defined account user\[at]hostname
43
43
  .TP
44
- -v, --version
44
+ \-v, \-\-version
45
45
  Print version and exit
46
46
  .TP
47
- -h, --help
47
+ \-h, \-\-help
48
48
  Show help message
49
49
  .SH FILES
50
50
  .TP
51
51
  $HOME/.sup/sources.yaml
52
52
  Configuration file for Sup mail sources
53
53
  .SH SEE ALSO
54
- sup(1), sup-config(1)
54
+ sup(1), sup\-config(1)
55
55
  .SH REPORTING BUGS
56
56
  You are welcome to submit bug reports to the Sup issue tracker, located
57
57
  at
@@ -87,11 +87,11 @@ Archives: \c
87
87
  .UE \c
88
88
  .RE
89
89
  .SH COPYRIGHT
90
- Copyright © 2006-2009 William Morgan \c
90
+ Copyright © 2006\-2009 William Morgan \c
91
91
  .MT mworgan-sup@masanjin.net
92
92
  .ME \c
93
93
  .PP
94
- Copyright \[at] 2013-2014 Sup developers
94
+ Copyright \[at] 2013\-2014 Sup developers
95
95
  .PP
96
96
  Permission is granted to copy and distribute this manual under the terms
97
97
  of the GNU General Public License; either version 2 or (at your option)
data/man/sup-config.1 CHANGED
@@ -1,19 +1,19 @@
1
- .\" Automatically generated by Pandoc 3.1.9
1
+ .\" Automatically generated by Pandoc 3.1.11.1
2
2
  .\"
3
- .TH "SUP-CONFIG" "1" "April 9, 2012" "Sup User Manual" ""
3
+ .TH "SUP\-CONFIG" "1" "April 9, 2012" "Sup User Manual" ""
4
4
  .SH NAME
5
- sup-config - interactive configuration tool for Sup
5
+ sup\-config \- interactive configuration tool for Sup
6
6
  .SH SYNOPSIS
7
- sup-config [\f[I]options\f[R]]
7
+ sup\-config [\f[I]options\f[R]]
8
8
  .SH DESCRIPTION
9
9
  Interactive configuration tool for Sup.
10
10
  Won\[cq]t destroy existing configuration.
11
11
  .SH OPTIONS
12
12
  .TP
13
- -v, --version
13
+ \-v, \-\-version
14
14
  Print versian and exit
15
15
  .TP
16
- -h, --help
16
+ \-h, \-\-help
17
17
  Show help message
18
18
  .SH FILES
19
19
  .TP
@@ -23,7 +23,7 @@ Configuration file for Sup
23
23
  $HOME/.sup/sources.yaml
24
24
  Configuration file for Sup mail sources
25
25
  .SH SEE ALSO
26
- sup(1), sup-add(1)
26
+ sup(1), sup\-add(1)
27
27
  .SH REPORTING BUGS
28
28
  You are welcome to submit bug reports to the Sup issue tracker, located
29
29
  at
@@ -59,11 +59,11 @@ Archives: \c
59
59
  .UE \c
60
60
  .RE
61
61
  .SH COPYRIGHT
62
- Copyright © 2006-2009 William Morgan \c
62
+ Copyright © 2006\-2009 William Morgan \c
63
63
  .MT mworgan-sup@masanjin.net
64
64
  .ME \c
65
65
  .PP
66
- Copyright \[at] 2013-2014 Sup developers
66
+ Copyright \[at] 2013\-2014 Sup developers
67
67
  .PP
68
68
  Permission is granted to copy and distribute this manual under the terms
69
69
  of the GNU General Public License; either version 2 or (at your option)
data/man/sup-dump.1 CHANGED
@@ -1,37 +1,38 @@
1
- .\" Automatically generated by Pandoc 3.1.9
1
+ .\" Automatically generated by Pandoc 3.1.11.1
2
2
  .\"
3
- .TH "SUP-DUMP" "1" "April 9, 2012" "Sup User Manual" ""
3
+ .TH "SUP\-DUMP" "1" "April 9, 2012" "Sup User Manual" ""
4
4
  .SH NAME
5
- sup-dump - dumps message state from Sup index
5
+ sup\-dump \- dumps message state from Sup index
6
6
  .SH SYNOPSIS
7
- sup-dump [\f[I]options\f[R]]
7
+ sup\-dump [\f[I]options\f[R]]
8
8
  .SH DESCRIPTION
9
9
  Dumps all message state from the Sup index to standard out.
10
- You can later use sup-sync --restored --restore to recover the index.
10
+ You can later use sup\-sync \-\-restored \-\-restore to recover the
11
+ index.
11
12
  .PP
12
13
  This tool is primarily useful in the event that a Sup upgrade breaks
13
14
  index format compatibility.
14
15
  .SH OPTIONS
15
16
  .TP
16
- -v, --version
17
+ \-v, \-\-version
17
18
  Print version and exit
18
19
  .TP
19
- -h, --help
20
+ \-h, \-\-help
20
21
  Show help message
21
22
  .SH EXAMPLES
22
23
  Dump message state and store in file
23
24
  .IP
24
25
  .EX
25
- sup-dump > filename
26
+ sup\-dump > filename
26
27
  .EE
27
28
  .PP
28
29
  Dump message state and compress output to store in file
29
30
  .IP
30
31
  .EX
31
- sup-dump | bzip2 > filename.bz2
32
+ sup\-dump | bzip2 > filename.bz2
32
33
  .EE
33
34
  .SH SEE ALSO
34
- sup(1), sup-sync(1), sup-import-dump(1)
35
+ sup(1), sup\-sync(1), sup\-import\-dump(1)
35
36
  .SH REPORTING BUGS
36
37
  You are welcome to submit bug reports to the Sup issue tracker, located
37
38
  at
@@ -67,11 +68,11 @@ Archives: \c
67
68
  .UE \c
68
69
  .RE
69
70
  .SH COPYRIGHT
70
- Copyright © 2006-2009 William Morgan \c
71
+ Copyright © 2006\-2009 William Morgan \c
71
72
  .MT mworgan-sup@masanjin.net
72
73
  .ME \c
73
74
  .PP
74
- Copyright \[at] 2013-2014 Sup developers
75
+ Copyright \[at] 2013\-2014 Sup developers
75
76
  .PP
76
77
  Permission is granted to copy and distribute this manual under the terms
77
78
  of the GNU General Public License; either version 2 or (at your option)
@@ -1,45 +1,45 @@
1
- .\" Automatically generated by Pandoc 3.1.9
1
+ .\" Automatically generated by Pandoc 3.1.11.1
2
2
  .\"
3
- .TH "SUP-IMPORT-DUMP" "1" "April 9, 2012" "Sup User Manual" ""
3
+ .TH "SUP\-IMPORT\-DUMP" "1" "April 9, 2012" "Sup User Manual" ""
4
4
  .SH NAME
5
- sup-import-dump - import message state dump to Sup index
5
+ sup\-import\-dump \- import message state dump to Sup index
6
6
  .SH SYNOPSIS
7
- sup-import-dump [\f[I]options\f[R]] dumpfile
7
+ sup\-import\-dump [\f[I]options\f[R]] dumpfile
8
8
  .SH DESCRIPTION
9
- Imports message state previously exported by sup-dump into the index.
10
- sup-import-dump operates on the index only, so the messages must have
11
- already been added using sup-sync.
12
- If you need to recreate the index, see sup-sync --restore instead.
9
+ Imports message state previously exported by sup\-dump into the index.
10
+ sup\-import\-dump operates on the index only, so the messages must have
11
+ already been added using sup\-sync.
12
+ If you need to recreate the index, see sup\-sync \-\-restore instead.
13
13
  .PP
14
14
  Messages not mentioned in the dump file will not be modified.
15
15
  .SH OPTIONS
16
16
  .TP
17
- -v, --verbose
17
+ \-v, \-\-verbose
18
18
  Print message ids as they\[cq]re processed
19
19
  .TP
20
- -i, --ignore-missing
20
+ \-i, \-\-ignore\-missing
21
21
  Silently skip over messages that are not in the index
22
22
  .TP
23
- -w, --warn-missing
23
+ \-w, \-\-warn\-missing
24
24
  Warn about messages that are not in the index, but continue
25
25
  .TP
26
- -a, --abort-missing
26
+ \-a, \-\-abort\-missing
27
27
  Abort on encountering messages that are not in the index (default)
28
28
  .TP
29
- -t, --atomic
29
+ \-t, \-\-atomic
30
30
  Use transaction to apply all changes atomically
31
31
  .TP
32
- -n, --dry-run
32
+ \-n, \-\-dry\-run
33
33
  Don\[cq]t actually modify the index.
34
- Probably only useful with --verbose
34
+ Probably only useful with \-\-verbose
35
35
  .TP
36
- --version
36
+ \-\-version
37
37
  Show version information
38
38
  .TP
39
- -h, --help
39
+ \-h, \-\-help
40
40
  Show help message
41
41
  .SH SEE ALSO
42
- sup(1), sup-sync(1), sup-dump(1)
42
+ sup(1), sup\-sync(1), sup\-dump(1)
43
43
  .SH REPORTING BUGS
44
44
  You are welcome to submit bug reports to the Sup issue tracker, located
45
45
  at
@@ -75,11 +75,11 @@ Archives: \c
75
75
  .UE \c
76
76
  .RE
77
77
  .SH COPYRIGHT
78
- Copyright © 2006-2009 William Morgan \c
78
+ Copyright © 2006\-2009 William Morgan \c
79
79
  .MT mworgan-sup@masanjin.net
80
80
  .ME \c
81
81
  .PP
82
- Copyright \[at] 2013-2014 Sup developers
82
+ Copyright \[at] 2013\-2014 Sup developers
83
83
  .PP
84
84
  Permission is granted to copy and distribute this manual under the terms
85
85
  of the GNU General Public License; either version 2 or (at your option)
@@ -1,21 +1,21 @@
1
- .\" Automatically generated by Pandoc 3.1.9
1
+ .\" Automatically generated by Pandoc 3.1.11.1
2
2
  .\"
3
- .TH "SUP-SYNC" "1" "September 3, 2014" "Sup User Manual" ""
3
+ .TH "SUP\-SYNC" "1" "September 3, 2014" "Sup User Manual" ""
4
4
  .SH NAME
5
- sup-psych-ify-config-files - migrate Sup configuration
5
+ sup\-psych\-ify\-config\-files \- migrate Sup configuration
6
6
  .SH SYNOPSIS
7
- sup-psych-ify-config-files
7
+ sup\-psych\-ify\-config\-files
8
8
  .SH DESCRIPTION
9
9
  \f[B]YAML migration is deprecated by Ruby 2.1 and newer.\f[R]
10
10
  .PP
11
- If sup-psych-ify-config-files is executed by Ruby <= 2.0 it migrates the
12
- \f[I]$HOME/.sup/sources.yaml\f[R] configuration file by reading it with
13
- the SYCK YAML parser and emitting the results with the Psych YAML
11
+ If sup\-psych\-ify\-config\-files is executed by Ruby <= 2.0 it migrates
12
+ the \f[I]$HOME/.sup/sources.yaml\f[R] configuration file by reading it
13
+ with the SYCK YAML parser and emitting the results with the Psych YAML
14
14
  emitter.
15
15
  .PP
16
16
  Read more on the Sup wiki
17
17
  .PP
18
- https://github.com/sup-heliotrope/sup/wiki/Migration-0.13-to-0.14
18
+ https://github.com/sup\-heliotrope/sup/wiki/Migration\-0.13\-to\-0.14
19
19
  .SH FILES
20
20
  .TP
21
21
  $HOME/.sup/config.yaml
@@ -24,7 +24,7 @@ Sup configuration file
24
24
  $HOME/.sup/sources.yaml
25
25
  Configuration file for Sup mail sources
26
26
  .SH SEE ALSO
27
- sup(1), sup-add(1), sup-config(1), sup-dump(1)
27
+ sup(1), sup\-add(1), sup\-config(1), sup\-dump(1)
28
28
  .SH REPORTING BUGS
29
29
  You are welcome to submit bug reports to the Sup issue tracker, located
30
30
  at
@@ -60,11 +60,11 @@ Archives: \c
60
60
  .UE \c
61
61
  .RE
62
62
  .SH COPYRIGHT
63
- Copyright © 2006-2009 William Morgan \c
63
+ Copyright © 2006\-2009 William Morgan \c
64
64
  .MT mworgan-sup@masanjin.net
65
65
  .ME \c
66
66
  .PP
67
- Copyright \[at] 2013-2014 Sup developers
67
+ Copyright \[at] 2013\-2014 Sup developers
68
68
  .PP
69
69
  Permission is granted to copy and distribute this manual under the terms
70
70
  of the GNU General Public License; either version 2 or (at your option)
@@ -1,49 +1,49 @@
1
- .\" Automatically generated by Pandoc 3.1.9
1
+ .\" Automatically generated by Pandoc 3.1.11.1
2
2
  .\"
3
- .TH "SUP-RECOVER-SOURCES" "1" "April 9, 2012" "Sup User Manual" ""
3
+ .TH "SUP\-RECOVER\-SOURCES" "1" "April 9, 2012" "Sup User Manual" ""
4
4
  .SH NAME
5
- sup-recover-sources - rebuild a lost Sup source configuration file
5
+ sup\-recover\-sources \- rebuild a lost Sup source configuration file
6
6
  .SH SYNOPSIS
7
- sup-recover-sources [\f[I]options\f[R]] [\f[I]source uri\&...\f[R]]
7
+ sup\-recover\-sources [\f[I]options\f[R]] [\f[I]source uri\&...\f[R]]
8
8
  .SH DESCRIPTION
9
9
  Rebuilds a lost sources.yaml file by reading messages from a list of
10
10
  sources and determining, for each source, the most prevalent `source_id'
11
11
  field of messages from that source in the index.
12
12
  .PP
13
- The only non-deterministic component to this is that if the same message
14
- appears in multiple sources, those sources may be mis-diagnosed by this
15
- program.
13
+ The only non\-deterministic component to this is that if the same
14
+ message appears in multiple sources, those sources may be mis\-diagnosed
15
+ by this program.
16
16
  .PP
17
- If the first N messages (--scan-num below) all have the same source_id
18
- in the index, the source will be added to sources.yaml.
17
+ If the first N messages (\-\-scan\-num below) all have the same
18
+ source_id in the index, the source will be added to sources.yaml.
19
19
  Otherwise, the distribution will be printed, and you will have to add it
20
20
  by hand.
21
21
  .PP
22
22
  The offset pointer into the sources will be set to the end of the
23
- source, so you will have to run sup-import --rebuild for each new source
24
- after doing this.
23
+ source, so you will have to run sup\-import \-\-rebuild for each new
24
+ source after doing this.
25
25
  .SH OPTIONS
26
26
  .TP
27
- --unusual
27
+ \-\-unusual
28
28
  Mark sources as `unusual'.
29
29
  Only usual sources will be polled by hand (default: false)
30
30
  .TP
31
- --archive
31
+ \-\-archive
32
32
  Mark sources as `archive'.
33
33
  New messages from these sources will not appear in the inbox (default:
34
34
  false)
35
35
  .TP
36
- --scan-num N
36
+ \-\-scan\-num N
37
37
  Number of messages to scan per source (default: 10)
38
38
  .TP
39
- -h, --help
39
+ \-h, \-\-help
40
40
  Show help message
41
41
  .SH FILES
42
42
  .TP
43
43
  $HOME/.sup/sources.yaml
44
44
  Configuration file for Sup mail sources
45
45
  .SH SEE ALSO
46
- sup(1), sup-config(1), sup-add(1), sup-import(1)
46
+ sup(1), sup\-config(1), sup\-add(1), sup\-import(1)
47
47
  .SH REPORTING BUGS
48
48
  You are welcome to submit bug reports to the Sup issue tracker, located
49
49
  at
@@ -79,11 +79,11 @@ Archives: \c
79
79
  .UE \c
80
80
  .RE
81
81
  .SH COPYRIGHT
82
- Copyright © 2006-2009 William Morgan \c
82
+ Copyright © 2006\-2009 William Morgan \c
83
83
  .MT mworgan-sup@masanjin.net
84
84
  .ME \c
85
85
  .PP
86
- Copyright \[at] 2013-2014 Sup developers
86
+ Copyright \[at] 2013\-2014 Sup developers
87
87
  .PP
88
88
  Permission is granted to copy and distribute this manual under the terms
89
89
  of the GNU General Public License; either version 2 or (at your option)
@@ -1,24 +1,25 @@
1
- .\" Automatically generated by Pandoc 3.1.9
1
+ .\" Automatically generated by Pandoc 3.1.11.1
2
2
  .\"
3
- .TH "SUP-SYNC-BACK-MAILDIR" "1" "August 25, 2014" "Sup User Manual" ""
3
+ .TH "SUP\-SYNC\-BACK\-MAILDIR" "1" "August 25, 2014" "Sup User Manual" ""
4
4
  .SH NAME
5
- sup-sync-back-maildir - Export Xapian entries to Maildir sources on disk
5
+ sup\-sync\-back\-maildir \- Export Xapian entries to Maildir sources on
6
+ disk
6
7
  .SH SYNOPSIS
7
- sup-sync-back-maildir [\f[I]options\f[R]] [\f[I]source uri\&...\f[R]]
8
+ sup\-sync\-back\-maildir [\f[I]options\f[R]] [\f[I]source uri\&...\f[R]]
8
9
  .SH DESCRIPTION
9
10
  This script parses the Xapian entries for a given Maildir source and
10
- renames (changes maildir flags) e-mail files on disk according to the
11
+ renames (changes maildir flags) e\-mail files on disk according to the
11
12
  labels stored in the index.
12
13
  It will export all the changes you made in Sup to your Maildirs so that
13
14
  they can be propagated to your IMAP server with e.g.\ offlineimap.
14
15
  .PP
15
16
  The script also merges some Maildir flags into Sup such as R (replied)
16
- and P (passed, forwarded), for instance suppose you have an e-mail file
17
+ and P (passed, forwarded), for instance suppose you have an e\-mail file
17
18
  like this: foo_bar:2,FRS (flags are favorite, replied, seen) and its
18
19
  Xapian entry has labels `starred', the merge operation will add the
19
20
  `replied' label to the Xapian entry.
20
21
  .PP
21
- If you choose not to merge (-m) you will lose information (`replied'),
22
+ If you choose not to merge (\-m) you will lose information (`replied'),
22
23
  and in the previous example the file will be renamed to foo_bar:2,FS.
23
24
  .PP
24
25
  Running this script is \f[I]strongly\f[R] recommended when setting the
@@ -31,30 +32,30 @@ sources marked as usual and that have not disabled sync back using the
31
32
  configuration parameter sync_back = false in sources.yaml.
32
33
  .SH OPTIONS
33
34
  .TP
34
- -n, --no-confirm
35
+ \-n, \-\-no\-confirm
35
36
  Don\[cq]t ask for confirmation before synchronizing
36
37
  .TP
37
- -m, --no-merge
38
+ \-m, \-\-no\-merge
38
39
  Don\[cq]t merge new supported Maildir flags (R and P)
39
40
  .TP
40
- -l, --list-sources
41
+ \-l, \-\-list\-sources
41
42
  List your Maildir sources and exit
42
43
  .TP
43
- -u, --unusual-sources-too
44
+ \-u, \-\-unusual\-sources\-too
44
45
  Sync unusual sources too if no specific source information is given
45
46
  .TP
46
- --version
47
+ \-\-version
47
48
  Print version and exit
48
49
  .TP
49
- -h, --help
50
+ \-h, \-\-help
50
51
  Show brief help message
51
52
  .SH FILES
52
53
  .TP
53
54
  $HOME/.sup/sources.yaml
54
55
  Configuration file for Sup mail sources
55
56
  .SH SEE ALSO
56
- sup(1), sup-add(1), sup-config(1), sup-dump(1), sup-sync(1),
57
- sup-tweak-labels(1)
57
+ sup(1), sup\-add(1), sup\-config(1), sup\-dump(1), sup\-sync(1),
58
+ sup\-tweak\-labels(1)
58
59
  .SH REPORTING BUGS
59
60
  You are welcome to submit bug reports to the Sup issue tracker, located
60
61
  at
@@ -90,11 +91,11 @@ Archives: \c
90
91
  .UE \c
91
92
  .RE
92
93
  .SH COPYRIGHT
93
- Copyright © 2006-2009 William Morgan \c
94
+ Copyright © 2006\-2009 William Morgan \c
94
95
  .MT mworgan-sup@masanjin.net
95
96
  .ME \c
96
97
  .PP
97
- Copyright \[at] 2013-2014 Sup developers
98
+ Copyright \[at] 2013\-2014 Sup developers
98
99
  .PP
99
100
  Permission is granted to copy and distribute this manual under the terms
100
101
  of the GNU General Public License; either version 2 or (at your option)
data/man/sup-sync.1 CHANGED
@@ -1,79 +1,79 @@
1
- .\" Automatically generated by Pandoc 3.1.9
1
+ .\" Automatically generated by Pandoc 3.1.11.1
2
2
  .\"
3
- .TH "SUP-SYNC" "1" "April 9, 2012" "Sup User Manual" ""
3
+ .TH "SUP\-SYNC" "1" "April 9, 2012" "Sup User Manual" ""
4
4
  .SH NAME
5
- sup-sync - sychronize the Sup index with message sources
5
+ sup\-sync \- sychronize the Sup index with message sources
6
6
  .SH SYNOPSIS
7
- sup-sync [\f[I]options\f[R]] source \&...
7
+ sup\-sync [\f[I]options\f[R]] source \&...
8
8
  .SH DESCRIPTION
9
9
  Synchronizes the Sup index with one or more message sources by adding
10
10
  messages, deleting messages, or changing message state in the index as
11
11
  appropriate.
12
12
  .PP
13
13
  \[lq]Message state\[rq] means read/unread, archived/inbox,
14
- starred/unstarred, and all user-defined labels on each message.
14
+ starred/unstarred, and all user\-defined labels on each message.
15
15
  .PP
16
16
  \[lq]Default source state\[rq] refers to any state that a source itself
17
17
  has keeps about a message.
18
- Sup-sync uses this information when adding a new message to the index.
18
+ Sup\-sync uses this information when adding a new message to the index.
19
19
  The source state is typically limited to read/unread, archived/inbox
20
20
  status and a single label based on the source name.
21
21
  Messages using the default source state are placed in the inbox
22
22
  (i.e.\ not archived) and unstarred.
23
23
  .PP
24
24
  If no sources are given, sync from all usual sources.
25
- Supported source URI schemes can be seen by running \[lq]sup-add
26
- --help\[rq].
25
+ Supported source URI schemes can be seen by running \[lq]sup\-add
26
+ \-\-help\[rq].
27
27
  .SH MESSAGE STATE OPTIONS
28
28
  .TP
29
- --asis
29
+ \-\-asis
30
30
  If the message is already in the index, preserve its state.
31
31
  Otherwise, use default source state (default)
32
32
  .TP
33
- --restore dumpfile
34
- Restore message state from a dump file created with sup-dump.
35
- If a message is not in this dumpfile, act as --asis
33
+ \-\-restore dumpfile
34
+ Restore message state from a dump file created with sup\-dump.
35
+ If a message is not in this dumpfile, act as \-\-asis
36
36
  .TP
37
- --discard
37
+ \-\-discard
38
38
  Discard any message state in the index and use the default source state.
39
39
  \f[B]Dangerous!\f[R]
40
40
  .TP
41
- -x, -
41
+ \-x, \-
42
42
  When using the default source state, mark messages as archived.
43
43
  .TP
44
- -r, --read
44
+ \-r, \-\-read
45
45
  When using the default source state, mark messages as read.
46
46
  .TP
47
- --extra-labels \f[I]STRING\f[R]
48
- When using the default source state, also apply these user-defined
49
- labels (a comma-separated list) (default)
47
+ \-\-extra\-labels \f[I]STRING\f[R]
48
+ When using the default source state, also apply these user\-defined
49
+ labels (a comma\-separated list) (default)
50
50
  .SH OTHER OPTIONS
51
51
  .TP
52
- -v, --verbose
52
+ \-v, \-\-verbose
53
53
  Print message ids as they\[cq]re processed.
54
54
  .TP
55
- -o, --optimize
55
+ \-o, \-\-optimize
56
56
  As the final operation, optimize the index.
57
57
  .TP
58
- --all-sources
58
+ \-\-all\-sources
59
59
  Scan over all sources.
60
60
  .TP
61
- -n, --dry-run
61
+ \-n, \-\-dry\-run
62
62
  Don\[cq]t actually modify the index.
63
- Probably only useful with --verbose.
63
+ Probably only useful with \-\-verbose.
64
64
  .TP
65
- --version
65
+ \-\-version
66
66
  Show version information
67
67
  .TP
68
- -h, --help
68
+ \-h, \-\-help
69
69
  Show help message
70
70
  .SH FILES
71
71
  .TP
72
72
  $HOME/.sup/sources.yaml
73
73
  Configuration file for Sup mail sources
74
74
  .SH SEE ALSO
75
- sup(1), sup-add(1), sup-config(1), sup-dump(1),
76
- sup-sync-back-maildir(1), sup-tweak-labels(1)
75
+ sup(1), sup\-add(1), sup\-config(1), sup\-dump(1),
76
+ sup\-sync\-back\-maildir(1), sup\-tweak\-labels(1)
77
77
  .SH REPORTING BUGS
78
78
  You are welcome to submit bug reports to the Sup issue tracker, located
79
79
  at
@@ -109,11 +109,11 @@ Archives: \c
109
109
  .UE \c
110
110
  .RE
111
111
  .SH COPYRIGHT
112
- Copyright © 2006-2009 William Morgan \c
112
+ Copyright © 2006\-2009 William Morgan \c
113
113
  .MT mworgan-sup@masanjin.net
114
114
  .ME \c
115
115
  .PP
116
- Copyright \[at] 2013-2014 Sup developers
116
+ Copyright \[at] 2013\-2014 Sup developers
117
117
  .PP
118
118
  Permission is granted to copy and distribute this manual under the terms
119
119
  of the GNU General Public License; either version 2 or (at your option)