You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Trac DefaultCcPlugin配置选项及trac.ini启用配置咨询

Configuring DefaultCcPlugin in Trac's trac.ini

Hey there! Let's walk through exactly what you need to add or edit in your trac.ini file to get the DefaultCcPlugin up and running smoothly in your Trac project.

1. First, Enable the Plugin

Before any of the CC rules take effect, you have to activate the plugin itself. Add or update the [components] section like this:

[components]
defaultcc.* = enabled

This tells Trac to load all components of the DefaultCcPlugin.

2. Core Configuration (Must-Haves)

Next, add a dedicated [defaultcc] section to define your automatic CC rules. These are the essential options to start using the plugin:

  • Global default CCs for all new tickets
    Use the default_cc key to list comma-separated usernames that should be automatically added to the CC list of every new ticket:

    [defaultcc]
    default_cc = jdoe, smith, trac_admin
    

    Pro tip: Double-check that these are valid, active user accounts in your Trac instance.

  • Type-specific default CCs (Optional but highly useful)
    If you want different CC lists for different ticket types (like bugs vs. enhancements), add type-specific entries:

    [defaultcc]
    default_cc.bug = bug_triage_team, qa_user
    default_cc.enhancement = feature_devs, product_owner
    

    Now, only tickets of the specified type will get those targeted CCs added automatically.

  • Keep default CCs on ticket updates
    If you want to ensure your default CC users stay on the ticket's CC list even if someone removes them during an update, enable inheritance:

    [defaultcc]
    inherit_cc = true
    

    This guarantees your default CCs are always included for follow-up comments, status changes, or other ticket updates.

3. Optional Tweaks for More Control

If you want to fine-tune the plugin's behavior, these extra settings can help:

  • Exclude specific users from default CCs
    If there are users you don't want added as default CC (even if they're in the global list), use:

    [defaultcc]
    exclude_cc = spammer_user, temp_intern
    
  • Only apply defaults when no CCs are set
    If you want the plugin to only add default CCs when the ticket creator doesn't specify any CCs themselves, set:

    [defaultcc]
    only_if_empty = true
    

Once you've made these changes, save trac.ini and restart your Trac server for the settings to take effect. Test by creating a new ticket—you should see your default CC users populated automatically!

内容的提问来源于stack exchange,提问作者Deshani Tharaka

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 06:34:09