Re: How to use /makeparents command to create intermediate folders using SVN batch command.

2016-12-12 Thread Daniel Shahaf
siddharth Goel wrote on Fri, Dec 09, 2016 at 20:53:58 +0530:
> Could someone  please help me out with this?

This is the mailing list for the Subversion core libraries.  You should
ask your question on the mailing list for TortoiseSVN:

https://tortoisesvn.net/community.html

Good luck,


Re: post-commit hook

2016-12-12 Thread Daniel Shahaf
João M. S. Silva wrote on Fri, Dec 09, 2016 at 02:47:26 +:
> This has worked for years.
> 
> However, recently I get this error:
> 
>   smtplib.SMTPException: SMTP AUTH extension not supported by server
> 
> Searching for a solution, it seems we have to run "starttls" before
> "ehlo", but I don't think I can change that, the way I'm running it.

Didn't you ask this on IRC not long ago?

Whether the SMTP AUTH extension is offered on a plain connection before
STARTTLS is not universal; that depends on the SMTP server.

I would advise you to review your provider's SMTP setup documentation.
If they have made a change, it should be reflected there.  Once you've
determined what authentication your provider requires, we can see how to
configure mailer.py for it.

Cheers,

Daniel


Re: post-commit hook

2016-12-12 Thread João M . S . Silva

No. Nothing has changed on the Gmail side, as far as I know.

Thanks.

João M. S. Silva

On 12/12/2016 07:24 AM, Eric Johnson wrote:

By any chance does the gmail account in question now have two factor
authentication turned on?

Eric

Sent from my iPad


On Dec 11, 2016, at 6:21 PM, João M. S. Silva  
wrote:

[I'm not subscribed to the list, please CC me.]

Hi,

I have been using subversion-tools to send post-commit e-mails. I use
the mailer.py and mailer.conf.example to create my own configuration
file. This has worked for years.

However, recently I get this error:

  smtplib.SMTPException: SMTP AUTH extension not supported by server

Searching for a solution, it seems we have to run "starttls" before
"ehlo", but I don't think I can change that, the way I'm running it.

I'm simply calling mailer.py with the correct configuration file. I
checked if my configuration file was up to date (comparing with the one
from the subversion-tools package) and it is.

So, the problem should be inside subversion-tools, right?

I'm sending the post-commit e-mail through Gmail, so maybe some recent
change in Gmail's server could also be the culprit?

Thanks.

--
João M. S. Silva


Re: post-commit hook

2016-12-12 Thread João M . S . Silva

Didn't you ask this on IRC not long ago?


Yes, but there was no answer. Now that you mention it, I suppose someone 
answered while my computer was sleeping/suspended and logged out from IRC?



Whether the SMTP AUTH extension is offered on a plain connection before
STARTTLS is not universal; that depends on the SMTP server.

I would advise you to review your provider's SMTP setup documentation.
If they have made a change, it should be reflected there.  Once you've
determined what authentication your provider requires, we can see how to
configure mailer.py for it.


I just checked Gmail's SMTP settings and they seem the same:

smtp.gmail.com
Requires SSL: Yes
Requires TLS: Yes (if available)
Requires Authentication: Yes
Port for SSL: 465
Port for TLS/STARTTLS: 587
Full Name or Display Name   Your name
Account Name, User name, or Email address   Your full email address

Here is my mailer.conf:

$ grep -v ^# mailer.conf|grep -v ^$
[general]
smtp_hostname = smtp.gmail.com:587
smtp_username = joao.m.santos.si...@gmail.com
smtp_password = 
smtp_use_ssl = true
[defaults]
diff = /usr/bin/diff -u -L %(label_from)s -L %(label_to)s %(from)s %(to)s
commit_subject_prefix =
propchange_subject_prefix =
lock_subject_prefix =
unlock_subject_prefix =
from_addr = joao.m.santos.si...@gmail.com
to_addr = joao.m.santos.si...@gmail.com
reply_to =
generate_diffs = add copy modify
show_nonmatching_paths = yes
[maps]

My mailer.py is equal to the one in 
/usr/share/subversion/hook-scripts/mailer/mailer.py.


Thanks.

João M. S. Silva


Re: post-commit hook

2016-12-12 Thread Daniel Shahaf
João M. S. Silva wrote on Tue, Dec 13, 2016 at 00:14:56 +:
> >Didn't you ask this on IRC not long ago?
> 
> Yes, but there was no answer. Now that you mention it, I suppose someone
> answered while my computer was sleeping/suspended and logged out from IRC?

Yes, someone left a reply on the channel bot for you to see the next
time you logged in.

> Here is my mailer.conf:
> 
> $ grep -v ^# mailer.conf|grep -v ^$
> [general]
> smtp_hostname = smtp.gmail.com:587
> smtp_username = joao.m.santos.si...@gmail.com
> smtp_password = 
> smtp_use_ssl = true

"smtp_use_ssl" is not a mailer.py configuration knob.

Try this patch, after configuring port 465 in the .conf file:

Index: mailer.py
===
--- mailer.py   (revision 1771121)
+++ mailer.py   (working copy)
@@ -291,7 +291,7 @@ class SMTPOutput(MailedOutput):
 self.write(self.mail_headers(group, params))
 
   def finish(self):
-server = smtplib.SMTP(self.cfg.general.smtp_hostname)
+server = smtplib.SMTP_SSL(self.cfg.general.smtp_hostname)
 if self.cfg.is_set('general.smtp_username'):
   server.login(self.cfg.general.smtp_username,
self.cfg.general.smtp_password)

It can't be committed as-is, but it might get your setup working.
(Modulo certificate verification defaults...)

https://docs.python.org/3/library/smtplib#smtplib.SMTP_SSL