Add optional zstd mbox archives
This commit is contained in:
parent
21844688ac
commit
e612896e06
14 changed files with 620 additions and 39 deletions
|
|
@ -1097,7 +1097,7 @@ func transferKindLabel(kind string) string {
|
|||
func renderTransferFolders(b *strings.Builder, side, kind, value string) {
|
||||
switch kind {
|
||||
case "archive":
|
||||
mboxes, _ := filepath.Glob(filepath.Join(Cfg.MboxRoot, value, "*.mbox"))
|
||||
mboxes := archiveMboxPaths(filepath.Join(Cfg.MboxRoot, value))
|
||||
if len(mboxes) == 0 {
|
||||
b.WriteString(`<div class="ef-empty">Keine Ordner.</div>`)
|
||||
return
|
||||
|
|
@ -1187,7 +1187,7 @@ func transferEmptyReason(kind string, err error) string {
|
|||
func firstTransferFolder(kind, value string) (string, error) {
|
||||
switch kind {
|
||||
case "archive":
|
||||
mboxes, _ := filepath.Glob(filepath.Join(Cfg.MboxRoot, value, "*.mbox"))
|
||||
mboxes := archiveMboxPaths(filepath.Join(Cfg.MboxRoot, value))
|
||||
infos := archiveFolderInfos(mboxes)
|
||||
if len(infos) == 0 {
|
||||
return "", fmt.Errorf("Keine Ordner.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue