Commit graph

2 commits

Author SHA1 Message Date
Reto Brunner
f74605793e FindFirstNonMultipart: return the proper path
There was a bug that lead to the wrong path being returned by the function.
2021-03-07 14:52:42 +01:00
Reto Brunner
c574a838fa Remove hard coded bodystruct path everywhere
Aerc usually used the path []int{1} if it didn't know what the proper path is.
However this only works for multipart messages and breaks if it isn't one.

This patch removes all the hard coding and extracts the necessary helpers to lib.
2020-07-27 09:19:27 +02:00