Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

Update postfix headers #771

Merged
merged 12 commits into from
Mar 5, 2021
Merged

Update postfix headers #771

merged 12 commits into from
Mar 5, 2021

Conversation

jtotoole
Copy link
Contributor

Message-Id + Date are now working in my testing. I can't get List-Unsubscribe to show up despite having followed the guidance at these links:

https://blog.mailtrap.io/list-unsubscribe-header/
https://www.reddit.com/r/postfix/comments/a8p1m7/custom_header/eccyorb?utm_source=share&utm_medium=web2x&context=3

I've been banging my head against this for a while, so if you've got any ideas about the List-Unsubscribe header thing, that'd be great. I'm also fine with just forgetting about it given that our updated messages seem no longer to be flagged as spam.

@jtotoole jtotoole requested a review from pypt February 18, 2021 18:48
@jtotoole jtotoole changed the title Update postfix headers [WIP] Update postfix headers Feb 18, 2021
@jtotoole jtotoole marked this pull request as draft February 18, 2021 18:52
@pypt
Copy link
Contributor

pypt commented Feb 18, 2021

Is this ready for review? I see the CI failing for whatever reason.

@@ -5,7 +5,10 @@
FROM gcr.io/mcback/common:latest

# Install Java
RUN apt-get -y --no-install-recommends install openjdk-8-jre-headless
RUN \
apt-get update && \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a quick -y flag here, as in apt-get -y update? The update sub-command typically doesn't ask for questions but it might (I suppose), or (maybe) I have even seen it asking me for something, so it wouldn't hurt to have a -y here just like everywhere else.

@jtotoole jtotoole changed the title [WIP] Update postfix headers Update postfix headers Feb 19, 2021
@jtotoole jtotoole marked this pull request as ready for review February 19, 2021 20:02
@jtotoole
Copy link
Contributor Author

Headers looking good now:

Screen Shot 2021-02-19 at 3 11 32 PM

@jtotoole
Copy link
Contributor Author

The failing test here is related to Brandwatch:

https://github.com/mediacloud/backend/pull/771/checks?check_run_id=1938298020#step:16:2177

I don't think it's related to any of my changes, but I can take a stab at fixing it before merging if you'd like.

Copy link
Contributor

@pypt pypt left a comment

Choose a reason for hiding this comment

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

Thank you James, nitpicked this a little bit!

@@ -5,7 +5,10 @@
FROM gcr.io/mcback/common:latest

# Install Java
RUN apt-get -y --no-install-recommends install openjdk-8-jre-headless
RUN \
apt-get update && \
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a quick -y flag here, as in apt-get -y update? The update sub-command typically doesn't ask for questions but it might (I suppose), or (maybe) I have even seen it asking me for something, so it wouldn't hurt to have a -y here just like everywhere else.

@jtotoole
Copy link
Contributor Author

alrighty, i think all set (save for adding the MC_UNSUBSCRIBE_MAILTO_LINK var in production)

Copy link
Contributor

@pypt pypt left a comment

Choose a reason for hiding this comment

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

Just a quick rename / unify naming if you may.

@pypt pypt merged commit 144cc3e into master Mar 5, 2021
@pypt pypt deleted the jot-update-postfix branch March 5, 2021 15:30
@pypt
Copy link
Contributor

pypt commented Mar 5, 2021

All good now, thank you James!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants