-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from zaneli/send_mail_per_project
- Loading branch information
Showing
8 changed files
with
122 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,40 @@ | ||
#あかヤギさんからお手紙着いた! | ||
赤山羊はちょっとしたメール設定を行う Redmine プラグインです。 | ||
|
||
## 動作確認バージョン | ||
Redmine version 2.1.2.stable | ||
Ruby version 1.9.3 (i686-linux) | ||
Rails version 3.2.8 | ||
|
||
## 使用方法 | ||
### 全体の設定 | ||
管理 -> 設定 -> メール通知タブに[件名の接頭辞]入力フィールドが追加されます。 | ||
Redmine から送信される全てのメール(後述するプロジェクトごとの設定を行った場合を除く)の | ||
件名の先頭に[件名の接頭辞]に入力した値が付与されます。 | ||
(なお、入力値を変更し、[保存]を押下しないまま[テストメールを送信]した場合、 | ||
変更した値ではなく[保存]押下により保存された接頭辞が使用されます。 | ||
他の入力フィールドも同様であったため、特別の処理を施していません) | ||
|
||
### プロジェクトごとの設定 | ||
プロジェクトメニューの設定ページに赤山羊タブが追加されます。 | ||
(このタブは管理者及び 管理 -> ロールと権限にて[赤山羊の設定]にチェックしたユーザーにのみ表示されます) | ||
[プロジェクト固有の接頭辞を設定する]をチェックしない場合、全体の設定の[件名の接頭辞]が使用されます。 | ||
[プロジェクト固有の接頭辞を設定する]をチェックした場合、プロジェクトメニューの設定ページの[件名の接頭辞]に入力した値が | ||
該当プロジェクトに関係するメールの件名の先頭に付与されます。 | ||
(特定のプロジェクトのみ接頭辞を付与したくない場合、[プロジェクト固有の接頭辞を設定する」をチェックし、 | ||
プロジェクトメニューの設定ページの[件名の接頭辞]に何も入力せず[保存]を押下してください。) | ||
また、[送信元アドレス]にメールアドレスを入力した場合、該当プロジェクトに関係するメールの送信元として使用されます。 | ||
# Akayagi | ||
|
||
This is Redmine plugin to extend mail settings. | ||
"Akayagi" means Red Goat in Japanese (赤山羊). | ||
|
||
## Versions that is confirmed to working | ||
|
||
* Redmine version 2.5.2.stable | ||
* Ruby version 2.0.0-p481 (2014-05-08) [x86_64-linux] | ||
* Rails version 3.2.19 | ||
|
||
## Getting started | ||
|
||
### 1. Install the plugin | ||
|
||
``` | ||
cd <REDMINE_HOME>/plugins | ||
git clone https://github.com/zaneli/akayagi.git | ||
``` | ||
|
||
or download source code, unzip (or extract the archive), and move directories to `<REDMINE_HOME>/plugins`. | ||
|
||
### 2. Run db migration | ||
|
||
``` | ||
rake redmine:plugins:migrate RAILS_ENV=<development or production> | ||
``` | ||
|
||
## Usage | ||
|
||
### General Settings | ||
|
||
Specify mail prefix. | ||
 | ||
|
||
### Settings per project | ||
|
||
Specify mail prefix, from address, to address, cc address and bcc address. | ||
(It can specify comma-separated multiple address at to, cc and bcc address) | ||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class AddAkayagiProjectSettingsToCcBcc < ActiveRecord::Migration | ||
def change | ||
add_column :akayagi_project_settings, :to_address, :string | ||
add_column :akayagi_project_settings, :cc_address, :string | ||
add_column :akayagi_project_settings, :bcc_address, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters