jneidel / signal-cli-to-file

Save incoming signal messages as files (for your note-taking system)
5 stars 0 forks source link

Exclude when appending #9

Open jneidel opened 1 month ago

jneidel commented 1 month ago

Given the messages:

ok:
hi
ok:
ho

We get the result:

ok.txt

ok:
hiok:
ho

Expected:

ok:
hi
ho
jneidel commented 1 month ago

Could be achieved simply by not writing the title (in front of the colon) into the body. I.e. it's just the file name.

Otherwise I would have the task in the write function to again detect colon in the first line, which might not even be possible at that point.