Parcourir la source

fix: `head` incompatibility between GNU and macOS

pull/1022/head
Pontus Karlsson il y a 9 mois
Parent
révision
df69b30e61
Impossible d'extraire la signature
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync Voir le fichier

@@ -74,7 +74,7 @@ syncandnotify() {
[ -z "$MAILSYNC_MUTE" ] &&
for file in $new; do
# Extract and decode subject and sender from mail.
subject=$(awk '/^Subject: / && ++n == 1,/^.*: / && ++i == 2' "$file" | head -n-1 |
subject=$(awk '/^Subject: / && ++n == 1,/^.*: / && ++i == 2' "$file" | sed '$d' |
perl -CS -MEncode -ne 'print decode("MIME-Header", $_)' |
sed 's/^Subject: //' | tr -d '\n\t')
from="$(sed -n "/^From:/ s|From: *|| p" "$file" |


Chargement…
Annuler
Enregistrer