rusq / slackdump

Save or export your private and public Slack messages, threads, files, and users locally without admin privileges.
GNU General Public License v3.0
813 stars 60 forks source link

Add support per channel dump-from and dump-to limitation #283

Closed kolsys closed 2 months ago

kolsys commented 2 months ago

This patch allow to configure -dump-from and -dump-to limitation per channel.

How to use

As channel name you must provide channel ID and dates with format {CHANNEL_ID}|{OLDEST_TIME}|{LATEST_TIME}

To dump only specified channel where messages not older

slackdump 'C123|2024-04-07T23:02:12' 'C321|2024-01-01T23:02:12'

To dump only specified channels where message time between specified time

slackdump 'C123|2024-01-07T23:02:12|2024-04-07T23:02:12' 'C321|2024-01-01T23:02:12|2024-03-07T23:02:12'

To dump only specified channels where message time older than specified time

slackdump 'C123||2024-04-07T23:02:12' 'C321||2024-03-07T23:02:12'

To dump all available channels but channel C123 and C321 only from specified time

slackdump '^C123|2024-04-07T23:02:12' '^C321|2024-01-01T23:02:12'
rusq commented 2 months ago

Hey @kolsys thanks for your contribution! It looks good, the only thing is that one test needs updating - would you be able to update it?

Once merged, I'll port this to v3.

kolsys commented 2 months ago

Hey @kolsys thanks for your contribution! It looks good, the only thing is that one test needs updating - would you be able to update it?

Fixed.