svn邮件通知功能,可以特定字符串发送邮件功能

扩展性:所有你可以想到的地方
所需:
msmtp使用特定邮箱地址发邮件-Mutt协作篇》,请安装了sendmail、mutt、msmtp服务
以为是为了适合我们公司的一些特性,所以在构建邮件配置列表的时候需要手动,或者修改一下php代码。
思路:通过输入特殊的字符串来操作特殊的功能,比如需要通知QA的的提交,则只需在提交信息内输入 " mailtoqa ”,(mailtoqa两侧有空格),也就是说你可以通过这个方法在svn提交操作上做很多你想要去实现的功能。
难点:在svn提交的信息,通过post-commit来获取后,内容都变成ASCII码,需要转换一下![非常感谢
@zeal 帮助]
—-为了偷懒我用php来获取svn访问控制列表内组的用户,然后写如到通知列表
转码部分:@zeal提供部分

我稍微修改了一下,增加了对字符等一下字符的处理,不然会出现“?”

POST-COMMIT内容“shell方法”

php文件内容:配置文件

php文件内容:写入邮件列表文件/处理邮箱后缀等

写的可能很多不组,还请见谅啊,实在没时间去优化更好!

- THE END -
版权声明:
转载原创文章请注明,文章出处://kinggoo.com
原文地址:https://kinggoo.com/app-svnmailhooks.htm
发表评论?

8 条评论。

  1. Hello, just wanted to mention, I loved this blog post.
    It was inspiring. Keep on posting!

  2. Hey there I am so glad I found your blog,
    I really found you by mistake, while I was looking on Aol for something else,
    Anyhow I am here now and would just like to say many thanks for a marvelous post and a all round enjoyable
    blog (I also love the theme/design), I don’t have time to look over it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read much more, Please do keep up the fantastic work.

  3. I’m extremely impressed together with your writing talents and also with the layout on your weblog. Is that this a paid subject or did you modify it yourself? Anyway keep up the nice high quality writing, it’s rare to look a great blog like this one these days.
    .

  4. Have you ever considered creating an e-book or guest authoring on other websites?
    I have a blog based upon on the same information you
    discuss and would really like to have you share some
    stories/information. I know my audience would appreciate your work.
    If you are even remotely interested, feel free to shoot me an e mail.

  5. What’s up to all, how is everything, I think every one is getting more from this site, and your views are good for new viewers.

  6. Wow, fantastic blog layout! How long have you been blogging for?

    you make blogging look easy. The overall look of your web
    site is wonderful, let alone the content!

发表评论


此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据