sup 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0193b6fb21e5af566be86fe3e69f8ffc3c91f3cb
4
- data.tar.gz: 83d09212502c49ed5eaf6a05a68f7be5d5f66b18
3
+ metadata.gz: d330a3455ed22952d8c45fce0f6a0d69346c40f2
4
+ data.tar.gz: 337b95be43bc301f6180b542b2395df025f4f1db
5
5
  SHA512:
6
- metadata.gz: 9dbf5ff6caa5e68e6488cc035faee89062392b75cf8ca2ed35e00fd48154e491d4db1a465334c412759d27a54be6ec9b651ff5d8409fdcf945abae54b7123732
7
- data.tar.gz: 961d4cf7a8798a757dd2edac9789179e6ca636d3e2ba49855af58f4f00b976faa4d6b05c19b87ef86c056d2039f3b5ee37aba2b04aa5d80e7dc603cc7ebc3bbb
6
+ metadata.gz: f538e3054ba742a5fadd296bcb6d29b0295e3ca807a0dfe600d908b3cfa9602697bd4e422ac5bde8facb603fe12784add4709ccc4f5ca9b7b76bf348cec3a6f3
7
+ data.tar.gz: 1923d32e3cfc13998e52bc7c53b19482f6a4ed9b13d4e79880a1a6a16d926b26af2e6aaa73d1ea6556a6d2cdaf51aae1979afc51eff01697df9801dd787a45a3
@@ -16,12 +16,13 @@ Ben Walton <bwalton at the artsci.utoronto dot cas>
16
16
  Mike Stipicevic <stipim at the rpi dot edus>
17
17
  Martin Bähr <mbaehr at the societyserver dot orgs>
18
18
  Clint Byrum <clint at the ubuntu dot coms>
19
+ Wael M. Nasreddine <wael.nasreddine at the gmail dot coms>
19
20
  Marcus Williams <marcus-sup at the bar-coded dot nets>
21
+ Matthieu Rakotojaona <matthieu.rakotojaona at the gmail dot coms>
20
22
  Lionel Ott <white.magic at the gmx dot des>
21
23
  Gaudenz Steinlin <gaudenz at the soziologie dot chs>
22
- Matthieu Rakotojaona <matthieu.rakotojaona at the gmail dot coms>
23
- Mark Alexander <marka at the pobox dot coms>
24
24
  Ingmar Vanhassel <ingmar at the exherbo dot orgs>
25
+ Mark Alexander <marka at the pobox dot coms>
25
26
  Edward Z. Yang <ezyang at the mit dot edus>
26
27
  Timon Vonk <timonv at the gmail dot coms>
27
28
  julien@macbook <julien.stechele at the gmail dot coms>
@@ -36,46 +37,48 @@ Markus Klinik <mkl at the lambdanaut dot nets>
36
37
  Bo Borgerson <gigabo at the gmail dot coms>
37
38
  Atte Kojo <atte.kojo at the reaktor dot fis>
38
39
  Michael Hamann <michael at the content-space dot des>
39
- Jonathan Lassoff <jof at the thejof dot coms>
40
40
  William Erik Baxter <web at the superscript dot coms>
41
+ Jonathan Lassoff <jof at the thejof dot coms>
41
42
  Grant Hollingworth <grant at the antiflux dot orgs>
42
- Adeodato Simó <dato at the net.com.org dot ess>
43
43
  Ico Doornekamp <ico at the pruts dot nls>
44
+ Adeodato Simó <dato at the net.com.org dot ess>
44
45
  Daniel Schoepe <daniel.schoepe at the googlemail dot coms>
45
- Jason Petsod <jason at the petsod dot orgs>
46
46
  James Taylor <james at the jamestaylor dot orgs>
47
+ Jason Petsod <jason at the petsod dot orgs>
47
48
  Robin Burchell <viroteck at the viroteck dot nets>
48
49
  Steve Goldman <sgoldman at the tower-research dot coms>
49
50
  Peter Harkins <ph at the malaprop dot orgs>
50
51
  Decklin Foster <decklin at the red-bean dot coms>
51
52
  Cameron Matheson <cam+sup at the cammunism dot orgs>
52
- Alex Vandiver <alex at the chmrr dot nets>
53
53
  Carl Worth <cworth at the cworth dot orgs>
54
+ Alex Vandiver <alex at the chmrr dot nets>
54
55
  Andrew Pimlott <andrew at the pimlott dot nets>
