gmailer 0.1.0 → 0.1.1
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.
- data/CHANGES +5 -0
- data/gmailer.rb +8 -8
- metadata +26 -19
data/CHANGES
CHANGED
data/gmailer.rb
CHANGED
@@ -52,7 +52,7 @@ GM_ACT_DELSPAM = 20 # delete spam, forever
|
|
52
52
|
GM_ACT_DELTRASH = 21 # delete trash message, forever
|
53
53
|
|
54
54
|
module GMailer
|
55
|
-
VERSION = "0.1.
|
55
|
+
VERSION = "0.1.1"
|
56
56
|
attr_accessor :connection
|
57
57
|
|
58
58
|
# the main class.
|
@@ -120,7 +120,7 @@ module GMailer
|
|
120
120
|
else
|
121
121
|
raise ArgumentError, 'Invalid argument'
|
122
122
|
end
|
123
|
-
connect_no_cookie
|
123
|
+
raise 'Not connected, verify the credentials.' unless connect_no_cookie
|
124
124
|
end
|
125
125
|
|
126
126
|
#
|
@@ -152,7 +152,7 @@ module GMailer
|
|
152
152
|
response = nil
|
153
153
|
# np.set_debug_output($stderr)
|
154
154
|
np.start { |http|
|
155
|
-
response = http.post(GM_LNK_LOGIN, postdata,{'User-agent' => GM_USER_AGENT} )
|
155
|
+
response = http.post(GM_LNK_LOGIN, postdata,{'Content-Type' => 'application/x-www-form-urlencoded','User-agent' => GM_USER_AGENT} )
|
156
156
|
result = response.body
|
157
157
|
}
|
158
158
|
|
@@ -208,7 +208,7 @@ module GMailer
|
|
208
208
|
# desc Connect to GMail with default session management settings.
|
209
209
|
#
|
210
210
|
def connect()
|
211
|
-
connect_no_cookie()
|
211
|
+
raise 'Not connected, verify the credentials.' unless connect_no_cookie()
|
212
212
|
end
|
213
213
|
|
214
214
|
|
@@ -1177,7 +1177,7 @@ module GMailer
|
|
1177
1177
|
|
1178
1178
|
link = GM_LNK_GMAIL + "?view=ii"
|
1179
1179
|
|
1180
|
-
np = Net::HTTP::Proxy(@proxy_host,@proxy_port,@proxy_user,@proxy_pass).new(GM_LNK_HOST,
|
1180
|
+
np = Net::HTTP::Proxy(@proxy_host,@proxy_port,@proxy_user,@proxy_pass).new(GM_LNK_HOST, 443)
|
1181
1181
|
np.use_ssl = true
|
1182
1182
|
np.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
1183
1183
|
# np.set_debug_output($stderr)
|
@@ -1394,9 +1394,9 @@ module GMailer
|
|
1394
1394
|
elsif (r[0] == "di")
|
1395
1395
|
if !b.id.nil?
|
1396
1396
|
@conv.push(b)
|
1397
|
-
b =
|
1397
|
+
b = Conversation.new
|
1398
1398
|
end
|
1399
|
-
b =
|
1399
|
+
b = Conversation.new
|
1400
1400
|
b.index = r[2]
|
1401
1401
|
b.id = r[3]
|
1402
1402
|
b.is_star = r[4]
|
@@ -1593,7 +1593,7 @@ module GMailer
|
|
1593
1593
|
attr_accessor :id, :filename, :type, :size
|
1594
1594
|
end
|
1595
1595
|
|
1596
|
-
# a single
|
1596
|
+
# a single conversation
|
1597
1597
|
class Conversation
|
1598
1598
|
attr_accessor :id, :index, :body, :draft_parent, :is_draft, :attachment
|
1599
1599
|
attr_accessor :snippet, :subject, :dt, :dt_easy, :bcc_email, :cc_email
|
metadata
CHANGED
@@ -1,43 +1,50 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: gmailer
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date:
|
8
|
-
summary:
|
6
|
+
version: 0.1.1
|
7
|
+
date: 2006-03-31 00:00:00 +09:00
|
8
|
+
summary: An class interface of the Google's webmail service
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- ""
|
11
11
|
email: phasis_AT_gmail.com
|
12
12
|
homepage: http://rubyforge.org/projects/gmailutils
|
13
13
|
rubyforge_project:
|
14
|
-
description:
|
14
|
+
description: An class interface of the Google's webmail service
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
18
18
|
has_rdoc: false
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
27
28
|
authors:
|
28
|
-
|
29
|
+
- Park Heesob
|
29
30
|
files:
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
- CHANGES
|
32
|
+
- CVS
|
33
|
+
- MANIFEST
|
34
|
+
- README
|
35
|
+
- gmailer.rb
|
35
36
|
test_files: []
|
37
|
+
|
36
38
|
rdoc_options: []
|
39
|
+
|
37
40
|
extra_rdoc_files:
|
38
|
-
|
39
|
-
|
41
|
+
- README
|
42
|
+
- CHANGES
|
40
43
|
executables: []
|
44
|
+
|
41
45
|
extensions: []
|
46
|
+
|
42
47
|
requirements: []
|
43
|
-
|
48
|
+
|
49
|
+
dependencies: []
|
50
|
+
|