summaryrefslogtreecommitdiff
path: root/cmd/generate/forge_part_pipermail.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/generate/forge_part_pipermail.go')
-rw-r--r--cmd/generate/forge_part_pipermail.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/generate/forge_part_pipermail.go b/cmd/generate/forge_part_pipermail.go
index e7c9e4c..9db498b 100644
--- a/cmd/generate/forge_part_pipermail.go
+++ b/cmd/generate/forge_part_pipermail.go
@@ -12,6 +12,7 @@ import (
"strings"
"time"
+ "git.lukeshu.com/www/lib/httpcache"
"git.lukeshu.com/www/lib/mailstuff"
)
@@ -34,7 +35,7 @@ func (PartPiperMail) FetchSubmittedAt(urls []string) (time.Time, error) {
if !rePiperMailMessage.MatchString(u) {
continue
}
- htmlStr, err := httpGet(u, nil)
+ htmlStr, err := httpcache.Get(u, nil)
if err != nil {
return time.Time{}, err
}
@@ -108,7 +109,7 @@ func (p PartPiperMail) FetchLastUpdated(urls []string) (time.Time, User, error)
uYM := m[2]
//uInt := m[3]
- htmlStr, err := httpGet(u, nil)
+ htmlStr, err := httpcache.Get(u, nil)
if err != nil {
return time.Time{}, User{}, fmt.Errorf("could not fetch message: %w", err)
}
@@ -132,7 +133,7 @@ func (p PartPiperMail) FetchLastUpdated(urls []string) (time.Time, User, error)
for ym, mbox := uYM, []*mail.Message(nil); true; ym = p.nextMonth(ym) {
lenBefore := p.threadLen(thread)
- mboxGzStr, err := httpGet(uBase+ym+".txt.gz", nil)
+ mboxGzStr, err := httpcache.Get(uBase+ym+".txt.gz", nil)
if err != nil {
if ym == uYM || !errors.Is(err, os.ErrNotExist) {
return time.Time{}, User{}, fmt.Errorf("could not fetch mbox for %s: %w", ym, err)