Compare commits
2 commits
8d0a454713
...
5c1489a22a
Author | SHA1 | Date | |
---|---|---|---|
5c1489a22a | |||
cf8def4328 |
5 changed files with 16 additions and 13 deletions
|
@ -1,7 +1,11 @@
|
||||||
|
1.1.3
|
||||||
|
|
||||||
|
* Fix emails fetching when Email::sanitizeEmail is called.
|
||||||
|
|
||||||
1.1.2
|
1.1.2
|
||||||
|
|
||||||
* Fix creating a new Conversation with a new Customer.
|
* Fix creating a new Conversation with a new Customer.
|
||||||
* Fix the error shown when trying to create a Customer with no linked Mailbox.
|
* Fix the error shown when trying to create a Customer with no linked Mailbox.
|
||||||
|
|
||||||
1.1.1
|
1.1.1
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,12 @@ namespace Modules\MMFRestrictedCustomers\Console\Commands;
|
||||||
|
|
||||||
use App\Attachment;
|
use App\Attachment;
|
||||||
use App\Conversation;
|
use App\Conversation;
|
||||||
|
use App\Email;
|
||||||
|
use App\Thread;
|
||||||
|
|
||||||
use App\Events\CustomerCreatedConversation;
|
use App\Events\CustomerCreatedConversation;
|
||||||
use App\Events\CustomerReplied;
|
use App\Events\CustomerReplied;
|
||||||
use App\Thread;
|
|
||||||
use App\Console\Commands\FetchEmails as BaseFetchEmails;
|
use App\Console\Commands\FetchEmails as BaseFetchEmails;
|
||||||
|
|
||||||
use Modules\MMFRestrictedCustomers\Entities\Customer;
|
use Modules\MMFRestrictedCustomers\Entities\Customer;
|
||||||
|
@ -676,7 +679,7 @@ class FetchEmails extends BaseFetchEmails {
|
||||||
}
|
}
|
||||||
foreach ($recipient_emails as $recipient_email) {
|
foreach ($recipient_emails as $recipient_email) {
|
||||||
// No need to check mailbox aliases.
|
// No need to check mailbox aliases.
|
||||||
if (\App\Email::sanitizeEmail($check_mailbox->email) == $recipient_email) {
|
if (Email::sanitizeEmail($check_mailbox->email) == $recipient_email) {
|
||||||
$this->extra_import[] = [
|
$this->extra_import[] = [
|
||||||
'mailbox' => $check_mailbox,
|
'mailbox' => $check_mailbox,
|
||||||
'message' => $message,
|
'message' => $message,
|
||||||
|
@ -753,10 +756,6 @@ class FetchEmails extends BaseFetchEmails {
|
||||||
public function createCustomers($emails, $mailbox) {
|
public function createCustomers($emails, $mailbox) {
|
||||||
$exclude_emails = $mailbox->getEmails();
|
$exclude_emails = $mailbox->getEmails();
|
||||||
foreach ($emails as $item) {
|
foreach ($emails as $item) {
|
||||||
// Email belongs to mailbox
|
|
||||||
// if (in_array(Email::sanitizeEmail($item->mail), $exclude_emails)) {
|
|
||||||
// continue;
|
|
||||||
// }
|
|
||||||
$data = [
|
$data = [
|
||||||
'mailbox_id' => $mailbox->id,
|
'mailbox_id' => $mailbox->id,
|
||||||
];
|
];
|
||||||
|
|
|
@ -33,11 +33,11 @@ So it is highly recommended to backup your customers database:
|
||||||
|
|
||||||
Download the [release tarball] and extract its content into `Modules/MMFRestrictedCustomers`.
|
Download the [release tarball] and extract its content into `Modules/MMFRestrictedCustomers`.
|
||||||
|
|
||||||
[release tarball]: https://port.numenaute.org/MMF/freescout-restricted-customers/archive/1.1.2.tar.gz
|
[release tarball]: https://port.numenaute.org/MMF/freescout-restricted-customers/archive/1.1.3.tar.gz
|
||||||
|
|
||||||
```
|
```
|
||||||
wget https://port.numenaute.org/MMF/freescout-restricted-customers/archive/1.1.2.tar.gz -O freescout-restricted-customers-1.1.2.tar.gz
|
wget https://port.numenaute.org/MMF/freescout-restricted-customers/archive/1.1.3.tar.gz -O freescout-restricted-customers-1.1.3.tar.gz
|
||||||
tar xf freescout-restricted-customers-1.1.2.tar.gz -C Modules
|
tar xf freescout-restricted-customers-1.1.3.tar.gz -C Modules
|
||||||
mv Modules/freescout-restricted-customers Modules/MMFRestrictedCustomers
|
mv Modules/freescout-restricted-customers Modules/MMFRestrictedCustomers
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "millions-missing-france/freescout-restricted-customers",
|
"name": "millions-missing-france/freescout-restricted-customers",
|
||||||
"description": "Freescout restricted customers - Restrict access to Freescout customers to specific mailboxes",
|
"description": "Freescout restricted customers - Restrict access to Freescout customers to specific mailboxes",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"license": ["AGPL-3.0-only"],
|
"license": ["AGPL-3.0-only"],
|
||||||
"authors": [
|
"authors": [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "MMFRestrictedCustomers",
|
"name": "MMFRestrictedCustomers",
|
||||||
"alias": "mmfrestrictedcustomers",
|
"alias": "mmfrestrictedcustomers",
|
||||||
"description": "Freescout restricted customers - Restrict access to Freescout customers to specific mailboxes",
|
"description": "Freescout restricted customers - Restrict access to Freescout customers to specific mailboxes",
|
||||||
"version": "1.1.2",
|
"version": "1.1.3",
|
||||||
"detailsUrl": "",
|
"detailsUrl": "",
|
||||||
"author": "Millions Missing FRANCE",
|
"author": "Millions Missing FRANCE",
|
||||||
"authorUrl": "info@millionsmissing.fr",
|
"authorUrl": "info@millionsmissing.fr",
|
||||||
|
|
Loading…
Reference in a new issue