Opened 3 years ago

Closed 11 months ago

#4421 closed change (invalid)

Migrate eyeo.com to "formmail2"

Reported by: kvas Assignee:
Priority: Unknown Milestone:
Module: Infrastructure Keywords:
Cc: matze Blocked By:
Blocking: #4413, #4422 Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Background

See #4413. This is step 1.

What to change

The current configuration of the multiplexer for eyeo.com is as follows:

[DEFAULT]
mailer=/usr/sbin/sendmail
[multiplexer]
sitescripts.formmail.web.formmail =
[formmail]
template=formmail/template/eyeo.mail

To convert it to formmail2 we need to (a) change the configuration and (b) add the email template for sending the email to infrastructure (since formmail2 approach is that the template is part of the website and not part of sitescripts).

The new configuration would be as follows:

[DEFAULT]
mailer=/usr/sbin/sendmail
[multiplexer]
sitescripts.formmail.web.formmail2 =
[formmail2]
contact-form.url=/formmail
contact-form.template=formmail/template/eyeo-contact-form.mail
contact-form.name=mandatory
contact-form.email=mandatory, email
contact-form.email.mandatory=No email address entered
contact-form.subject=mandatory
contact-form.message=mandatory

The template should be placed into sitescripts/formmail/template/eyeo-contact-form.mail. It's content should be adapted to the way formmail2 passes the fields to the template:

To: info@eyeo.com
From: donotreply@adblockplus.org
Reply-To: {{(fields.name,fields.email)|emailaddr|mime}}
Subject: {{fields.subject|mime}} (via Contact form)
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="UTF-8"

On {{time.strftime('%d/%m/%y %H:%M')}}, {{(fields.name,fields.email)|emailaddr}} wrote:

{{fields.message}}

Note: sitescripts autoupdates itself using Mercurial. This process adds a new file to a directory inside sitescripts. We need to make sure the autoupdate process would not touch this file.

Change History (3)

comment:1 Changed 3 years ago by kvas

  • Blocking 4422 added

comment:2 Changed 11 months ago by rhowell

Since we no longer use web.eyeo.com, this ticket is no longer relevant. Closing it.

comment:3 Changed 11 months ago by rhowell

  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.