diff options
author | Ethan Rietz <ewrietz@gmail.com> | 2020-12-15 21:45:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-15 21:45:53 -0500 |
commit | 3d7546974adfa89a1526ac507622a0f8689b6fbf (patch) | |
tree | 2713006b4f2a79b18282ccb39816d44f142e95d4 /bin/mw | |
parent | 456d02d1ee0ab196ac256b91c9ac86a01f3c0bb6 (diff) |
Fix mailboxes on macos
The Mac version of paste requires "-" to read from STDIN. Without "-", the "mailboxes" line in ~/.config/accounts/<email address>.muttrc is empty upon adding a new mailbox via `mw -a <email address>`. The Linux version of paste works fine if "-" is added.
Diffstat (limited to 'bin/mw')
-rwxr-xr-x | bin/mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -237,7 +237,7 @@ Archive" && return 0 finalize() { echo "$mailboxes" | xargs -I {} mkdir -p "$maildir/$fulladdr/{}/cur" "$maildir/$fulladdr/{}/tmp" "$maildir/$fulladdr/{}/new" sed -ibu "/$MARKER/d" "$accdir/$idnum-$fulladdr.muttrc" ; rm -f "$accdir/$idnum-$fulladdr.muttrcbu" - toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' )" + toappend="mailboxes $(echo "$mailboxes" | sed "s/^/\"=/;s/$/\"/" | paste -sd ' ' - )" for x in $mailboxes; do case "$x" in *[Ss][Ee][Nn][Tt]*) setBox record "$x"; formatShortcut s sent "$x" ;; |