Hello,
Am Donnerstag, 17. Mai 2012 schrieb Tanstaafl:
> On 2012-05-15 4:46 PM, David Goodwin <da...@co...> wrote:
> > I suspect you'd actually want to make it become :
> >
> > my $from = "$name<$email>";
> >
> > But I don't know for certain.
>
> I checked and there is no $name variable defined in the script... so,
> any idea/suggestion for how to properly set it?
As you already found out, you have to read it from the mailbox table.
> Another thing is, the name should be in double quotes, and the email
> should be in <> brackets, so how to properly accomplish that?
Add the quotes and <...> ;-)
Strictly speaking, the quotes around the name are not always needed, but
I don't know the details. (Maybe they are needed if the name contains <
or >.) Additionally, you'll need to encode non-ASCII names (similar to
how the subject is (hopefully - I didn't check the code) encoded).
Please also make sure that the From still looks good when no realname is
specified - don't add empty quotes or <...> in this case.
You'll probably have to read a RFC to find out the 100% correct way.
Or find a perl module that does the job for you ;-)
Please also make this behaviour configureable ("our $add_realname = 1;")
- sometimes, I "abuse" the name field and enter some internal notes that
shouldn't be public...
Regards,
Christian Boltz
--
Sometimes I feel that using osc (and OBS) is like driving an alien
space ship, full of nice features, but I cannot read the manual ;-)
[Filipe in opensuse-packaging]
|