anybody know how I can work around this bug?
Although deleting the mail folder seems to work it doesn't fix the underlying bug.
I believe this is the same bug as
this one, in which a closure in part of the BitShares mail code captured a variable by-reference that went out-of-scope. That particular bug was fixed
26 days ago in the master branch, but since nearly everyone is on v0.4.24 and v0.4.25 has yet to be released, people would still be exposed to that bug.
So, if you are compiling from source, you could check out the master branch from git and compile that, and I think your problems should go away then (or don't and just wait for v0.4.25 if you want to be extra conservative and safe). If you depend on the pre-compiled executables, then you have no other choice then just waiting until v0.4.25 is released and just keep deleting the mail folder every time you make a transaction that causes a segfault.