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

Enhancements to Mail Filesize/Filename Fixer Script #63

Merged
merged 5 commits into from
Apr 10, 2024

Conversation

obendev
Copy link
Contributor

@obendev obendev commented Apr 10, 2024

This PR includes:

  • Enhanced file detection to handle broader filename formats and spaces in directories.
  • Optimized script by reducing file reads for improved efficiency.
  • Converted README from Markdown to AsciiDoc for better maintainability and versatility.

These changes aim to improve the script’s performance and usability.

obendev added 3 commits April 10, 2024 15:05
… in directories

Fixed a bug where only colon separators where detected (:) but also comma (,) separators are possible – for accurate file identification (just checking for ,S= is sufficient here).

Implemented -print0 and -z flags in find and grep commands for robust handling of directories containing spaces.
Refactored the check_filenames function to count the total number of files while checking for size mismatches. This change eliminates the need for an additional file read operation previously performed to count the total files. The script now reads the files only once, improving its efficiency.
This commit changes the README file from Markdown to AsciiDoc format. AsciiDoc is chosen over Markdown due to its richer set of features.

This change will make the README more versatile and maintainable.
@sibprogrammer sibprogrammer self-requested a review April 10, 2024 15:12
Copy link
Member

@sibprogrammer sibprogrammer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's stick with .md files for unification and maintenance reasons

@obendev
Copy link
Contributor Author

obendev commented Apr 10, 2024

@sibprogrammer done.

Sorry, d62743e for some reason got Unverified in GitHub Desktop, it's just revert of dda6462
Only file changed is fix-mail-filesize-filename.sh

@obendev obendev merged commit 45ee866 into plesk:master Apr 10, 2024
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

Successfully merging this pull request may close these issues.

2 participants