Skip to content

Add date filtering support with --start-date and --end-date arguments#42

Open
cmer wants to merge 1 commit into
felixrieseberg:mainfrom
cmer:start-end-date
Open

Add date filtering support with --start-date and --end-date arguments#42
cmer wants to merge 1 commit into
felixrieseberg:mainfrom
cmer:start-end-date

Conversation

@cmer

@cmer cmer commented Jun 4, 2025

Copy link
Copy Markdown

Implement date-based message filtering to allow users to archive only messages
within a specific date range. This feature is useful for:

  • Archiving recent conversations only
  • Creating periodic backups (e.g., monthly/yearly)
  • Reducing archive size by excluding old messages

Changes:

  • Add --start-date and --end-date CLI arguments (YYYY-MM-DD format)
  • Filter messages during download from Slack API and from local cache
  • Validate date formats and ensure start date precedes end date
  • Update README with new parameter documentation
  • Optimize API calls using oldest/latest parameters when date filters are set

Example usage:
slack-archive --start-date 2024-01-01 --end-date 2024-12-31

Implement date-based message filtering to allow users to archive only messages
  within a specific date range. This feature is useful for:
  - Archiving recent conversations only
  - Creating periodic backups (e.g., monthly/yearly)
  - Reducing archive size by excluding old messages

  Changes:
  - Add --start-date and --end-date CLI arguments (YYYY-MM-DD format)
  - Filter messages during download from Slack API and from local cache
  - Validate date formats and ensure start date precedes end date
  - Update README with new parameter documentation
  - Optimize API calls using oldest/latest parameters when date filters are set

  Example usage:
    slack-archive --start-date 2024-01-01 --end-date 2024-12-31
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.

1 participant