Skip to content

Commit

Permalink
Issue #1879 -- Fix encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sprak3000 committed Jan 3, 2024
1 parent 6b10be4 commit 7e809b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Email/notmuch-mail-count.30s.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

inbox = `/usr/local/bin/notmuch search tag:inbox tag:unread`

mails = inbox.split("\n")
mails = inbox.encode('UTF-8', :invalid => :replace).split("\n")
count = mails.length
if count > 0
puts "📮 #{count} | color=red size=12"
Expand Down

0 comments on commit 7e809b9

Please sign in to comment.