gmailer 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGES +3 -0
  2. data/gmailer.gempsec +23 -0
  3. data/gmailer.rb +12 -12
  4. data/install.rb +8 -0
  5. metadata +5 -3
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.1.4 - 22-Dec-2006
2
+ - fix send mail problem in multi from account
3
+
1
4
  == 0.1.3 - 29-Aug-2006
2
5
  - fix connection problem in connect_no_cookie
3
6
 
@@ -0,0 +1,23 @@
1
+ require "rubygems"
2
+
3
+ spec = Gem::Specification.new do |gem|
4
+ gem.name = "gmailer"
5
+ gem.version = "0.1.4"
6
+ gem.author = "Park Heesob"
7
+ gem.email = "phasis_AT_gmail.com"
8
+ gem.homepage = "http://rubyforge.org/projects/gmailutils"
9
+ gem.platform = Gem::Platform::RUBY
10
+ gem.description = "An class interface of the Google's webmail service"
11
+ gem.summary = "An class interface of the Google's webmail service"
12
+ gem.has_rdoc = false
13
+ gem.files = Dir['[A-Z]*'] + ['gmailer.rb']
14
+ gem.files.reject! { |fn| fn.include? "CVS" }
15
+ gem.require_path = ""
16
+ gem.extra_rdoc_files = ["README","CHANGES"]
17
+ end
18
+
19
+ if $0 == __FILE__
20
+ Gem.manage_gems
21
+ Gem::Builder.new(spec).build
22
+ end
23
+
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.2"
55
+ VERSION = "0.1.4"
56
56
  attr_accessor :connection
57
57
 
58
58
  # the main class.
@@ -150,7 +150,7 @@ module GMailer
150
150
  np.verify_mode = OpenSSL::SSL::VERIFY_NONE
151
151
  result = ''
152
152
  response = nil
