Opened on 09/13/2016 at 05:30:31 PM

Closed on 01/17/2019 at 09:15:41 PM

#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.

Attachments (0)

Change History (3)

comment:1 Changed on 09/13/2016 at 05:36:21 PM by kvas

  • Blocking 4422 added

comment:2 Changed on 01/17/2019 at 09:15:26 PM by rhowell

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

comment:3 Changed on 01/17/2019 at 09:15:41 PM by rhowell

  • Resolution set to invalid
  • Status changed from new to closed

Add Comment

Modify Ticket

Change Properties
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none).
 
Note: See TracTickets for help on using tickets.