Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using %header.append.matchFromBody% multiple times in a template reinserts 1st arguments #346

Open
RealRaven2000 opened this issue Jan 4, 2025 · 0 comments
Assignees
Labels

Comments

@RealRaven2000
Copy link
Owner

RealRaven2000 commented Jan 4, 2025

When using %header.append.matchFromBody% multiple times, it happens that the subsequent calls are overwritten by the parameters of the first occurrence.

Example:

  %header.append.matchFromBody(subject,"Here is the transcription:\s*(?=(.{100}))(.*)\s*Listen and reply",1)%
  .  .  .
  %header.append.matchFromBody(subject,"test","<tag testtag>")%

Workaround: use matchTextFromBody and the clipboard:

%matchTextFromBody("Here is the transcription:\s*(?=(.{100}))(.*)\s*Listen and reply",1,toclipboard)%
%header.append(subject,clipboard)%
%header.append(subject,"... <tag vox><assign [email protected]>")%
@RealRaven2000 RealRaven2000 self-assigned this Jan 4, 2025
@RealRaven2000 RealRaven2000 changed the title using %header.append.matchFromBody% multiple times in a template inserts 1st argument using %header.append.matchFromBody% multiple times in a template reinserts 1st arguments Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant