您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

10 行
312 B

  1. #!/bin/sh
  2. # Helps open a file with xdg-open from mutt in a external program without weird side effects.
  3. [ $(uname) = "Darwin" ] && opener="open" || opener="setsid xdg-open"
  4. base=$(basename "$1")
  5. ext="${base##*.}"
  6. file=$(mktemp -u --suffix=".$ext")
  7. rm -f "$file"
  8. cp "$1" "$file"
  9. $opener "$file" >/dev/null 2>&1 &