📄 example.conf
字号:
############################################################################## THIS IS JUST AN *EXAMPLE* CONFIG FILE## Feel free to get inspired, use all examples on your own risk!## To hide the SEARCH lines from the log, uncomment this:#showlog: -search############################################################################### Shut off SMS during work-hours#whennot: wday 1-5 hour 0900-1800 # working timewhen: month 12 day 24-27 # x-maswhen: month 12 day 31 # new yearwhen: month 1 day 1-6 # new yearwhen: month 5 day 1 # 1 Maybegin # acceptelse breakend############################################################################## Create a file conditionally on the presense of a good subject#options: subject prio 1if: "enable mail2sms please" create: .mail2sms.on delete: .mail2sms.offendif############################################################################## Allow a file presense to override the previous decision#when: file .mail2sms.onbegin unbreakend############################################################################## Ignore mails with "no sms" in subject#options: subjectif: "no sms" abort: no sms requestedendif############################################################################### First-line stuff in replies:#options: once body # a few options pleaselog: On-wrote junksearch: "^(On .* wrote:)"replace:############################################################################### Quoted lines:#options: body prio 2search: ^ *>.*log: quote-removalreplace:############################################################################### Initial spaces#options: fullbody prio 2 subjectsearch: "^ +"log: spaces in the beginning of linesreplace:############################################################################### "re:" parts in subjects#options: subject nocasesearch: .*(Re|Ang|Sv)(\[.*\]|): *log: re/ang/sv-stuff in subject linesreplace:############################################################################### Sequences of weird letters only one of them#options: fullbody prio 4search: "([-\.=!+*#;:,~!&]){2,}"log: multiple weirdo lettersreplace: \1############################################################################### Remove space between certain punctuation letters.#options: fullbody prio 4log: non-alnum, space, non-alnum => remove spacesearch: "([-*!=.,]) ([-*!=.,])"replace: \1\2############################################################################### Remove space after non-word symbols#log: Remove spaces after symbolsoptions: prio 4search: "(\W) +"replace: \1############################################################################### Cut off parentheses from From names.#options: fromlog: cut off parantheses junksearch: \([^)]*\)replace:############################################################################### Cut off known domain names from email addresses#log: cut off @*.frontec.se and @frontec-uk.com domainssearch: @(....|)frontec(-uk|).(se|com)replace: ""############################################################################### URLs don't do any good in SMS messages:#options: nocaselog: remove http/ftp-URLsearch: (http|ftp)://[a-z0-9.~/-]*replace: (URL)############################################################################### Make friends' names appear in shorter versions:#options: nocaselog: Daniel=>dastsearch: "Daniel.Stenberg"replace: DaSt############################################################################### Output with two extra spaces:#output: "F:$from S:$subject B:$body"############################################################################## Different output depending on sender#options: toaddress nocaseif: "coala@example.es" output: "CoALA F:$from S:$subject B:$body"endifoptions: toaddress nocaseif: "coala@example.com" output: "CoALA ES F:$from S:$subject B:$body"endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -