Skip to content

Commit

Permalink
Remove max length limitation from mailbox Aliases field - closes #3525
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Nov 14, 2023
1 parent 1dd59bc commit de643ee
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
| Checks for new jobs every --sleep seconds.
| If --tries is set and job fails it is being processed right away without any delay.
| --delay parameter does not work to set delays between retry attempts.
| --timeout parameter sets job timeout and is used to avoid queue:work stucking.
| --timeout parameter sets job timeout and is used to avoid queue:work freezing.
|
| Jobs sending emails are retried manually in handle().
| Number of retries is set in each job class.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class ChangeAliasesColumnInMailboxesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('mailboxes', function (Blueprint $table) {
// https://github.com/freescout-helpdesk/freescout/issues/3525
$table->text('aliases')->nullable()->change();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{

}
}
2 changes: 1 addition & 1 deletion resources/views/mailboxes/update.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<div class="col-sm-6">
<div class="flexy">
<input id="aliases" type="text" class="form-control input-sized" name="aliases" value="{{ old('aliases', $mailbox->aliases) }}" maxlength="255">
<input id="aliases" type="text" class="form-control input-sized" name="aliases" value="{{ old('aliases', $mailbox->aliases) }}">

<i class="glyphicon glyphicon-info-sign icon-info" data-toggle="popover" data-trigger="hover" data-html="true" data-placement="left" data-content="{{ __('Aliases are other email addresses that also forward to your mailbox address. Separate each email with a comma.') }}&lt;br&gt;&lt;br&gt;[email protected], [email protected]({{ __('Mailbox Name') }}), [email protected]"></i>
</div>
Expand Down

0 comments on commit de643ee

Please sign in to comment.