Skip to content

Fix milter remove_headers array handling#5673

Merged
vstakhov merged 1 commit intomasterfrom
cursor/RSP-26-fix-milter-remove-headers-array-handling-1740
Oct 9, 2025
Merged

Fix milter remove_headers array handling#5673
vstakhov merged 1 commit intomasterfrom
cursor/RSP-26-fix-milter-remove-headers-array-handling-1740

Conversation

@vstakhov
Copy link
Copy Markdown
Member

@vstakhov vstakhov commented Oct 9, 2025

Add support for UCL_ARRAY in remove_headers to allow removing multiple header instances by position.

The previous implementation for remove_headers in milter.c only processed single integer values, ignoring arrays of integers. This prevented users from specifying multiple positions to remove for the same header (e.g., remove_headers = { ['X-Example'] = {2, 3} }). This change extends the functionality to correctly iterate and process UCL_ARRAY types, aligning with the expected behavior and fixing bug RSP-26.


Linear Issue: RSP-26

Open in Cursor Open in Web

@cursor
Copy link
Copy Markdown

cursor Bot commented Oct 9, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vstakhov vstakhov marked this pull request as ready for review October 9, 2025 16:24
@vstakhov
Copy link
Copy Markdown
Member Author

vstakhov commented Oct 9, 2025

@cursor review

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no bugs!


@vstakhov vstakhov merged commit 7b480a9 into master Oct 9, 2025
28 checks passed
@vstakhov vstakhov deleted the cursor/RSP-26-fix-milter-remove-headers-array-handling-1740 branch October 9, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants