2011-06-24 23:48:08 +02:00
## Introduction
_Mailr_ is a IMAP mail client based on _Ruby on Rails_ platform.
## Installation guide
**NOTE** All path and filenames are based on _Rails.root_ directory.
### Requirements
2011-06-25 00:12:21 +02:00
2011-06-24 23:48:08 +02:00
In _Rails 3_ all dependencies should be defined in file _<Rails.root>.Gemfile_ . All needed gems can be installed using bundler.
### Installation procedure
2011-06-25 00:12:21 +02:00
* Checkout the source code.
* If you need to override some of the default constants used in the application take a look at config/default_site.rb. Then create config/site.rb that contains only the keys which you want to override. Example content of config/site.rb is:
2011-06-24 23:48:08 +02:00
2011-06-25 00:05:54 +02:00
```ruby
module CDF
2011-06-24 23:48:08 +02:00
2011-06-24 23:53:55 +02:00
LOCALCONFIG = {
:imap_server => 'your.imap.server'
}
2011-06-25 00:05:54 +02:00
end
```
2011-06-24 23:48:08 +02:00
2011-06-25 00:12:21 +02:00
* Configure SMTP settings
2011-06-24 23:46:11 +02:00
2011-06-25 00:05:54 +02:00
```ruby
# initializers/smtp_settings.rb
2011-06-24 23:53:55 +02:00
ActionMailer::Base.smtp_settings = {
:address => "mail.example.com.py",
:port => 26,
:authentication => :plain,
:enable_starttls_auto => true,
:user_name => "emilio@example.com.py",
:password => "yourpass"
2011-06-25 00:05:54 +02:00
}
```
2011-06-24 23:48:08 +02:00
2011-06-25 00:12:21 +02:00
* Prepare config/database.yml file (see config/database.yml.example).
2011-06-24 23:48:08 +02:00
Check if proper gems (sqlite3/mysql/postgresql) are defined in _Gemfile_ and installed.
2011-06-25 00:12:21 +02:00
* Migrate database (rake db:migrate)
2011-06-24 23:48:08 +02:00
2011-06-25 00:12:21 +02:00
* Use it.
2011-06-24 23:48:08 +02:00