Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying file naming format #4

Open
JuniorJPDJ opened this issue Apr 9, 2023 · 2 comments
Open

Allow specifying file naming format #4

JuniorJPDJ opened this issue Apr 9, 2023 · 2 comments

Comments

@JuniorJPDJ
Copy link

eg. providing parameter like --format '{msgid}_{filename}'

@nktknshn
Copy link
Owner

How are you going to use this feature? Would you please give me some examples of custom file naming.

@jpruciak
Copy link

jpruciak commented Apr 26, 2023

Legacy tgmount has {msgid} {filename}.{fileext} format for normal files.
Example: 77876 Sonata Arctica - The Days of Grays (2009).zip.
And msg_{msgid}_doc for unnamed files.
Example: msg_221285_doc.

I'd like to be able to configure the naming and for example make it {filename}.{msgid}.{fileext} for named and {msgid}.{fileext} for unnamed. fileext can be guessed from mimetype if filename is not present.
This will for example allow easily unpacking multipart archives.

Or just for {msgid}_{filename}.{fileext} so there's no space between msgid and filename.

Or for people not needing msgid at all they could set it to {filename}.{fileext} and that would be cool for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants