Patch #10178 » silent_account_creation_from_email.patch
| app/models/mail_handler.rb (working copy) | ||
|---|---|---|
| 79 | 79 |
end |
| 80 | 80 |
return false |
| 81 | 81 |
end |
| 82 |
when 'create_silent' |
|
| 83 |
@user = create_user_from_email |
|
| 84 |
if @user |
|
| 85 |
if logger && logger.info |
|
| 86 |
logger.info "MailHandler: [#{@user.login}] account created"
|
|
| 87 |
end |
|
| 88 |
else |
|
| 89 |
if logger && logger.error |
|
| 90 |
logger.error "MailHandler: could not create account for [#{sender_email}]"
|
|
| 91 |
end |
|
| 92 |
return false |
|
| 93 |
end |
|
| 82 | 94 |
else |
| 83 | 95 |
# Default behaviour, emails from unknown users are ignored |
| 84 | 96 |
if logger && logger.info |
| lib/tasks/email.rake (working copy) | ||
|---|---|---|
| 27 | 27 |
ignore: email is ignored (default) |
| 28 | 28 |
accept: accept as anonymous user |
| 29 | 29 |
create: create a user account |
| 30 |
create_silent: create a user account without sending back account information |
|
| 30 | 31 |
no_permission_check=1 disable permission checking when receiving |
| 31 | 32 |
the email |
| 32 | 33 |
|
| ... | ... | |
| 71 | 72 |
ignore: email is ignored (default) |
| 72 | 73 |
accept: accept as anonymous user |
| 73 | 74 |
create: create a user account |
| 75 |
create_silent: create a user account without sending back account information |
|
| 74 | 76 |
no_permission_check=1 disable permission checking when receiving |
| 75 | 77 |
the email |
| 76 | 78 |
|
- « Previous
- 1
- 2
- Next »