mailman 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -5
- data/USER_GUIDE.md +9 -1
- data/lib/mailman/application.rb +1 -1
- data/lib/mailman/configuration.rb +4 -0
- data/lib/mailman/receiver.rb +1 -1
- data/lib/mailman/receiver/pop3.rb +1 -1
- data/lib/mailman/version.rb +1 -1
- metadata +20 -5
data/README.md
CHANGED
@@ -10,7 +10,7 @@ support), that works with Rails "out of the box".
|
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
13
|
-
See the [
|
13
|
+
See the [User Guide](http://rubydoc.info/github/titanous/mailman/master/file/USER_GUIDE.md) for more information.
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
@@ -18,13 +18,15 @@ See the [USER_GUIDE.md](http://rubydoc.info/github/titanous/mailman/master/file/
|
|
18
18
|
|
19
19
|
## Thanks
|
20
20
|
|
21
|
-
This project
|
22
|
-
and my mentor
|
21
|
+
This project was sponsored by the [Ruby Summer of Code](http://rubysoc.org),
|
22
|
+
and my mentor was [Steven Soroka](http://github.com/ssoroka).
|
23
23
|
|
24
24
|
### Contributors
|
25
25
|
|
26
|
-
|
27
|
-
|
26
|
+
- [Tim Carey-Smith](http://github.com/halorgium)
|
27
|
+
- [Nicolas Aguttes](http://github.com/tranquiliste)
|
28
|
+
- [Daniel Schierbeck](http://github.com/dasch)
|
29
|
+
- [Ian White](http://github.com/ianwhite)
|
28
30
|
|
29
31
|
## Copyright
|
30
32
|
|
data/USER_GUIDE.md
CHANGED
@@ -150,7 +150,8 @@ Maildir receiver.
|
|
150
150
|
|
151
151
|
If a message is piped to a Mailman app, this receiver will override any
|
152
152
|
configured receivers. The app will process the message, and then quit. This
|
153
|
-
receiver is useful for testing and debugging.
|
153
|
+
receiver is useful for testing and debugging. This feature can be disabled
|
154
|
+
with the `Mailman.config.ignore_stdin` option.
|
154
155
|
|
155
156
|
**Example**: `cat plain_message.eml | ruby mailman_app.rb`
|
156
157
|
|
@@ -234,3 +235,10 @@ load the environment from. If this option is set to `nil`, Rails environment
|
|
234
235
|
loading will be disabled.
|
235
236
|
|
236
237
|
**Default**: `'.'`
|
238
|
+
|
239
|
+
### Standard input receiver
|
240
|
+
|
241
|
+
`Mailman.config.ignore_stdin` disables the STDIN receiver, which can
|
242
|
+
interfere with running Mailman with cron or as a daemon.
|
243
|
+
|
244
|
+
**Default**: `false`
|
data/lib/mailman/application.rb
CHANGED
@@ -37,7 +37,7 @@ module Mailman
|
|
37
37
|
require rails_env
|
38
38
|
end
|
39
39
|
|
40
|
-
if $stdin.fcntl(Fcntl::F_GETFL, 0) == 0 # we have stdin
|
40
|
+
if !Mailman.config.ignore_stdin && $stdin.fcntl(Fcntl::F_GETFL, 0) == 0 # we have stdin
|
41
41
|
Mailman.logger.debug "Processing message from STDIN."
|
42
42
|
@processor.process($stdin.read)
|
43
43
|
elsif Mailman.config.pop3
|
@@ -18,6 +18,10 @@ module Mailman
|
|
18
18
|
# rails environment loading
|
19
19
|
attr_accessor :rails_root
|
20
20
|
|
21
|
+
# @return [boolean] whether or not to ignore stdin. Setting this to true
|
22
|
+
# stops Mailman from entering stdin processing mode.
|
23
|
+
attr_accessor :ignore_stdin
|
24
|
+
|
21
25
|
def logger
|
22
26
|
@logger ||= Logger.new(STDOUT)
|
23
27
|
end
|
data/lib/mailman/receiver.rb
CHANGED
data/lib/mailman/version.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 4
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.4.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jonathan Rudenberg
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-03 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -78,9 +78,24 @@ dependencies:
|
|
78
78
|
type: :runtime
|
79
79
|
version_requirements: *id004
|
80
80
|
- !ruby/object:Gem::Dependency
|
81
|
-
name:
|
81
|
+
name: i18n
|
82
82
|
prerelease: false
|
83
83
|
requirement: &id005 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ">="
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
- 4
|
91
|
+
- 1
|
92
|
+
version: 0.4.1
|
93
|
+
type: :runtime
|
94
|
+
version_requirements: *id005
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: rspec
|
97
|
+
prerelease: false
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
84
99
|
none: false
|
85
100
|
requirements:
|
86
101
|
- - ">="
|
@@ -89,7 +104,7 @@ dependencies:
|
|
89
104
|
- 0
|
90
105
|
version: "0"
|
91
106
|
type: :development
|
92
|
-
version_requirements: *
|
107
|
+
version_requirements: *id006
|
93
108
|
description: Mailman makes it easy to process incoming emails with a simple routing DSL
|
94
109
|
email:
|
95
110
|
- jonathan@titanous.com
|