[Libreoffice-qa] attachments and FR BSA
Robinson Tryon
bishop.robinson at gmail.com
Thu Aug 8 10:28:38 PDT 2013
On Thu, Aug 8, 2013 at 1:11 PM, Sophie <gautier.sophie at gmail.com> wrote:
>
> So the reporter just sent a mail to the list that he didn't find how to
> attach a document to the form. I can't test this evening but will do
> tomorrow and send you my feedback.
I just took a quick look at the BSA code, and it looks like the
attachment isn't making it into the email:
https://github.com/tdf/www-bugassistant/blob/master/bug/bug.js
---
state_submit: function() {
// blah, blah, blah
// blah, blah, blah
if ($.bug.BSALang == 'en') {
form.attr('action', $.bug.url + '/post_bug.cgi');
} else {
// blah, blah, blah
form.attr('action', locarray.join("/") + '/mail.php');
---
Because the BSA is only in EN and FR right now, mail.php is customized
just for French. It looks like we're currently just including a few of
the fields in the email, and no attachments:
https://github.com/tdf/www-bugassistant/blob/master/bug/mail.php
---
$body = "Bonjour,\n\nIl y a une nouvelle soumission de bug déposée en
français. L'un d'entre vous peut-il le confirmer ou le traduire pour
nous.\n\n";
$body = $body."Composant: ".check_input($_POST["component"])."\n";
$body = $body."Version: ".check_input($_POST["version"])."\n";
$body = $body."Keywords: ".check_input($_POST["keywords"])."\n";
$body = $body."Sujet: ".check_input($_POST["short_desc"])."\n";
$body = $body."Description longue: ".check_input($_POST["comment"])."\n";
$body = $body."\n\nMerci de nous aider,\nBSA";
---
>
> Thanks for your quick answer :)
you're welcome -- thanks for testing-out the BSA mail-to-list implementation :-)
Looks like we need to do something about attachments (either add
support for them in mail.php or disable that part of the form for the
FR BSA). Thoughts?
--R
More information about the Libreoffice-qa
mailing list