You've already forked baupm-core
Initial commit
This commit is contained in:
43
scripts/fetch-mails.sh
Normal file
43
scripts/fetch-mails.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Email-address of the system
|
||||
mail_address=""
|
||||
|
||||
# Email-Account username and password
|
||||
mail_username="$mail_address"
|
||||
mail_password=""
|
||||
|
||||
# IMAP-Server address and port
|
||||
mail_host=""
|
||||
mail_port=993
|
||||
mail_ssl=true
|
||||
|
||||
# IMAP-INBOX-Folder
|
||||
mail_folder="INBOX"
|
||||
|
||||
# Default project and tracker
|
||||
project="meta"
|
||||
tracker="Support"
|
||||
|
||||
# Redmine Settings
|
||||
unknown_user_action="ignore"
|
||||
allow_override="all"
|
||||
no_permission_check=true
|
||||
app_root="/home/bitnami/apps/redmine/htdocs"
|
||||
|
||||
if [[ -n "$mail_address" ]] && [[ -n "$mail_username" ]] && [[ -n "$mail_password" ]] && [[ -n "$mail_host" ]]; then
|
||||
sudo /opt/bitnami/ruby/bin/rake -f $app_root/Rakefile --silent redmine:email:receive_imap RAILS_ENV="production" \
|
||||
host="$mail_host" \
|
||||
port=$mail_port \
|
||||
username="$mail_username" \
|
||||
password="$mail_password" \
|
||||
ssl=$mail_ssl \
|
||||
move_on_success="$mail_folder.success" \
|
||||
move_on_failure="$mail_folder.failed" \
|
||||
unknown_user="$unknown_user_action" \
|
||||
tracker="$tracker" \
|
||||
allow_override="$allow_override" \
|
||||
folder="$mail_folder" \
|
||||
project="$project" \
|
||||
no_permission_check=$no_permission_check
|
||||
fi
|
||||
Reference in New Issue
Block a user