<feed xmlns='http://www.w3.org/2005/Atom'>
<title>aerc/commands/account, branch master</title>
<subtitle>Mirror of https://git.sr.ht/~sircmpwn/aerc
</subtitle>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/'/>
<entry>
<title>create OriginalMail struct</title>
<updated>2020-01-09T19:31:19+00:00</updated>
<author>
<name>Leszek Cimała</name>
<email>ernierasta@zori.cz</email>
</author>
<published>2020-01-08T20:44:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=bf28e23933a9808820ef4855257accf4634068e9'/>
<id>bf28e23933a9808820ef4855257accf4634068e9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix crash when no message is selected</title>
<updated>2019-12-04T14:45:07+00:00</updated>
<author>
<name>Wiktor Kwapisiewicz</name>
<email>wiktor@metacode.biz</email>
</author>
<published>2019-11-28T18:20:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=abd9e78f024580d476cb299a575a7aa54c53a4b4'/>
<id>abd9e78f024580d476cb299a575a7aa54c53a4b4</id>
<content type='text'>
Pressing `Enter` on a view that has not yet loaded messages (e.g. at
startup) would return `nil` from `Selected()`. Accessing `msg.Uid` on a
`nil` reference crashes aerc.

This patch moves the `msg == nil` check before accessing `msg.Uid` thus
avoiding the crash.

To test this patch repeatedly press `Enter` on startup.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pressing `Enter` on a view that has not yet loaded messages (e.g. at
startup) would return `nil` from `Selected()`. Accessing `msg.Uid` on a
`nil` reference crashes aerc.

This patch moves the `msg == nil` check before accessing `msg.Uid` thus
avoiding the crash.

To test this patch repeatedly press `Enter` on startup.
</pre>
</div>
</content>
</entry>
<entry>
<title>commands/account: Disable :view for deleted msgs</title>
<updated>2019-11-17T18:19:42+00:00</updated>
<author>
<name>Kevin Kuehler</name>
<email>keur@xcf.berkeley.edu</email>
</author>
<published>2019-11-10T23:22:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=4966b912c6612768a21c3092fd197124ed504ae9'/>
<id>4966b912c6612768a21c3092fd197124ed504ae9</id>
<content type='text'>
Allowing the user to view deleted messages creates all sorts of race
conditions. The most devious race condition is pv.source can be set to a
nil while another PartViewer is still running a goroutine in
attemptCopy.

Here is a trace when this happens.

goroutine 76 [running]: io.copyBuffer(0x7f8ad02641d0, 0xc00040f590, 0x0,
0x0, 0xc0007cc000, 0x8000, 0x8000, 0x0, 0x0, 0x8b3d60)
/usr/lib/go/src/io/io.go:402 +0x101 io.Copy(...)
/usr/lib/go/src/io/io.go:364
git.sr.ht/~sircmpwn/aerc/widgets.(*PartViewer).attemptCopy.func4(0xc00017efd0,
0xc0004da7c0) /home/keur/repos/aerc/widgets/msgviewer.go:576 +0x611
created by git.sr.ht/~sircmpwn/aerc/widgets.(*PartViewer).attemptCopy
/home/keur/repos/aerc/widgets/msgviewer.go:544 +0x144

We could add a guard in store.FetchBodyPart to only call the callback
when msg.Part.Reader != nil, but we still get a hanging pager. Therefore
it seems more reasonable to disable this completely.

Signed-off-by: Kevin Kuehler &lt;keur@xcf.berkeley.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allowing the user to view deleted messages creates all sorts of race
conditions. The most devious race condition is pv.source can be set to a
nil while another PartViewer is still running a goroutine in
attemptCopy.

Here is a trace when this happens.

goroutine 76 [running]: io.copyBuffer(0x7f8ad02641d0, 0xc00040f590, 0x0,
0x0, 0xc0007cc000, 0x8000, 0x8000, 0x0, 0x0, 0x8b3d60)
/usr/lib/go/src/io/io.go:402 +0x101 io.Copy(...)
/usr/lib/go/src/io/io.go:364
git.sr.ht/~sircmpwn/aerc/widgets.(*PartViewer).attemptCopy.func4(0xc00017efd0,
0xc0004da7c0) /home/keur/repos/aerc/widgets/msgviewer.go:576 +0x611
created by git.sr.ht/~sircmpwn/aerc/widgets.(*PartViewer).attemptCopy
/home/keur/repos/aerc/widgets/msgviewer.go:544 +0x144

We could add a guard in store.FetchBodyPart to only call the callback
when msg.Part.Reader != nil, but we still get a hanging pager. Therefore
it seems more reasonable to disable this completely.

Signed-off-by: Kevin Kuehler &lt;keur@xcf.berkeley.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add Templates with Parsing</title>
<updated>2019-11-10T15:15:49+00:00</updated>
<author>
<name>Srivathsan Murali</name>
<email>sri@vathsan.com</email>
</author>
<published>2019-11-03T12:51:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=3ba69edab5f0c787424dac9649e43a7743da13ca'/>
<id>3ba69edab5f0c787424dac9649e43a7743da13ca</id>
<content type='text'>
+ Changes NewComposer to return error.
+ Add lib to handle templates using "text/template".
+ Add -T option to following commands
    - compose.
    - reply
    - forward
