Comments (4)
This seems to do the trick.
commit 853e9964906ec5fba8a1058e2a796c053deb771c
Author: Luke Macken <[email protected]>
Date: Sun Aug 14 12:34:26 2011 -0400
Decode our author names to unicode before encoding to UTF-8 when replying
diff --git a/alot/command.py b/alot/command.py
index 711bfd8..f569bd0 100644
--- a/alot/command.py
+++ b/alot/command.py
@@ -476,7 +476,7 @@ class ReplyCommand(Command):
mail = self.message.get_email()
# set body text
mailcontent = '\nOn %s, %s wrote:\n' % (self.message.get_datestring(),
- self.message.get_author()[0])
+ self.message.get_author()[0].decode('utf-8'))
for line in self.message.accumulate_body().splitlines():
mailcontent += '>' + line + '\n'
from alot.
ah yes, i remember this one: i deliberately removed this decode because spaetz agreed to
return valid unicode strings. a patch for the api has already been filed to the notmuch ml,
but is not yet applied. i am reluctant to fix this here because its going to be a non-issue
once spaetz pushes the api patch.
anyway, thanks for the issue.. keep them comming :p
/p
Sent via Hubroid
from alot.
Great, sounds good to me!
Ensuring that the API always returns unicode definitely is ideal, as my patch doesn't exactly fit the "decode early, encode late. unicode everywhere." methodology :)
from alot.
i'll close this here as spaetz has just pushed my patch
from alot.
Related Issues (20)
- Contact completion with khard HOT 2
- Not compatible with notmuch2 0.35 bindings HOT 15
- Act on multiple threads in search mode HOT 3
- Local hostname in Message-ID HOT 4
- Unknown values were found in config
- please make `get_body_text` more robust HOT 1
- prompt before overwriting files when saving attachments HOT 1
- ` extract_body_part` can receive empty strings and throws exceptions when it does
- Crash while trying to attach word .doc file: module 'magic' has no attribute '_libraries HOT 3
- Sort oldest first by newest email in thread HOT 1
- LookupError when displaying inbox with notmuch backend HOT 1
- Use Github Actions HOT 4
- would it be ok to convert installer to poetry ? HOT 3
- Switch from gpg to python-gnupg HOT 13
- mailcap is deprecated in Python 3.11 and will be removed in 3.13 HOT 1
- Default theme should always be readable HOT 1
- Option --all of tagging commands should apply to matched messages only HOT 7
- Startup very slow on master (due to "lazy thread lookup" fix)
- mailcap module will be removed in 3.13 HOT 2
- magic package HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alot.