<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mutt-ottolangy/src, branch master</title>
<subtitle>Set Mutt's attribution format based on the language of the message being replied to</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/'/>
<entry>
<title>main(): Add a version command line argument</title>
<updated>2021-03-20T12:40:37+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-20T12:40:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=46373d4d0f9d425a3132529b546b2d83c3796a37'/>
<id>46373d4d0f9d425a3132529b546b2d83c3796a37</id>
<content type='text'>
Make it easy to find out what version of the program is installed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make it easy to find out what version of the program is installed.
</pre>
</div>
</content>
</entry>
<entry>
<title>Set `$attribution_locale` in generated muttrc</title>
<updated>2021-03-16T19:11:02+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-16T19:11:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=1ce60591040cc7a8163cab04277b393ce87bc3c0'/>
<id>1ce60591040cc7a8163cab04277b393ce87bc3c0</id>
<content type='text'>
The French attribution from before capitalised the month name because I
have an EN locale by default. The month shouldn't be capitalised in
French. Set the `$attribution_locale` to match the language of the
attribution template string.

Hard-coding `en_US` on the English one as that's the locale I'm used to.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The French attribution from before capitalised the month name because I
have an EN locale by default. The month shouldn't be capitalised in
French. Set the `$attribution_locale` to match the language of the
attribution template string.

Hard-coding `en_US` on the English one as that's the locale I'm used to.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove TODOs and debug output from multipart and HTML work</title>
<updated>2021-03-14T17:22:50+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-14T17:22:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=225ee75ef33986fc26271952bfd688da81435ad1'/>
<id>225ee75ef33986fc26271952bfd688da81435ad1</id>
<content type='text'>
Now that we've handled 'multipart/relative' and HTML-only
'text/plain'-less emails, we can remove these.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we've handled 'multipart/relative' and HTML-only
'text/plain'-less emails, we can remove these.
</pre>
</div>
</content>
</entry>
<entry>
<title>Extract HTML tag remover to a function</title>
<updated>2021-03-14T17:19:57+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-14T17:19:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=de0bed481b794e224ec76865aff6cc9cfee02ec8'/>
<id>de0bed481b794e224ec76865aff6cc9cfee02ec8</id>
<content type='text'>
Now that we're using it in two places, move it to a function. Also
remove the `unwrap` call.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we're using it in two places, move it to a function. Also
remove the `unwrap` call.
</pre>
</div>
</content>
</entry>
<entry>
<title>Extract email body from HTML part if no text part exists</title>
<updated>2021-03-14T17:10:25+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-14T17:10:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=c60b9819991cd7a78bbc1f260484bf426d31827c'/>
<id>c60b9819991cd7a78bbc1f260484bf426d31827c</id>
<content type='text'>
We're already doing this for single-part emails. This change makes it
work additionally for multipart emails.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We're already doing this for single-part emails. This change makes it
work additionally for multipart emails.
</pre>
</div>
</content>
</entry>
<entry>
<title>get_email_body(): Remove unnecessary loops over headers</title>
<updated>2021-03-14T16:48:10+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-14T16:48:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=4f8f5671f15fc08724875eecc7036dc41def0043'/>
<id>4f8f5671f15fc08724875eecc7036dc41def0043</id>
<content type='text'>
Now that I know the `Content-Type` header is already parsed in the
original email parse call, use that instead of looping over the headers
trying to find the content type.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that I know the `Content-Type` header is already parsed in the
original email parse call, use that instead of looping over the headers
trying to find the content type.
</pre>
</div>
</content>
</entry>
<entry>
<title>Strip HTML tags from single-part HTML emails</title>
<updated>2021-03-14T16:24:18+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-14T16:24:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=62c083b5e3a164d596b49132c8c53248aa2daf42'/>
<id>62c083b5e3a164d596b49132c8c53248aa2daf42</id>
<content type='text'>
When an HTML body is fed to 'whatlang', it recognises it as English.
This is likely due to the English HTML syntax. Remove all HTML tags with
a simple regex substitution to get the language recognition working more
properly.

This doesn't remove CSS, which could also confuse the language
recogniser. In a limited test, it seemed to work without having to
remove any CSS, so not bothering with that.

Still need to get this working for multipart emails.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When an HTML body is fed to 'whatlang', it recognises it as English.
This is likely due to the English HTML syntax. Remove all HTML tags with
a simple regex substitution to get the language recognition working more
properly.

This doesn't remove CSS, which could also confuse the language
recogniser. In a limited test, it seemed to work without having to
remove any CSS, so not bothering with that.

Still need to get this working for multipart emails.
</pre>
</div>
</content>
</entry>
<entry>
<title>Debug email content types</title>
<updated>2021-03-14T16:23:38+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-14T16:23:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=7d46438c015e400ca6c035f5d99da040e6765740'/>
<id>7d46438c015e400ca6c035f5d99da040e6765740</id>
<content type='text'>
Figuring out the different content types and subparts for different
kinds of emails.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Figuring out the different content types and subparts for different
kinds of emails.
</pre>
</div>
</content>
</entry>
<entry>
<title>get_email_body(): Add TODOs</title>
<updated>2021-03-14T05:22:23+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-14T05:22:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=2d84042766d9fd41ebee15acb21bf216e1f5bee2'/>
<id>2d84042766d9fd41ebee15acb21bf216e1f5bee2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>get_email_body(): Support emails with attachments</title>
<updated>2021-03-14T05:17:34+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2021-03-14T05:17:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/mutt-ottolangy/commit/?id=1f9b50fe4531f2156f2fd823dc6292d18797cb1a'/>
<id>1f9b50fe4531f2156f2fd823dc6292d18797cb1a</id>
<content type='text'>
Parse the text email body out of `multipart/alternative` parts.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Parse the text email body out of `multipart/alternative` parts.
</pre>
</div>
</content>
</entry>
</feed>
