Trac DefaultCcPlugin配置选项及trac.ini启用配置咨询
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 thedefault_cckey to list comma-separated usernames that should be automatically added to the CC list of every new ticket:[defaultcc] default_cc = jdoe, smith, trac_adminPro 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_ownerNow, 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 = trueThis 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_internOnly 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

