morhekil-ipcauthpipe 0.2.2 → 0.2.3

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/ipcauthpipe.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "ipcauthpipe"
3
- s.version = "0.2.2"
4
- s.date = "2009-06-11"
3
+ s.version = "0.2.3"
4
+ s.date = "2009-08-24"
5
5
  s.summary = "Implementation of Courier's authpipe protocol over Invision Power Board / Converge."
6
6
  s.description = "ipcauthpipe gem implements Courier's authpipe protocol to interface Courier POP/IMAP server with Invision Power Board / Converge members database."
7
7
  s.has_rdoc = false
data/lib/models/member.rb CHANGED
@@ -13,15 +13,18 @@ class Member < ActiveRecord::Base
13
13
  end
14
14
 
15
15
  def homedir
16
- IpcAuthpipe::config.mail['home_dir'] % "#{name[0..0]}/#{name}"
16
+ (IpcAuthpipe::config.mail['home_dir'] % "#{name[0..0]}/#{name}").downcase
17
17
  end
18
18
 
19
19
  # Create user's home dir if it's not present
20
20
  def create_homedir
21
21
  unless File.exists?(homedir)
22
22
  FileUtils.mkdir_p(homedir, :mode => 0750)
23
+ FileUtils.mkdir_p("#{homedir}/cur", :mode => 0750)
24
+ FileUtils.mkdir_p("#{homedir}/new", :mode => 0750)
25
+ FileUtils.mkdir_p("#{homedir}/tmp", :mode => 0750)
23
26
  FileUtils.chown(IpcAuthpipe::config.mail['owner_name'], IpcAuthpipe::config.mail['owner_group'], "#{homedir}/..")
24
- FileUtils.chown(IpcAuthpipe::config.mail['owner_name'], IpcAuthpipe::config.mail['owner_group'], homedir)
27
+ FileUtils.chown_R(IpcAuthpipe::config.mail['owner_name'], IpcAuthpipe::config.mail['owner_group'], homedir)
25
28
  end
26
29
  end
27
30
 
@@ -32,7 +35,7 @@ class Member < ActiveRecord::Base
32
35
  "GID=#{IpcAuthpipe::config.mail['owner_gid']}",
33
36
  "HOME=#{homedir}/",
34
37
  "MAILDIR=#{homedir}/",
35
- "ADDRESS=#{IpcAuthpipe::config.mail['address_format'] % name}",
38
+ "ADDRESS=#{(IpcAuthpipe::config.mail['address_format'] % name).downcase}",
36
39
  "."
37
40
  ].join("\n")+"\n"
38
41
  IpcAuthpipe::Log.debug "Authpipe dump: #{stringdump.inspect}"
@@ -41,7 +41,7 @@ describe 'Member' do
41
41
 
42
42
  it "should dump itself into text string for authlib" do
43
43
  member = Member.new(
44
- :name => 'tester'
44
+ :name => 'Tester'
45
45
  )
46
46
 
47
47
  member.to_authpipe.should == [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morhekil-ipcauthpipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oleg Ivanov
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-11 00:00:00 -07:00
12
+ date: 2009-08-24 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -48,6 +48,7 @@ files:
48
48
  - config.yml
49
49
  has_rdoc: false
50
50
  homepage: http://morhekil.net
51
+ licenses:
51
52
  post_install_message:
52
53
  rdoc_options: []
53
54
 
@@ -68,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
69
  requirements: []
69
70
 
70
71
  rubyforge_project:
71
- rubygems_version: 1.2.0
72
+ rubygems_version: 1.3.5
72
73
  signing_key:
73
74
  specification_version: 2
74
75
  summary: Implementation of Courier's authpipe protocol over Invision Power Board / Converge.