mailmanager 1.0.8 → 1.0.9
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/README.rdoc +2 -1
- data/lib/mailmanager/lib.rb +6 -0
- data/lib/mailmanager/list.rb +8 -0
- data/lib/mailmanager/version.rb +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
= MailManager
|
2
2
|
|
3
3
|
MailManager is a Ruby wrapper for the GNU Mailman mailing list manager. It exposes
|
4
|
-
some administrative functions to Ruby. See the API docs
|
4
|
+
some administrative functions to Ruby. See the API docs[http://rdoc.info/github/dnclabs/mailmanager/master/frames]
|
5
|
+
for details.
|
5
6
|
It is licensed under the New BSD License (see the LICENSE file for details).
|
6
7
|
|
7
8
|
MailManager has been tested with Mailman 2.1.14. It has NOT been tested with any
|
data/lib/mailmanager/lib.rb
CHANGED
@@ -97,6 +97,12 @@ module MailManager
|
|
97
97
|
command(cmd, params)
|
98
98
|
end
|
99
99
|
|
100
|
+
def web_page_url(list)
|
101
|
+
cmd = :withlist
|
102
|
+
out = command(cmd, :name => list.name, :wlcmd => 'web_page_url')
|
103
|
+
parse_json_output(out)
|
104
|
+
end
|
105
|
+
|
100
106
|
def command(cmd, opts = {})
|
101
107
|
mailman_cmd = "#{mailmanager.root}/bin/#{cmd.to_s} "
|
102
108
|
# delete opts as we handle them explicitly
|
data/lib/mailmanager/list.rb
CHANGED
@@ -109,6 +109,14 @@ EOF
|
|
109
109
|
lib.inject(self, inject_message)
|
110
110
|
end
|
111
111
|
|
112
|
+
# Returns the info URL for the list
|
113
|
+
def info_url
|
114
|
+
result = lib.web_page_url(self)
|
115
|
+
root = result['result']
|
116
|
+
root += "/" unless root[-1,1] == '/'
|
117
|
+
"#{root}listinfo/#{name}"
|
118
|
+
end
|
119
|
+
|
112
120
|
private
|
113
121
|
|
114
122
|
def add_member_using(method, email, name)
|
data/lib/mailmanager/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 1.0.
|
8
|
+
- 9
|
9
|
+
version: 1.0.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Wes Morgan
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-21 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|