+ Quoted replies using templates.
+ Forwards as body using templates
+ Default templates are installed similar to filters.
+ Templates Config in aerc.conf.
    - Required templates are parsed while loading config.
+ Add aerc-templates.7 manual for using template data.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
+ Changes NewComposer to return error.
+ Add lib to handle templates using "text/template".
+ Add -T option to following commands
    - compose.
    - reply
    - forward
+ Quoted replies using templates.
+ Forwards as body using templates
+ Default templates are installed similar to filters.
+ Templates Config in aerc.conf.
    - Required templates are parsed while loading config.
+ Add aerc-templates.7 manual for using template data.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make commands join args with spaces</title>
<updated>2019-09-20T19:06:34+00:00</updated>
<author>
<name>Jeffas</name>
<email>dev@jeffas.io</email>
</author>
<published>2019-09-20T16:16:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=39307a6fa7e96641b822ed0a9acb75021dcf7fe9'/>
<id>39307a6fa7e96641b822ed0a9acb75021dcf7fe9</id>
<content type='text'>
This patch ensures the following commands join their arguments with
spaces to make it easier to interact with:

- cf
- mkdir
- cd
- attach
- detach
- ct
- copy
- move
- save
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch ensures the following commands join their arguments with
spaces to make it easier to interact with:

- cf
- mkdir
- cd
- attach
- detach
- ct
- copy
- move
- save
</pre>
</div>
</content>
</entry>
<entry>
<title>Add sorting functionality</title>
<updated>2019-09-20T18:56:02+00:00</updated>
<author>
<name>Jeffas</name>
<email>dev@jeffas.io</email>
</author>
<published>2019-09-19T22:37:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=90d26da58a4af2d34328f5916adf3781222966c6'/>
<id>90d26da58a4af2d34328f5916adf3781222966c6</id>
<content type='text'>
There is a command and config option. The criteria are a list of the
sort criterion and each can be individually reversed.

This only includes support for sorting in the maildir backend currently.
The other backends are not supported in this patch.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is a command and config option. The criteria are a list of the
sort criterion and each can be individually reversed.

This only includes support for sorting in the maildir backend currently.
The other backends are not supported in this patch.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add signatures</title>
<updated>2019-09-12T20:18:34+00:00</updated>
<author>
<name>Jeffas</name>
<email>dev@jeffas.io</email>
</author>
<published>2019-09-11T19:28:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=e2d5c456dc27f958d79fdf740c7b0852b2af4160'/>
<id>e2d5c456dc27f958d79fdf740c7b0852b2af4160</id>
<content type='text'>
This adds the ability for per-account signatures in the accounts.conf
config file. The signature is added to emails in the editor at the
bottom of the email. This includes when forwarding, replying to, and
composing emails.

There are two config options: signature-file and signature-cmd. The
former allows a signature to be read from a file and the latter allows
an arbitrary command to be executed to return the signature.

The config options have been documented in aerc-config
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds the ability for per-account signatures in the accounts.conf
config file. The signature is added to emails in the editor at the
bottom of the email. This includes when forwarding, replying to, and
composing emails.

There are two config options: signature-file and signature-cmd. The
former allows a signature to be read from a file and the latter allows
an arbitrary command to be executed to return the signature.

The config options have been documented in aerc-config
</pre>
</div>
</content>
</entry>
<entry>
<title>commands: move ParseNextPrevMessage error value to its last return value</title>
<updated>2019-09-05T02:30:57+00:00</updated>
<author>
<name>Wagner Riffel</name>
<email>wgrriffel@gmail.com</email>
</author>
<published>2019-09-03T19:34:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=bdb5e3e6581169bdb1d912c158336f409151b491'/>
<id>bdb5e3e6581169bdb1d912c158336f409151b491</id>
<content type='text'>
Signed-off-by: Wagner Riffel &lt;wgrriffel@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Wagner Riffel &lt;wgrriffel@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>all: rewrite references to strings.Index to strings.Contains</title>
<updated>2019-09-05T02:30:57+00:00</updated>
<author>
<name>Wagner Riffel</name>
<email>wgrriffel@gmail.com</email>
</author>
<published>2019-09-03T19:34:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=baa70469c3b25e1b937c9c2a9e0b16762a227bca'/>
<id>baa70469c3b25e1b937c9c2a9e0b16762a227bca</id>
<content type='text'>
Signed-off-by: Wagner Riffel &lt;wgrriffel@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Wagner Riffel &lt;wgrriffel@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>all: use fmt.Errorf for fomartting errors</title>
<updated>2019-09-05T02:30:57+00:00</updated>
<author>
<name>Wagner Riffel</name>
<email>wgrriffel@gmail.com</email>
</author>
<published>2019-09-03T19:34:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.benburwell.com/mirrors/aerc/commit/?id=feacca3c5caffb11be1f5f7cbfef01400b5bc944'/>
<id>feacca3c5caffb11be1f5f7cbfef01400b5bc944</id>
<content type='text'>
Signed-off-by: Wagner Riffel &lt;wgrriffel@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Wagner Riffel &lt;wgrriffel@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
