You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Jerry M <te...@malcolms.com> on 2010/08/16 06:47:37 UTC
Subclassing DKIMSign mailet
Stephano,
I need to have separate private keys for DKIM for different domains that
I host on my server. I plan to create a database table that looks up
the private key based on the domain. I figured I could subclass your
DKIMSign mailet, override the service method, set the privateKey and
signatureTemplate variables and then call the parent service method.
But it turns out that the privateKey and signatureTemplate variables are
scoped to 'private'. I know I can just clone the entire method or even
the entire java class file. But I'd much prefer to inherit everything
other than that one little change I need. But I can't do it with
private scope on the key and template.
Any chance I could get you to change the scope of those variables to
protected so they would be accessible to subclasses the next time you're
in that file?
Thanks.
Jerry
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Subclassing DKIMSign mailet
Posted by Norman Maurer <no...@apache.org>.
Hi Jerry,
just create a jira ticket for it. I'm sure we can get rid of it ;)
Bye.
Norman
2010/8/16 Jerry M <te...@malcolms.com>:
> Stephano,
>
> I need to have separate private keys for DKIM for different domains that I
> host on my server. I plan to create a database table that looks up the
> private key based on the domain. I figured I could subclass your DKIMSign
> mailet, override the service method, set the privateKey and
> signatureTemplate variables and then call the parent service method. But it
> turns out that the privateKey and signatureTemplate variables are scoped to
> 'private'. I know I can just clone the entire method or even the entire
> java class file. But I'd much prefer to inherit everything other than that
> one little change I need. But I can't do it with private scope on the key
> and template.
>
> Any chance I could get you to change the scope of those variables to
> protected so they would be accessible to subclasses the next time you're in
> that file?
>
> Thanks.
>
> Jerry
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Subclassing DKIMSign mailet
Posted by Norman Maurer <no...@apache.org>.
Hi,
here ya go
https://issues.apache.org/jira/browse/JDKIM
Bye,
Norman
2010/8/16 Jerry M <te...@malcolms.com>:
> Thanks. Could you give me a link to info on how to open a jira ticket?
>
> Jerry
>
> On 8/16/2010 3:45 AM, Norman Maurer wrote:
>>
>> Hi Jerry,
>>
>> just create a jira ticket for it. I'm sure we can get rid of it ;)
>>
>> Bye.
>> Norman
>>
>> 2010/8/16 Jerry M<te...@malcolms.com>:
>>>
>>> Stephano,
>>>
>>> I need to have separate private keys for DKIM for different domains that
>>> I
>>> host on my server. I plan to create a database table that looks up the
>>> private key based on the domain. I figured I could subclass your
>>> DKIMSign
>>> mailet, override the service method, set the privateKey and
>>> signatureTemplate variables and then call the parent service method. But
>>> it
>>> turns out that the privateKey and signatureTemplate variables are scoped
>>> to
>>> 'private'. I know I can just clone the entire method or even the entire
>>> java class file. But I'd much prefer to inherit everything other than
>>> that
>>> one little change I need. But I can't do it with private scope on the
>>> key
>>> and template.
>>>
>>> Any chance I could get you to change the scope of those variables to
>>> protected so they would be accessible to subclasses the next time you're
>>> in
>>> that file?
>>>
>>> Thanks.
>>>
>>> Jerry
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>>> For additional commands, e-mail: server-user-help@james.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org
Re: Subclassing DKIMSign mailet
Posted by Jerry M <te...@malcolms.com>.
Thanks. Could you give me a link to info on how to open a jira ticket?
Jerry
On 8/16/2010 3:45 AM, Norman Maurer wrote:
> Hi Jerry,
>
> just create a jira ticket for it. I'm sure we can get rid of it ;)
>
> Bye.
> Norman
>
> 2010/8/16 Jerry M<te...@malcolms.com>:
>> Stephano,
>>
>> I need to have separate private keys for DKIM for different domains that I
>> host on my server. I plan to create a database table that looks up the
>> private key based on the domain. I figured I could subclass your DKIMSign
>> mailet, override the service method, set the privateKey and
>> signatureTemplate variables and then call the parent service method. But it
>> turns out that the privateKey and signatureTemplate variables are scoped to
>> 'private'. I know I can just clone the entire method or even the entire
>> java class file. But I'd much prefer to inherit everything other than that
>> one little change I need. But I can't do it with private scope on the key
>> and template.
>>
>> Any chance I could get you to change the scope of those variables to
>> protected so they would be accessible to subclasses the next time you're in
>> that file?
>>
>> Thanks.
>>
>> Jerry
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
>> For additional commands, e-mail: server-user-help@james.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
> For additional commands, e-mail: server-user-help@james.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org