Patch #10178 » silent_account_creation_from_email.patch
| app/models/mail_handler.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
return false
|
||
|
end
|
||
|
when 'create_silent'
|
||
|
@user = create_user_from_email
|
||
|
if @user
|
||
|
if logger && logger.info
|
||
|
logger.info "MailHandler: [#{@user.login}] account created"
|
||
|
end
|
||
|
else
|
||
|
if logger && logger.error
|
||
|
logger.error "MailHandler: could not create account for [#{sender_email}]"
|
||
|
end
|
||
|
return false
|
||
|
end
|
||
|
else
|
||
|
# Default behaviour, emails from unknown users are ignored
|
||
|
if logger && logger.info
|
||
| lib/tasks/email.rake (working copy) | ||
|---|---|---|
|
ignore: email is ignored (default)
|
||
|
accept: accept as anonymous user
|
||
|
create: create a user account
|
||
|
create_silent: create a user account without sending back account information
|
||
|
no_permission_check=1 disable permission checking when receiving
|
||
|
the email
|
||
|
|
||
| ... | ... | |
|
ignore: email is ignored (default)
|
||
|
accept: accept as anonymous user
|
||
|
create: create a user account
|
||
|
create_silent: create a user account without sending back account information
|
||
|
no_permission_check=1 disable permission checking when receiving
|
||
|
the email
|
||
|
|
||
- « Previous
- 1
- 2
- Next »