Email Hooks

John Arbash Meinel john at arbash-meinel.com
Tue Aug 26 14:15:53 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russel Winder wrote:
> On Mon, 2008-08-25 at 13:14 -0500, John Arbash Meinel wrote:
> 
>> Russel Winder wrote:
>>> Is there somewhere an idiots guide to setting up an email hook on a
>>> branch?  I have tried searching Google and reading the result of "bzr
>>> help email" but I am really none the wiser as to what to actually do.
>>>
>> As for the other part. It is generally setting:
>>
>> post_commit_to = Mailing List <mailinglist at example.com>
>>
>> In your ~/.bazaar/locations.conf for whatever branches you want to send emails
>> from.
> 
> I have a user person who owns a branch
> at /home/Bazaar/AGroovyIntroductionToJava.  In
> ~person/.bazaar/locations.conf I have:
> 
>         [/home/Bazaar/AGroovyIntroductionToJava]
>         
>         post_commit_to = person1 at place1, person2 at place2
>         
> (not the real addresses obviously :-) and in ~person/.bazaar/bazaar.conf I have:
> 
>         [DEFAULT]
>         post_commit_mailer = smtplib
>         smtp_server = localhost
> 
> though this was an experiment in case the default of trying to
> use /usr/bin/mail was failing -- I have tried with and without the
> bazaar.conf file.
> 
> I have tried a number of pushes to bzr
> +ssh://person@dimen.russel.org.uk/home/Bazaar/AGroovyIntroductionToJava
> but none have resulted in an email being sent -- I watched the mail.log
> file and there was no attempt to send email.
> 
> Is there any way of testing the email hook stuff?  Is it obvious what I
> am doing wrong?
> 

If you are pushing to "bzr+ssh://..." I believe you need:

[bzr+ssh://person@host/home/Bazaar/...]

Though I'm a little unclear what host you are pushing from and what host you
are hosting the branch, etc.

Also, at least the default email plugin only sends a notification on "commit"
not on every push. However, I think someone has a branch that sends an email
any time the branch tip changes.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFItAIJJdeBCYSNAAMRAqoxAJ9z19atkAyXB7H7E3xbBnY5bxUDlACgsfiN
+zLkr5PlnrkjFOvLKaB2j/E=
=7jSE
-----END PGP SIGNATURE-----



More information about the bazaar mailing list