} else {
when = &now
}
- fn := hex.EncodeToString(h.Sum(nil)[:sha512.Size/2])
var what string
if len(item.Content) == 0 {
what = item.Description
}
what = strings.TrimPrefix(what, "<![CDATA[")
what = strings.TrimSuffix(what, "]]>")
+ h := sha512.New()
+ h.Write([]byte(item.Title))
+ h.Write([]byte{0})
+ h.Write([]byte(what))
+ fn := hex.EncodeToString(h.Sum(nil)[:sha512.Size/2])
exists := false
for _, d := range []string{"cur", "new"} {
entries, err := os.ReadDir(path.Join(mdir, d))
Base64-encoded item's content. That is HTML as a rule.
@end verbatim
-Each message is placed under @code{HEX(SHA512/2(title+date))} filename.
+Each message is placed under @code{HEX(SHA512/2(title+content))} filename.
Unfortunately many feeds does not provide any date information at all.
Often multiple entries contain the same date. So you can not solely
depend on update/publish date.