full way to configure bzr-email

Asked by Yura Tolstik

maybe I will probably incorrectly configured this plugin, but i have some trouble:
emails not sended.
how can i debug this plugin for seen as a mistake?

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Yura Tolstik
Solved:
Last query:
Last reply:
Revision history for this message
Yura Tolstik (yltsrc) said :
#1

ubuntu 8.04
installed bzr, bzr-email with dependencies from repository

Revision history for this message
John A Meinel (jameinel) said :
#2

Did you check "bzr help email" for information on how to configure the plugin?

You need to have "post_commit_to = Email <email address hidden>" set in either ~/.bazaar/bazaar.conf (to send an email for any commit to any branch), or you can set it in ~/.bazaar/locations.conf to customize it based on path.

You can also run "bzr plugins" to make sure that the email plugin is being found (also 'bzr help email' will fail if it is not.)

You didn't give a lot of information about "how can I debug". If you are familiar with python, you can also use lines like:

import pdb; pdb.set_trace()

in the python code, to drop you into the command line debugger when that line is reached.

Revision history for this message
Yura Tolstik (yltsrc) said :
#3

ok
my locations.conf:
[/home/yura/test/dir/test]
push_location = file:///home/yura/test/
push_location:policy = norecurse
post_commit_to = Tolstik Yura <yura@localhost>
post_commit_sender = Tolstik Yura <yura@localhost>

i am do:
sudo dpkg-reconfigure exim4-config
Stopping MTA for restart: exim4_listener.
Restarting MTA: exim4.

bzr init www
cd www
touch qwerty
bzr add qwerty
bzr commit -m "added qwerty"

i can see:
Committing to: /home/yura/www/
added qwerty
Committed revision 1.

and no message in inbox

Revision history for this message
Yura Tolstik (yltsrc) said :
#4

thanks
i am configure repository path
and mail can sent :)

Revision history for this message
Yura Tolstik (yltsrc) said :
#5

i think in help should be added this strings with config:
[/path/to/repository]
post_commit_to = Anonymous <example@localhost>
post_commit_sender = Anonymous <example@localhost>