55
56
  Jeff Balogh <its.jeff.balogh at the gmail dot coms>
56
57
  Matías Aguirre <matiasaguirre at the gmail dot coms>
58
+ PaulSmecker <paul.smecker at the gmail dot coms>
57
59
  Kornilios Kourtis <kkourt at the cslab.ece.ntua dot grs>
58
60
  Lars Fischer <fischer at the wiwi.uni-siegen dot des>
61
+ madhat2r <MaDhAt2r at the dukefoo dot coms>
59
62
  Giorgio Lando <patroclo7 at the gmail dot coms>
60
63
  Kevin Riggle <kevinr at the free-dissociation dot coms>
61
64
  Benoît PIERRE <benoit.pierre at the gmail dot coms>
62
- Steven Lawrance <stl at the koffein dot nets>
63
65
  Alvaro Herrera <alvherre at the alvh.no-ip dot orgs>
66
+ Steven Lawrance <stl at the koffein dot nets>
64
67
  Jonah <Jonah at the GoodCoffee dot cas>
65
68
  ian <itaylor at the uark dot edus>
66
- Gregor Hoffleit <gregor at the sam.mediasupervision dot des>
67
- Per Andersson <avtobiff at the gmail dot coms>
68
69
  Adam Lloyd <adam at the alloy-d dot nets>
69
- Todd Eisenberger <teisenbe at the andrew.cmu dot edus>
70
70
  MichaelRevell <mikearevell at the gmail dot coms>
71
+ Gregor Hoffleit <gregor at the sam.mediasupervision dot des>
72
+ Todd Eisenberger <teisenbe at the andrew.cmu dot edus>
73
+ Per Andersson <avtobiff at the gmail dot coms>
71
74
  0xACE <0xACE at the users.noreply.github dot coms>
72
- Steven Walter <swalter at the monarch.(none)>
73
75
  Steven Schmeiser <steven at the schmeiser dot orgs>
74
- Stefan Lundström <lundst at the snabb.(none)>
75
- William A. Kennington III <william at the wkennington dot coms>
76
+ Steven Walter <swalter at the monarch.(none)>
77
+ Jon M. Dugan <jdugan at the es dot nets>
76
78
  akojo <atte.kojo at the gmail dot coms>
77
- Horacio Sanson <horacio at the skillupjapan.co dot jps>
78
79
  Matthias Vallentin <vallentin at the icir dot orgs>
79
- Jon M. Dugan <jdugan at the es dot nets>
80
+ William A. Kennington III <william at the wkennington dot coms>
81
+ Horacio Sanson <horacio at the skillupjapan.co dot jps>
82
+ Stefan Lundström <lundst at the snabb.(none)>
80
83
  Johannes Larsen <johs.a.larsen at the gmail dot coms>
81
84
  Kirill Smelkov <kirr at the landau.phys.spbu dot rus>
@@ -1,3 +1,9 @@
1
+ == 0.19.0 / 2014-07-05
2
+
3
+ * new check-attachment hook
4
+ * configure times to be seen in 24h format
5
+ * new mailinglist: supmua@googlegroups.com
6
+
1
7
  == 0.18.0 / 2014-05-19
2
8
 
3
9
  * new color option, :with_attachment for defining colors for the
