Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collector : can now specify where the requester's email is found #4554

Merged

Conversation

AdrienClairembault
Copy link
Contributor

@AdrienClairembault AdrienClairembault commented Aug 30, 2018

'from' : current behavior
'reply-to' : use the email found in the 'reply-to' header

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -

'from' : current behavior
'reply-to' : use the email found in the 'reply-to' header
Copy link
Contributor

@orthagh orthagh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As seen together, the field is poorly named
Suggestion: requester_field

@orthagh
Copy link
Contributor

orthagh commented Sep 4, 2018

Same for the label.
Suggestion: "field for requester"

@@ -4292,6 +4292,7 @@ CREATE TABLE `glpi_mailcollectors` (
`errors` int(11) NOT NULL DEFAULT '0',
`use_mail_date` tinyint(1) NOT NULL DEFAULT '0',
`date_creation` datetime DEFAULT NULL,
`caller_location` enum('from', 'reply-to') NOT NULL DEFAULT 'from',
Copy link
Contributor

@orthagh orthagh Sep 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use enum, two possibility:

  • integer with const in MailCollector class for values (prefered method)
  • direct varchar

@orthagh
Copy link
Contributor

orthagh commented Sep 4, 2018

BTW, functional tests : OK

@AdrienClairembault AdrienClairembault changed the title Collector : can now specify where the caller's email is found Collector : can now specify where the requester's email is found Sep 5, 2018
@@ -61,6 +61,12 @@ function update93to94() {
}
/** /Add default group for a user */

/** Add caller location on glpi_mailcollectors */
if (!$DB->fieldExists('glpi_mailcollectors', 'requester_field')) {
$migration->addField("glpi_mailcollectors", "requester_field", "int(11) NOT NULL DEFAULT '0'");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use "integer" automatic type instead of full declaration

inc/mailcollector.class.php Show resolved Hide resolved
@trasher trasher merged commit 20bc633 into glpi-project:master Sep 6, 2018
AdrienClairembault added a commit to AdrienClairembault/glpi that referenced this pull request May 14, 2020
AdrienClairembault added a commit to AdrienClairembault/glpi that referenced this pull request May 14, 2020
AdrienClairembault added a commit to AdrienClairembault/glpi that referenced this pull request May 14, 2020
AdrienClairembault added a commit to AdrienClairembault/glpi that referenced this pull request May 14, 2020
@AdrienClairembault AdrienClairembault deleted the feature/collector-reply-to branch October 4, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants