terra-sync / cnc

Seamless Database Replication tool
GNU General Public License v3.0
4 stars 2 forks source link

Read email body from file #47

Closed charmitro closed 8 months ago

charmitro commented 9 months ago

Currently the email body is passed to our Rust send_email function via a *const c_char argument,

https://github.com/terra-sync/cnc/blob/9fe43151a1c7adb0297ad7eb68c282ab9f7714e7/rust/email/src/lib.rs#L17

With the completion of #46 we'd need to change this to accept a filename, and use the files content for the email body.

charmitro commented 9 months ago

Cc @zycon91

This should be fairly easy to implement if you're interested.

zycon91 commented 9 months ago

Cc @zycon91

This should be fairly easy to implement if you're interested.

I will take a look at it. Seems quite simple with a quick first look.

charmitro commented 9 months ago

Cc @zycon91 This should be fairly easy to implement if you're interested.

I will take a look at it. Seems quite simple with a quick first look.

Sure! Take your time, @panosfol need to fix #46 first.

charmitro commented 9 months ago

@zycon91 No longer blocked, self-assign if you're still interested.