<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aerc/lib/format, branch 0.6.0</title>
<subtitle>mirror of ~rjarry's aerc fork - a pretty good email client
</subtitle>
<id>https://git.tilde.institute/akspecs/aerc/atom?h=0.6.0</id>
<link rel='self' href='https://git.tilde.institute/akspecs/aerc/atom?h=0.6.0'/>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/'/>
<updated>2021-11-06T16:34:20Z</updated>
<entry>
<title>index: add this-week-time-format</title>
<updated>2021-11-06T16:34:20Z</updated>
<author>
<name>Robin Jarry</name>
<email>robin@jarry.cc</email>
</author>
<published>2021-11-06T16:32:38Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=84146e23b384e42c63287e3519e70b0a6ea3100f'/>
<id>urn:sha1:84146e23b384e42c63287e3519e70b0a6ea3100f</id>
<content type='text'>
Also allow specific time format for messages received within the last
7 days.

Signed-off-by: Robin Jarry &lt;robin@jarry.cc&gt;
</content>
</entry>
<entry>
<title>go.mod: change base git url</title>
<updated>2021-11-05T09:21:45Z</updated>
<author>
<name>Robin Jarry</name>
<email>robin@jarry.cc</email>
</author>
<published>2021-11-05T09:19:46Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=0d645bcebda8d764c4f21f71ded1e3627d6e8837'/>
<id>urn:sha1:0d645bcebda8d764c4f21f71ded1e3627d6e8837</id>
<content type='text'>
I'm not sure what are the implications but it seems required.

Link: https://github.com/golang/go/issues/20883
Signed-off-by: Robin Jarry &lt;robin@jarry.cc&gt;
</content>
</entry>
<entry>
<title>view,list: fix crash when viewing incomplete imap messages</title>
<updated>2021-10-28T14:38:23Z</updated>
<author>
<name>Robin Jarry</name>
<email>robin@jarry.cc</email>
</author>
<published>2021-10-28T12:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=074b0a1bd8da38547c6e3eed9836149327012228'/>
<id>urn:sha1:074b0a1bd8da38547c6e3eed9836149327012228</id>
<content type='text'>
With IMAP, due to an unidentified reason, some messages to not have any
body accessible. When viewing them, aerc crashes:

  git.sr.ht/~sircmpwn/aerc/lib.usePGP
          lib/messageview.go:37
  git.sr.ht/~sircmpwn/aerc/lib.NewMessageStoreView
          lib/messageview.go:67
  git.sr.ht/~sircmpwn/aerc/commands/account.ViewMessage.Execute
          commands/account/view.go:45
  git.sr.ht/~sircmpwn/aerc/commands.(*Commands).ExecuteCommand
          commands/commands.go:66
  main.execCommand
          aerc.go:61
  main.main.func2
          aerc.go:160
  aerc crashed: runtime error: invalid memory address or nil pointer
  dereference

Check the pointer before dereferencing.

Also, add a global check in ParseMessageFormat where a similar issue may
occur.

Signed-off-by: Robin Jarry &lt;robin@jarry.cc&gt;
</content>
</entry>
<entry>
<title>index: allow dynamic formatting of message dates</title>
<updated>2021-10-28T14:30:59Z</updated>
<author>
<name>Robin Jarry</name>
<email>robin@jarry.cc</email>
</author>
<published>2021-10-26T15:24:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=42b4302ba32e503c0a8011baae0ca433c8592dd7'/>
<id>urn:sha1:42b4302ba32e503c0a8011baae0ca433c8592dd7</id>
<content type='text'>
When a message has been sent today (or this year) allow formatting the
date differently.

For example, with:

 [ui]
 index-format=%-25.25n   %-25.25D   %s
 timestamp-format=2006 Jan 02, 15:04 GMT-0700
 this-day-time-format=Today at 15:04
 this-year-time-format=Jan 02

The message list would look like this (spaces collapsed):

 Robin Jarry        Today at 16:30             [PATCH 1/2] bindings: prepare for more modifers
 bugzilla@dpdk.org  Oct 26                     [dpdk-dev] [Bug 839] pdump: any subsequent runs of pdump_autotest fail
 Holger Levsen      2020 Mar 15, 13:44 GMT+01  +1 (Re: FTP Team -- call for volunteers)

Signed-off-by: Robin Jarry &lt;robin@jarry.cc&gt;
</content>
</entry>
<entry>
<title>format: remove parse methods, use the one from go-message</title>
<updated>2020-11-14T14:40:13Z</updated>
<author>
<name>Reto Brunner</name>
<email>reto@labrat.space</email>
</author>
<published>2020-11-10T19:35:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=24f1c575ae7941fa4239ec60bd86aef2f6641364'/>
<id>urn:sha1:24f1c575ae7941fa4239ec60bd86aef2f6641364</id>
<content type='text'>
</content>
</entry>
<entry>
<title>compose: use a proper header instead of a string map</title>
<updated>2020-11-14T14:40:13Z</updated>
<author>
<name>Reto Brunner</name>
<email>reto@labrat.space</email>
</author>
<published>2020-11-10T19:27:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=20ec2c8eeb2e071f28358814935a0f56672a9f49'/>
<id>urn:sha1:20ec2c8eeb2e071f28358814935a0f56672a9f49</id>
<content type='text'>
Prior to this commit, the composer was based on a map[string]string.
While this approach was very versatile, it lead to a constant encoding / decoding
of addresses and other headers.

This commit switches to a different model, where the composer is based on a header.
Commands which want to interact with it can simply set some defaults they would
like to have. Users can overwrite them however they like.

In order to get access to the functions generating / getting the msgid go-message
was upgraded.
</content>
</entry>
<entry>
<title>remove models.Address in favor of go-message Address</title>
<updated>2020-11-14T14:40:13Z</updated>
<author>
<name>Reto Brunner</name>
<email>reto@labrat.space</email>
</author>
<published>2020-11-10T18:57:09Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=fc9ccc30008e564c1dea23b3bfe480ca5a10c070'/>
<id>urn:sha1:fc9ccc30008e564c1dea23b3bfe480ca5a10c070</id>
<content type='text'>
We made a new type out of go-message/mail.Address without any real reason.
This suddenly made it necessary to convert from one to the other without actually
having any benefit whatsoever.
This commit gets rid of the additional type
</content>
</entry>
<entry>
<title>refactor ParseMessageFormat to use a ctx object</title>
<updated>2020-10-14T06:42:26Z</updated>
<author>
<name>Reto Brunner</name>
<email>reto@labrat.space</email>
</author>
<published>2020-10-14T06:42:26Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=75cbf767326dfc67325773850ab1f6451dc9fb14'/>
<id>urn:sha1:75cbf767326dfc67325773850ab1f6451dc9fb14</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix comment in ParseAddressList</title>
<updated>2020-09-10T05:35:56Z</updated>
<author>
<name>Reto Brunner</name>
<email>reto@labrat.space</email>
</author>
<published>2020-09-10T05:33:28Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=504417b6709ba8ec74016ad00eaa7fcec9deb6ef'/>
<id>urn:sha1:504417b6709ba8ec74016ad00eaa7fcec9deb6ef</id>
<content type='text'>
Go pre 1.15 parsed an empty string as an error, 1.15 did not but this was
unintentional as per https://github.com/golang/go/issues/40803

Fix the comment accordingly
</content>
</entry>
<entry>
<title>ParseAddressList: return empty list if "" is provided</title>
<updated>2020-08-24T21:28:18Z</updated>
<author>
<name>Reto Brunner</name>
<email>reto@labrat.space</email>
</author>
<published>2020-08-24T21:01:18Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/akspecs/aerc/commit/?id=b6ef116c36e1a1de6a2289f392603fd51a2b91da'/>
<id>urn:sha1:b6ef116c36e1a1de6a2289f392603fd51a2b91da</id>
<content type='text'>
Go 1.15 handles "" in the address parser as a non error case, returning
an empty list.
Prior versions returned an error, which is not what we want.

Reported-by: anianz &lt;a.ziegler@cioplenu.de&gt;
Tested-by: anianz &lt;a.ziegler@cioplenu.de&gt;
</content>
</entry>
</feed>