data/README.md CHANGED
@@ -38,7 +38,7 @@ Please report bugs to the [Github issue tracker](https://github.com/sup-heliotro
38
38
  * [Code repository](https://github.com/sup-heliotrope/sup)
39
39
  * [Wiki](https://github.com/sup-heliotrope/sup/wiki)
40
40
  * IRC: [#sup @ freenode.net](http://webchat.freenode.net/?channels=#sup)
41
- * Mailing list: [sup-talk] and [sup-devel]
41
+ * Mailing list: supmua@googlegroups.com (subscribe: supmua+subscribe@googlegroups.com, archive: https://groups.google.com/d/forum/supmua )
42
42
 
43
43
  ## License
44
44
 
@@ -67,6 +67,4 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
67
67
  [search]: https://github.com/sup-heliotrope/sup/wiki/Searching-your-mail
68
68
  [Installation]: https://github.com/sup-heliotrope/sup/wiki#installation
69
69
  [ruby20]: https://github.com/sup-heliotrope/sup/wiki/Development#sup-014
70
- [sup-talk]: http://rubyforge.org/mailman/listinfo/sup-talk
71
- [sup-devel]: http://rubyforge.org/mailman/listinfo/sup-devel
72
70
  [maildir-syncback]: https://github.com/sup-heliotrope/sup/wiki/Using-sup-with-other-clients
@@ -1,3 +1,9 @@
1
+ Release 0.19.0:
2
+
3
+ New hook: check-attachment and a new option to shows dates in 24h format.
4
+
5
+ Our old mailinglists have been closed with the shut down of Rubyforge. Please subscribe to our new list: supmua@googlegroups.com.
6
+
1
7
  Release 0.18.0:
2
8
 
3
9
  sup-tweak-labels works again. new color options and some bug fixes.
@@ -149,11 +149,14 @@ alts = axe("Alternate email addresses", account[:alternates].join(" ")).split(/\
149
149
  sigfn = axe "What file contains your signature?", account[:signature]
150
150
  editor = axe "What editor would you like to use?", $config[:editor]
151
151
 
152
+ time_mode = axe "Would like to display time in 12h (type 12h) or in 24h (type 24h)?", $config[:time_mode]
153
+
152
154
  $config[:accounts][:default][:name] = name
153
155
  $config[:accounts][:default][:email] = email
154
156
  $config[:accounts][:default][:alternates] = alts
155
157
  $config[:accounts][:default][:signature] = sigfn
156
158
  $config[:editor] = editor
159
+ $config[:time_mode] = time_mode
157
160
 
158
161
  done = false
159
162
  until done
@@ -25,6 +25,16 @@ Return value:
25
25
  use the default signature, or :none for no signature.
26
26
  EOS
27
27
 
28
+ HookManager.register "check-attachment", <<EOS
29
+ Do checks on the attachment filename
30
+ Variables:
31
+ filename: the name of the attachment
32
+ Return value:
33
+ A String (single line) containing a message why this attachment is not optimal
34
+ to be attached.
35
+ If it is ok just return an empty string or nil
36
+ EOS
37
+
28
38
  HookManager.register "before-edit", <<EOS
29
39
  Modifies message body and headers before editing a new message. Variables
30
40
  should be modified in place.
@@ -331,6 +341,12 @@ EOS
331
341
  def attach_file
332
342
  fn = BufferManager.ask_for_filename :attachment, "File name (enter for browser): "
333
343
  return unless fn
344
+ if HookManager.enabled? "check-attachment"
345
+ reason = HookManager.run("check-attachment", :filename => fn)
346
+ if reason
347
+ return unless BufferManager.ask_yes_or_no("#{reason} Attach anyway?")
348
+ end
349
+ end
334
350
  begin
335
351
  Dir[fn].each do |f|
336
352
  @attachments << RMail::Message.make_file_attachment(f)
@@ -10,7 +10,6 @@ class ThreadViewMode < LineCursorMode
10
10
  attr_accessor :state
11
11
  end
12
12
 
13
- DATE_FORMAT = "%B %e %Y %l:%M%p"
14
13
  INDENT_SPACES = 2 # how many spaces to indent child messages
15
14
 
16
15
  HookManager.register "detailed-headers", <<EOS
@@ -849,7 +848,7 @@ private
849
848
  end
850
849
 
851
850
  headers = OrderedHash.new
852
- headers["Date"] = "#{m.date.strftime DATE_FORMAT} (#{m.date.to_nice_distance_s})"
851
+ headers["Date"] = "#{m.date.to_message_nice_s} (#{m.date.to_nice_distance_s})"
853
852
  headers["Subject"] = m.subj
854
853
 
855
854
  show_labels = @thread.labels - LabelManager::HIDDEN_RESERVED_LABELS
@@ -857,7 +856,7 @@ private
857
856
  headers["Labels"] = show_labels.map { |x| x.to_s }.sort.join(', ')
858
857
  end
859
858
  if parent
860
- headers["In reply to"] = "#{parent.from.mediumname}'s message of #{parent.date.strftime DATE_FORMAT}"
859
+ headers["In reply to"] = "#{parent.from.mediumname}'s message of #{parent.date.to_message_nice_s}"
861
860
  end
862
861
 
863
862
  HookManager.run "detailed-headers", :message => m, :headers => headers
@@ -60,6 +60,8 @@ EOS
60
60
  end
61
61
 
62
62
  TO_NICE_S_MAX_LEN = 9 # e.g. "Yest.10am"
63
+
64
+ ## This is how a thread date is displayed in thread-index-mode
63
65
  def to_nice_s from=Time.now
64
66
  Redwood::HookManager.run("time-to-nice-string", :time => self, :from => from) || default_to_nice_s(from)
65
67
  end
@@ -71,13 +73,21 @@ EOS
71
73
  strftime "%b %e"
72
74
  else
73
75
  if is_the_same_day? from
74
- strftime("%l:%M%p").downcase # emulate %P (missing on ruby 1.8 darwin)
76
+ format = $config[:time_mode] == "24h" ? "%k:%M" : "%l:%M%p"
77
+ strftime(format).downcase
75
78
  elsif is_the_day_before? from
76
- "Yest." + nearest_hour.strftime("%l%p").downcase # emulate %P
79
+ format = $config[:time_mode] == "24h" ? "%kh" : "%l%p"
80
+ "Yest." + nearest_hour.strftime(format).downcase
77
81
  else
78
82
  strftime "%b %e"
79
83
  end
80
84
  end
81
85
  end
86
+
87
+ ## This is how a message date is displayed in thread-view-mode
88
+ def to_message_nice_s from=Time.now
89
+ format = $config[:time_mode] == "24h" ? "%B %e %Y %k:%M" : "%B %e %Y %l:%M%p"
90
+ strftime format
91
+ end
82
92
  end
83
93
 
@@ -1,3 +1,3 @@
1
1
  module Redwood
2
- VERSION = "0.18.0"
2
+ VERSION = "0.19.0"
3
3
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = ENV["REL"] || (::Redwood::VERSION == "git" ? "999" : ::Redwood::VERSION)
8
8
  s.date = Time.now.strftime "%Y-%m-%d"
9
9
  s.authors = ["William Morgan", "Gaute Hope", "Hamish Downer", "Matthieu Rakotojaona"]
10
- s.email = "sup-talk@rubyforge.org"
10
+ s.email = "supmua@googlegroups.com"
11
11
  s.summary = "A console-based email client with the best features of GMail, mutt and Emacs"
12
12
  s.homepage = "http://supmua.org"
13
13
  s.license = 'GPL-2'
@@ -22,11 +22,9 @@ Gem::Specification.new do |s|
22
22
  * Automatically tracking recent contacts
23
23
  DESC
24
24
  s.post_install_message = <<-EOF
25
- SUP: If you are upgrading Sup from before version 0.14.0: Please
26
- run `sup-psych-ify-config-files` to migrate from 0.13.
27
-
28
- Check https://github.com/sup-heliotrope/sup/wiki/Migration-0.13-to-0.14
29
- for more detailed and up-to-date instructions.
25
+ SUP: please note that our old mailing lists have been shut down,
26
+ re-subscribe to supmua@googlegroups.com to discuss and follow
27
+ updates on sup (send email to: supmua+subscribe@googlegroups.com).
30
28
  EOF
31
29
 
32
30
  s.files = `git ls-files -z`.split("\x0")
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: 0.18.0
4
+ version: 0.19.0
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: 2014-05-19 00:00:00.000000000 Z
14
+ date: 2014-07-05 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: xapian-ruby
@@ -232,7 +232,7 @@ description: |2
232
232
  * Multiple accounts - pick the right one when sending mail
233
233
  * Ruby-programmable hooks
234
234
  * Automatically tracking recent contacts
235
- email: sup-talk@rubyforge.org
235
+ email: supmua@googlegroups.com
236
236
  executables:
237
237
  - sup
238
238
  - sup-add
@@ -373,11 +373,9 @@ licenses:
373
373
  - GPL-2
374
374
  metadata: {}
375
375
  post_install_message: |
376
- SUP: If you are upgrading Sup from before version 0.14.0: Please
377
- run `sup-psych-ify-config-files` to migrate from 0.13.
378
-
379
- Check https://github.com/sup-heliotrope/sup/wiki/Migration-0.13-to-0.14
380
- for more detailed and up-to-date instructions.
376
+ SUP: please note that our old mailing lists have been shut down,
377
+ re-subscribe to supmua@googlegroups.com to discuss and follow
378
+ updates on sup (send email to: supmua+subscribe@googlegroups.com).
381
379
  rdoc_options: []
382
380
  require_paths:
383
381
  - lib