Here is my use case.

1. User VisualSVN account login names are the same as the email address. 
Example: john.doe is the login name, john....@example.com is the email 
address

2. Users only want the email notifications of their commits.

3. The hook parameter [ --from $(author)@example.com ] translates to [ 
--from john....@example.com ] as expected. But [ --to $(author)@example.com 
] does not translates to [ --to john....@example.com ].
     I can $(author) with [ --from ] but not with [ --to ].

Need a solution for the proper way to address parameter [ --to 
$(some-value)@example.com ] because $(author) does not work. When I use an 
email address like [ --to jane.doe@example ], the notification is sent.
Is there some way to set a variable=value at the beginning of the hook, ie 
SEND_USER=$(author)




On Monday, December 24, 2018 at 9:22:37 AM UTC-5, pavel.lyalyakin wrote:
>
> Hello,
>
> Could you please tell us more how sending the commit notification email to 
> the commit's author only will help you? We want to understand your case. 
> BTW, what error do you receive now when you use the  *--to 
> $(author)@example.com <http://example.com>* option?
>
> On Wed, Dec 19, 2018 at 6:57 AM <tekk...@gmail.com <javascript:>> wrote:
>
>> Here is my post-commit.cmd hook:
>>
>> "%VISUALSVN_SERVER%\bin\VisualSVNServerHooks.exe" ^
>>     commit-notification "%1" -r %2 ^
>>     --from $(author)@example.com --to myn...@example.com <javascript:> ^
>>     --smtp-server smtp.example.com
>>
>> In the script $(author) converts to myname and myname is what I use to 
>> authenticate. No problems here. I receive the email to myn...@example.com 
>> <javascript:>. I tried to use $(author) as the --to value and the hook 
>> fails. How can I configure the hook to use myname as the --to value 
>> without using myn...@example.com <javascript:>. Is there another way to 
>> use the $(author) variable?
>>
>> So what I really want the --from and --to line to look like is the 
>> following below.
>>
>> But it doesn't work.
>>
>> --from $(author)@example.com --to $(author)@example.com
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "VisualSVN" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to visualsvn+...@googlegroups.com <javascript:>.
>> To post to this group, send email to visu...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/visualsvn.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> With best regards,
> Pavel Lyalyakin
> VisualSVN Team
>

-- 
You received this message because you are subscribed to the Google Groups 
"VisualSVN" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to visualsvn+unsubscr...@googlegroups.com.
To post to this group, send email to visualsvn@googlegroups.com.
Visit this group at https://groups.google.com/group/visualsvn.
For more options, visit https://groups.google.com/d/optout.

Reply via email to