==================================================================
Please DO NOT REPLY to this mail or send email to the developers
about this bug. Please follow-up to Bugzilla using this link:
http://bugs.contribs.org/show_bug.cgi?id=8776
Have you checked the Frequently Asked Questions (FAQ)?
http://wiki.contribs.org/SME_Server:Documentation:FAQ
Please also take the time to read the following useful guide:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================
Bug ID: 8776
Summary: Manually setting a virtual domain sender address only
works with en-us From: keyword
Classification: Contribs
Product: SME Contribs
Version: 9.0
Hardware: ---
OS: ---
Status: CONFIRMED
Severity: normal
Priority: P3
Component: smeserver-vacation
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
DESCRIPTION
===========
The From: header field part of the first line in the (default) vacation message
is getting localized (eg. to a German "Von:" if locale is set to de_DE.UTF-8,
or to "De:" when using French ), which leads to the line not being recognized
as a proper mail header field. This is especially irritating if a user choses
to replace the default domain part of the sender address with a valid virtual
domain name defined on the domains panel in server manager.
REPRODUCE
=========
Installed version from smetest: smeserver-vacation-1.1-4.el6.sme.noarch
Did some testing in the server-manager vacation panel and can confirm that
manually setting a virtual domain sender address in the first line of the
message only works with the english "From:" but not with the localised "Von:",
"De:" or whatever. In the latter case, the auto-reply mail's sender address is
still the primary domain.
Tests and results when sending a mail to "user@virtualdomain" (using the German
"Von:", in the French it would be "De:"):
a) default vacation message, first line reads "Von: user@primarydomain"
-> autoreply sender is "user@primarydomain" (expected, but not what we want)
b) customized vacation message, first line reads "Von: user@virtualdomain"
-> autoreply sender is "user@primarydomain" (not what we want)
c) customized vacation message, first line reads "From: user@virtualdomain"
(note the English wording "From:)
-> autoreply sender is "user@virtualdomain" (that's what we want to see)
BACKGROUND
==========
In http://tools.ietf.org/html/rfc5322#section-3.6 valid header field names for
email messages are defined.
According to `man vacation`, header and body of the vacation message have to be
separated by a blank line. The minimum requirement for the header part is a
"Subject:" line. With only a subject line present, the sender adress will be
determined automatically ie. the "From:" header of the final auto-reply message
is set based on the user account sending the reply; on SME this resolves to
"user@primarydomain".
The "From:" field can be overridden in the vacation message by inserting a
custom value (eg. "From: user@virtualdomain") into the header of the vacation
message.
A localised version of the "From:" header (eg. "Von: user@virtualdomain" or
"De: user@virtualdomain") will rightfully be ignored (because "Von:" and "De:"
are not valid header fields defined in RFC5322) and the default address
("user@primarydomain") will be used instead.
DISCUSSION / POSSIBLE FIXES
===========================
a) Do not show a "From:" header in the default vacation message at all.
Instead, provide instructions to the user on how to _add_ a custom "From:" line
to the message header part (instead of modifying the existing one), stating
clearly that the word "From:" must not be translated (IIRC, the "Subject:"
field is also not translated) and that the domain part of the sender address
has to be a valid one.
b) The mechanism for localizing the "From:" header could be eliminated from
/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/uservacations.pm by
changing all appearances of
my $from = $self->localise('FROM');
to
my $from = 'FROM';
and probably additionally eliminating
<entry>
<base>FROM</base>
<trans>From:</trans>
</entry>
in /etc/e-smith/locale/en-us/etc/e-smith/web/functions/uservacations (and the
corresponding translations).
c) ???
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/