153
- # np.set_debug_output($stderr)
153
+ # np.set_debug_output($stderr)
154
154
  np.start { |http|
155
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
@@ -168,7 +168,7 @@ module GMailer
168
168
  np.verify_mode = OpenSSL::SSL::VERIFY_NONE
169
169
  result = ''
170
170
  response = nil
171
- # np.set_debug_output($stderr)
171
+ # np.set_debug_output($stderr)
172
172
  np.start { |http|
173
173
  response = http.get(arr[5]+'?'+arr[7], {'Cookie' => cookies,'User-agent' => GM_USER_AGENT} )
174
174
  result = response.body
@@ -180,7 +180,7 @@ module GMailer
180
180
  np.verify_mode = OpenSSL::SSL::VERIFY_NONE
181
181
  result = ''
182
182
  response = nil
183
- # np.set_debug_output($stderr)
183
+ # np.set_debug_output($stderr)
184
184
  np.start { |http|
185
185
  response = http.get(arr[5]+'?'+arr[7], {'Cookie' => cookies,'User-agent' => GM_USER_AGENT} )
186
186
  result = response.body
@@ -191,7 +191,7 @@ module GMailer
191
191
  np = Net::HTTP::Proxy(@proxy_host,@proxy_port,@proxy_user,@proxy_pass).new(arr[2], 443)
192
192
  np.use_ssl = true
193
193
  np.verify_mode = OpenSSL::SSL::VERIFY_NONE
194
- # np.set_debug_output($stderr)
194
+ # np.set_debug_output($stderr)
195
195
  np.start { |http|
196
196
  response = http.get(@loc, {'Cookie' => cookies,'User-agent' => GM_USER_AGENT} )
197
197
  result = response.body
@@ -229,7 +229,7 @@ module GMailer
229
229
  if connected?
230
230
  query += "&zv=" + (rand(2000)*2147483.648).to_i.to_s
231
231
  np = Net::HTTP::Proxy(@proxy_host,@proxy_port,@proxy_user,@proxy_pass).new(GM_LNK_HOST, 80)
232
- # np.set_debug_output($stderr)
232
+ # np.set_debug_output($stderr)
233
233
  inbox = ''
234
234
  np.start { |http|
235
235
  response = http.get(GM_LNK_GMAIL + "?" + query,{'Cookie' => @cookie_str,'User-agent' => GM_USER_AGENT })
@@ -960,7 +960,7 @@ module GMailer
960
960
  other_emails.each {|v|
961
961
  from = v['email'] if from=='' && v['default']
962
962
  }
963
- from = @login + 'gmail.com' if from==''
963
+ from = @login + '@gmail.com' if from==''
964
964
  else
965
965
  from = nil
966
966
  end
@@ -1015,7 +1015,7 @@ module GMailer
1015
1015
 
1016
1016
  np = Net::HTTP::Proxy(@proxy_host,@proxy_port,@proxy_user,@proxy_pass).new(GM_LNK_HOST, 80)
1017
1017
  response = nil
1018
- # np.set_debug_output($stderr)
1018
+ # np.set_debug_output($stderr)
1019
1019
  np.start { |http|
1020
1020
  response = http.post(GM_LNK_GMAIL, postdata,{'Cookie' => @cookie_str,'User-agent' => GM_USER_AGENT,'Content-type' => 'multipart/form-data; boundary=' + boundary } )
1021
1021
  }
@@ -1086,7 +1086,7 @@ module GMailer
1086
1086
  end
1087
1087
 
1088
1088
  np = Net::HTTP::Proxy(@proxy_host,@proxy_port,@proxy_user,@proxy_pass).new(GM_LNK_HOST, 80)
1089
- # np.set_debug_output($stderr)
1089
+ # np.set_debug_output($stderr)
1090
1090
  np.start { |http|
1091
1091
  response = http.post(link, postdata,{'Cookie' => @cookie_str,'User-agent' => GM_USER_AGENT} )
1092
1092
  result = response.body
@@ -1107,13 +1107,13 @@ module GMailer
1107
1107
 
1108
1108
  response = nil
1109
1109
  np = Net::HTTP::Proxy(@proxy_host,@proxy_port,@proxy_user,@proxy_pass).new(GM_LNK_HOST, 80)
1110
- # np.set_debug_output($stderr)
1110
+ # np.set_debug_output($stderr)
1111
1111
  np.start { |http|
1112
1112
  response = http.get(GM_LNK_LOGOUT,{'Cookie' => @cookie_str,'User-agent' => GM_USER_AGENT })
1113
1113
  }
1114
1114
  arr = URI::split(response["Location"])
1115
1115
  np = Net::HTTP::Proxy(@proxy_host,@proxy_port,@proxy_user,@proxy_pass).new(arr[2], 80)
1116
- # np.set_debug_output($stderr)
1116
+ # np.set_debug_output($stderr)
1117
1117
  np.start { |http|
1118
1118
  response = http.get(arr[5]+'?'+arr[7], {'Cookie' => @cookie_str,'User-agent' => GM_USER_AGENT} )
1119
1119
  }
@@ -1180,7 +1180,7 @@ module GMailer
1180
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
- # np.set_debug_output($stderr)
1183
+ # np.set_debug_output($stderr)
1184
1184
  np.start { |http|
1185
1185
  response = http.post(link, postdata,{'Cookie' => @cookie_str,'User-agent' => GM_USER_AGENT} )
1186
1186
  }
@@ -0,0 +1,8 @@
1
+ require 'rbconfig'
2
+ require 'ftools'
3
+ include Config
4
+
5
+ sitelibdir = CONFIG["sitelibdir"]
6
+ file = "gmailer.rb"
7
+
8
+ File.copy(file, sitelibdir, true)
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: gmailer
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.3
7
- date: 2006-08-29 00:00:00 +09:00
6
+ version: 0.1.4
7
+ date: 2006-12-22 00:00:00 +09:00
8
8
  summary: An class interface of the Google's webmail service
9
9
  require_paths:
10
10
  - ""
@@ -31,9 +31,11 @@ authors:
31
31
  files:
32
32
  - CHANGES
33
33
  - CVS
34
+ - gmailer.gempsec
35
+ - gmailer.rb
36
+ - install.rb
34
37
  - MANIFEST
35
38
  - README
36
- - gmailer.rb
37
39
  test_files: []
38
40
 
39
41
  rdoc_options: []