From 88f24642bd789ac41a86fe34ffe469cf9f0521a3 Mon Sep 17 00:00:00 2001 From: Joachim Filip Ignacy Bartosik Date: Fri, 6 Aug 2010 17:18:21 +0200 Subject: Email answers allow checking signatures Use Mail gem for receiving emails. Changed fixture email question to require a valid signature. Tests for signatures validation. --- db/fixtures/questions-email.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'db') diff --git a/db/fixtures/questions-email.yml b/db/fixtures/questions-email.yml index 6ad2d95..6a4a64b 100644 --- a/db/fixtures/questions-email.yml +++ b/db/fixtures/questions-email.yml @@ -3,12 +3,13 @@ email_q1: documentation: question_category: ebuild content: "Email a major eclass change announcement. Replace all - @gentoo.org addresses with @localhost addresses. + @gentoo.org addresses with @localhost addresses. Remember to sign the email. The from field should match email you set in the application. \n\nTo configure postfix use for example recruiting: \n\n gentoo-dev-announce: | \"curl -F 'email=<-' http://localhost:3000/users/receive_email\" \n gentoo-dev: /dev/null \n\nin /etc/mail/aliases." - req_text: 'To : gentoo-dev-announce@localhost - To : gentoo-dev@localhost - Reply-to : gentoo-dev@localhost' + req_text: "To : gentoo-dev-announce@localhost\n + To : gentoo-dev@localhost\n + Reply-to : gentoo-dev@localhost\n + Signatures : signature" -- cgit v1.2.3-65-gdbad