diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-07-11 15:52:34 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-08-26 09:32:19 +0100 |
commit | 009981d2cd9b576d0ff676716c49d88d89dd14e8 (patch) | |
tree | 763e2e2e4b206187b38d890b7599e19f20433c36 | |
parent | 9e16a9600aa5297b5ea42abdd3c574f27143fe8c (diff) |
Add default INCOMING_EMAIL_PREFIX
All our examples use the 'foi+' prefix so lets make this the default. If
people _really_ want no prefix, they can change the setting to ''. This
will probably cover the more general cases.
-rw-r--r-- | config/general.yml-example | 6 | ||||
-rw-r--r-- | lib/configuration.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/config/general.yml-example b/config/general.yml-example index 4631170d3..0e6920f0a 100644 --- a/config/general.yml-example +++ b/config/general.yml-example @@ -256,12 +256,12 @@ INCOMING_EMAIL_DOMAIN: 'localhost' # An optional prefix to help you distinguish FOI requests. # -# INCOMING_EMAIL_PREFIX - String (default: nil) +# INCOMING_EMAIL_PREFIX - String (default: foi+) # # Examples: # -# INCOMING_EMAIL_PREFIX: '' -# INCOMING_EMAIL_PREFIX: 'foi+' +# INCOMING_EMAIL_PREFIX: '' # No prefix +# INCOMING_EMAIL_PREFIX: 'alaveteli+' # # --- INCOMING_EMAIL_PREFIX: 'foi+' diff --git a/lib/configuration.rb b/lib/configuration.rb index bd2d31ac2..d22b304ac 100644 --- a/lib/configuration.rb +++ b/lib/configuration.rb @@ -42,7 +42,7 @@ module AlaveteliConfiguration :HTML_TO_PDF_COMMAND => '', :INCLUDE_DEFAULT_LOCALE_IN_URLS => true, :INCOMING_EMAIL_DOMAIN => 'localhost', - :INCOMING_EMAIL_PREFIX => '', + :INCOMING_EMAIL_PREFIX => 'foi+', :INCOMING_EMAIL_SECRET => 'dummysecret', :ISO_COUNTRY_CODE => 'GB', :MINIMUM_REQUESTS_FOR_STATISTICS => 100, |