ruby-managesieve 0.4.2 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/bin/sievectl +1 -1
  3. data/lib/managesieve.rb +7 -7
  4. metadata +28 -46
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 3ad15a8a0682098b7268802cdf958ee679f58fa7911b5f97c685a89621ea999d
4
+ data.tar.gz: b2b46a21c8671bc586ec6e823b7b01484f5791fb3c722b797965211cab8ef567
5
+ SHA512:
6
+ metadata.gz: 0efae70712635fbfa65dd16b41a7f89378209c315af1a7a74f9e32c0517b5aac82fabc489b1bbaac8d94d22983273385fb722fb54d2236024c722f1ccf666fd2
7
+ data.tar.gz: a43f5d49bba8fac81e3c94fb5882a260ae395be61dd4e7da18fd440016e0ef940bde86bb42e9c301af74e2d65617461ce28a936591315798fe2a8e38d0d6bb3a
data/bin/sievectl CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
3
  #--
4
- # Copyright (c) 2004-2009 Andre Nathan <andre@digirati.com.br>
4
+ # Copyright (c) 2004-2023 Andre Nathan <andre@digirati.com.br>
5
5
  #
6
6
  # Permission to use, copy, modify, and distribute this software for any
7
7
  # purpose with or without fee is hereby granted, provided that the above
data/lib/managesieve.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  #
3
3
  #--
4
- # Copyright (c) 2004-2009 Andre Nathan <andre@digirati.com.br>
4
+ # Copyright (c) 2004-2023 Andre Nathan <andre@digirati.com.br>
5
5
  #
6
6
  # Permission to use, copy, modify, and distribute this software for any
7
7
  # purpose with or without fee is hereby granted, provided that the above
@@ -75,7 +75,7 @@ class SieveResponseError < Exception; end
75
75
  # # Create a new ManageSieve instance
76
76
  # m = ManageSieve.new(
77
77
  # :host => 'sievehost.mydomain.com',
78
- # :port => 2000,
78
+ # :port => 4190,
79
79
  # :user => 'johndoe',
80
80
  # :password => 'secret',
81
81
  # :auth => 'PLAIN'
@@ -95,7 +95,7 @@ class SieveResponseError < Exception; end
95
95
  # __EOF__
96
96
  #
97
97
  # # Test if there's enough space for script 'foobar'
98
- # puts m.have_space?('foobar', script.length)
98
+ # puts m.have_space?('foobar', script.bytesize)
99
99
  #
100
100
  # # Upload it
101
101
  # m.put_script('foobar', script)
@@ -107,7 +107,7 @@ class SieveResponseError < Exception; end
107
107
  # m.logout
108
108
  #
109
109
  class ManageSieve
110
- SIEVE_PORT = 2000
110
+ SIEVE_PORT = 4190
111
111
 
112
112
  attr_reader :host, :port, :user, :euser, :capabilities, :login_mechs, :tls
113
113
 
@@ -115,7 +115,7 @@ class ManageSieve
115
115
  # following keys:
116
116
  #
117
117
  # [<i>:host</i>] the sieve server
118
- # [<i>:port</i>] the sieve port (defaults to 2000)
118
+ # [<i>:port</i>] the sieve port (defaults to 4190)
119
119
  # [<i>:user</i>] the name of the user
120
120
  # [<i>:euser</i>] the name of the effective user (defaults to +:user+)
121
121
  # [<i>:password</i>] the password of the user
@@ -124,7 +124,7 @@ class ManageSieve
124
124
  #
125
125
  def initialize(info)
126
126
  @host = info[:host]
127
- @port = info[:port] || 2000
127
+ @port = info[:port] || 4190
128
128
  @user = info[:user]
129
129
  @euser = info[:euser] || @user
130
130
  @password = info[:password]
@@ -339,7 +339,7 @@ class ManageSieve
339
339
 
340
340
  private
341
341
  def sieve_string(string) # :nodoc:
342
- return "{#{string.length}+}\r\n#{string}"
342
+ return "{#{string.bytesize}+}\r\n#{string}"
343
343
  end
344
344
 
345
345
  private
metadata CHANGED
@@ -1,65 +1,47 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-managesieve
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 2
9
- version: 0.4.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.4
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Andre Nathan
13
- autorequire:
8
+ autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-06-22 00:00:00 -03:00
18
- default_executable:
11
+ date: 2023-08-16 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
- description: " ruby-managesieve is a pure-ruby implementation of the MANAGESIEVE protocol,\n allowing remote management of Sieve scripts from ruby.\n"
22
- email: andre@sneakymustard.com
23
- executables:
13
+ description: |2
14
+ ruby-managesieve is a pure-ruby implementation of the MANAGESIEVE protocol,
15
+ allowing remote management of Sieve scripts from ruby.
16
+ email: andre@hostnet.com.br
17
+ executables:
24
18
  - sievectl
25
19
  extensions: []
26
-
27
20
  extra_rdoc_files: []
28
-
29
- files:
30
- - lib/managesieve.rb
21
+ files:
31
22
  - bin/sievectl
32
- has_rdoc: true
23
+ - lib/managesieve.rb
33
24
  homepage: http://managesieve.rubyforge.org
34
25
  licenses: []
35
-
36
- post_install_message:
26
+ metadata: {}
27
+ post_install_message:
37
28
  rdoc_options: []
38
-
39
- require_paths:
29
+ require_paths:
40
30
  - lib
41
- required_ruby_version: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
44
33
  - - ">="
45
- - !ruby/object:Gem::Version
46
- segments:
47
- - 0
48
- version: "0"
49
- required_rubygems_version: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
52
38
  - - ">="
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
- version: "0"
57
- requirements:
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements:
58
42
  - A network connection and a MANAGESIEVE server.
59
- rubyforge_project: ruby-managesieve
60
- rubygems_version: 1.3.7
61
- signing_key:
62
- specification_version: 3
43
+ rubygems_version: 3.1.2
44
+ signing_key:
45
+ specification_version: 4
63
46
  summary: A Ruby library for the MANAGESIEVE protocol
64
47
  test_files: []
65
-