animetosho / Nyuu

Flexible usenet binary posting tool
226 stars 33 forks source link

Possible to keep mtime of file to be posted? #46

Closed bgeet closed 5 years ago

bgeet commented 6 years ago

Feature request Would it be possible to keep mtime (time of last modification) of the file to be posted? Or is yEnc-encoding always stripping it? I find that metadata useful as it tells the original age of the file.

Possible issues Usenet downloaders such as sabnzbd or nzbget might not handle it correctly. (yEnc-decoding)

Workaround Put the file in an archive before posting. Then mtime of the file is kept.

animetosho commented 6 years ago

yEnc doesn't store dates. The only file information yEnc holds is the filename, size and CRC32.

Dates only occur in two places:

You could probably stuff the modified time into the Date header, but it's a bit weird, and I doubt any downloader would interpret it at all.
Wrapping it in an archive is the most reliable way to preserve file metadata like that.