The problem is that adding a new clone() virtual method to GMimeObject (and likely to GMimeDataWrapper as well) would break ABI. Is there a reason you can’t simply re-use the same GMimeMessage structure and simply replace the To addresses and the main message text after sending the message to the previous recipient? That would be even more efficient than cloning. Jeff From: Kane Kim <kane isturm gmail com> Yeah, this is actually one of our major use cases, we have to create different copies of a message efficiently (for different recipients). Re-composing message after parsing seems to be non-trivial (keeping exactly the same structure),
re-parsing message again - inefficient. On Fri, Aug 4, 2017 at 9:08 AM, Daniel Kahn Gillmor <dkg fifthhorseman net> wrote:
|