imap_notifier 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/Gemfile +1 -1
- data/lib/imap_notifier.rb +2 -2
- data/lib/imap_notifier/base.rb +1 -1
- data/lib/imap_notifier/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MzlmNmU5N2I0M2M1MTAxZjdjM2YxZDY4MzRlZTc1OWRhZmYwODAwZA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 657284d3970cf3cf8a8f767e415b1c6537d2ecaf
|
4
|
+
data.tar.gz: 7398a090da84ac35fd2365706d27b869a2be27e2
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MzdhYTVlNjk2ZmE3ZWE1YzZlNzI5NTNjYjQ1MmM2NGM1MGQ3NDEyNDZlYTUw
|
11
|
-
MWU2M2IzZTk2ZTk5ZDczNzJmOTViODA0ZjgyNjU3NDUwOGEwMmI=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YjgxYzhlMjhkNDU5ZTBhNTk5ZDAzYzMwZjRkMGJhNzA0MGFkNmRhMzk1MDJl
|
14
|
-
NWQ1MmYzZDgxM2MzNDIwMjM3N2JhM2E4Mzk1ZmY5ZGRhM2RkOTgzNTViMGQz
|
15
|
-
NWE4NWU4YWE1Nzg3M2I3OWNhMTEyZTY5OWRmNjAzMmYzYzlkYTc=
|
6
|
+
metadata.gz: 97a9d4c951428efcad1c2d4fc303ab884ae2db5e1715f61c3adc760219dc8a4cd3dfa8a3e357b913d90c7b1f492bab73238599a2a262baf67b2c9f4e56019c73
|
7
|
+
data.tar.gz: 0710af980c03386b28f3e979e9844dc510a5cb060e747e9fc5ef8fe1b08314420a847f8a985feee643baa105a06d4750b4b0e4a56c99f554b749525306e3cf07
|
data/Gemfile
CHANGED
data/lib/imap_notifier.rb
CHANGED
@@ -15,7 +15,7 @@ PIDFILE = '/tmp/imap_notifier.pid'
|
|
15
15
|
IMAP_SERVER = "imap.gmail.com" # could be anything with tweaks
|
16
16
|
|
17
17
|
case RUBY_PLATFORM
|
18
|
-
when /darwin-?([1][2-9]|[2-9]\d)
|
18
|
+
when /darwin-?([1][2-9]|[2-9]\d)/
|
19
19
|
# darwin >= 12
|
20
20
|
require 'imap_notifier/notifier'
|
21
21
|
when /darwin-?(\d|[1][01])\./
|
@@ -24,5 +24,5 @@ when /darwin-?(\d|[1][01])\./
|
|
24
24
|
when /linux/
|
25
25
|
require 'imap_notifier/libnotify'
|
26
26
|
else
|
27
|
-
raise "You must be running Mac OS X for imap_notifier to work!"
|
27
|
+
raise "You must be running Mac OS X or Linux for imap_notifier to work!"
|
28
28
|
end
|
data/lib/imap_notifier/base.rb
CHANGED
@@ -50,7 +50,7 @@ class IMAP_Notifier
|
|
50
50
|
unalerted.each do |msg_id|
|
51
51
|
msg = imap.fetch(msg_id, "ENVELOPE")[0].attr["ENVELOPE"]
|
52
52
|
next if ids.include?(msg.message_id)
|
53
|
-
@notifier.alert("#{f} #{msg.subject}", :title => "Mail from #{msg.
|
53
|
+
@notifier.alert("#{f} #{msg.subject}", :title => "Mail from #{msg.from[0].mailbox}@#{msg.from[0].host}", :group => msg_id)
|
54
54
|
end
|
55
55
|
end
|
56
56
|
@folders[f] = unseen
|
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imap_notifier
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: highline
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: ruby-growl
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: terminal-notifier
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: Notification of new, unread email via IMAP
|
@@ -87,7 +87,7 @@ executables:
|
|
87
87
|
extensions: []
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
|
-
- .gitignore
|
90
|
+
- ".gitignore"
|
91
91
|
- Gemfile
|
92
92
|
- Gemfile.lock
|
93
93
|
- LICENSE.txt
|
@@ -112,17 +112,17 @@ require_paths:
|
|
112
112
|
- lib
|
113
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: 1.9.2
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
|
-
- -
|
120
|
+
- - ">="
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
123
|
requirements: []
|
124
124
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
125
|
+
rubygems_version: 2.4.6
|
126
126
|
signing_key:
|
127
127
|
specification_version: 4
|
128
128
|
summary: Notification of new, unread email via IMAP using Ruby, Highline, Net/IMAP,
|