[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Make mailer.py send to NNTP and match logmsg on regex

From: Jon Bendtsen <jbendtsen_at_laerdal.dk>
Date: Thu, 16 Apr 2009 13:19:33 +0200

On 16/04/2009, at 13.05, Lars Gullik Bjønnes wrote:

> Jon Bendtsen <jbendtsen_at_laerdal.dk> writes:
>
> | On 14/04/2009, at 19.42, Lars Gullik Bjønnes wrote:
>>
>>> This is a rather dirty patch (mailer.py did not lend itself to
>>> modifications too nicely) that adds some more config vars to the
>>> conf
>>> file:
>>>
>>> For nntp handling:
>>>
>>> nntp_hostname - the nntp server to send to
>>> to_group - the newsgroup to send to
>>
> | How do i actually get it to post to a group? It just dumps to
> STDOUT.
>>
> | I tried making a map, but it still doesnt work.
>>
> | mailer.conf example(s) are wanted.
>
> In the general section:
>
> -------------------------
> [general]
>
> nntp_hostname = your.nntp.server
>
> [default]
> to_group = the.news.group.on.your.nntp.server
>
>
> -------------------------
>
> Make sure that "mail_command" and "smtp_hostname" is not set in the
> conf file.

They are not set.

frodo:/data/svn/bin/j/nntp# grep -v "#" test-mailer.conf
[general]

nntp_hostname = nntp.internal

[defaults]

to_group = test

diff = /usr/bin/diff -u -L %(label_from)s -L %(label_to)s %(from)s %
(to)s

commit_subject_prefix = [svn]

propchange_subject_prefix = [svn]

lock_subject_prefix = [svn]

unlock_subject_prefix = [svn]

generate_diffs = add copy modify

suppress_deletes = yes

show_nonmatching_paths = yes

[maps]

I run:
        ./nntp-mailer.py commit /data/svn 2343 /data/svn/bin/nntp/test-
mailer.conf
and i still get all data to stdout.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1745444
Received on 2009-04-16 14:18:32 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.