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

[Suggestion]: 邮件主题支持正则替换内容 #423

Closed
himho opened this issue Mar 5, 2024 · 3 comments
Closed

[Suggestion]: 邮件主题支持正则替换内容 #423

himho opened this issue Mar 5, 2024 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@himho
Copy link

himho commented Mar 5, 2024

是否有人曾提过类似的问题?

否(No)

你觉得APP有什么不足之处?

现在邮件主题只支持内容标签,或默认模板。导致邮件主题特别长,建议邮件主题也支持正则替换

你觉得该怎么去完善会比较好?【非必答】

No response

@himho himho added the help wanted Extra attention is needed label Mar 5, 2024
@ywjheart
Copy link

ywjheart commented Mar 6, 2024

目前通过gotify收到的都是android包名,也是很长的。随着smsf支持tasks,默认的在发送通道设置标题的做法比较受限制,能否考虑在rule/task自定义title/subject?

@pppscn
Copy link
Owner

pppscn commented Mar 7, 2024

目前通过gotify收到的都是android包名,也是很长的。随着smsf支持tasks,默认的在发送通道设置标题的做法比较受限制,能否考虑在rule/task自定义title/subject?

不是所有通道都有标题,gotify现在就支持标题模板了,想要应用名,就通用设置开启预加载App列表,然后插入对应标签就好了,或者专门通道跟专门规则用,标题就可以自己写死

@pppscn
Copy link
Owner

pppscn commented Mar 11, 2024

试试每周构建版(加入预览计划在线更新或手动下载)
https://github.com/pppscn/SmsForwarder/actions/workflows/Weekly_Build.yml

自定义模板可用变量标签支持正则替换,语法:{{变量标签###正则表达式===替换结果}}

例如:{{FROM###(\d{3}).+(\d{4})===$1****$2}},当 FROM 值为 19912345678,最终替换为 199****5678

@pppscn pppscn closed this as completed Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants