Skip to content

Instantly share code, notes, and snippets.

@koki-h
Last active June 21, 2017 01:13
Show Gist options
  • Select an option

  • Save koki-h/c191b2f7e1f36cf338e6 to your computer and use it in GitHub Desktop.

Select an option

Save koki-h/c191b2f7e1f36cf338e6 to your computer and use it in GitHub Desktop.
#差出人が自分の場合はSubjectにマークを付ける。
myaddress=`pwd | cut -d/ -f5` #自分のメールアドレス
if ( /^From:\s*(.*)${myaddress}@example.com/)
{
mark=`echo '[送信メール]' | nkf -jM`
xfilter "sed -e 's|^Subject: |Subject: $mark |' "
}
cc "!inspector@example.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment