如何在 CVS 日志信息的邮件过滤器中获取正确的用户?

发布于 2024-08-24 01:40:42 字数 196 浏览 2 评论 0原文

我的 Unix 机器上有一个 CVS 用户 (cvs),我通过 CVSROOT/passwd 将所有 CVS 用户映射到该用户。当我执行此操作时,所有邮件均由用户 cvs 发送。我想在邮件主题中显示提交者的姓名(甚至作为邮件的发件人)。

除了创建真正的 Unix 用户还有其他方法吗?

I have a single CVS user (cvs) on my Unix box and I map all CVS users to this user via CVSROOT/passwd. When I do this, all mails are sent by the user cvs. I'd like to show the name of the committer in the mail subject (or even as the sender of the mail).

Is there any other way than creating a real Unix user?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

粉红×色少女 2024-08-31 01:40:43

CVS 会将提交用户名放入变量 $USER 中,您可以在文件 loginfo 中使用该变量来调用邮件过滤器。

CVS will put the commit user name into the variable $USER which you can use in the file loginfo to call your mail filter.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文