Giter Site home page Giter Site logo

Comments (5)

mikel avatar mikel commented on June 3, 2024

Hmm.. this is interesting because Mail does NOT serialize the BCC field, on purpose.. because when you are dumping the email into a sendmail process, you don't want the BCC fields to be sent to all the recipients, so you don't paste it in.

What does delayed job use to serialize?

Mikel

from mail.

ahawkins avatar ahawkins commented on June 3, 2024

DJ uses YAML serialization. I think the problem was some where in the serialization of one of the syntax nodes. I don't have the stack traces on hand atm. I could construct a test case. It was creating log entries over 6K lines long for each failed job. The error happend when I called from_addrs.

Adam

from mail.

mikel avatar mikel commented on June 3, 2024

OK. If you can make a test case and patch, even better :)

Mikel

from mail.

ledermann avatar ledermann commented on June 3, 2024

Any news about this? Serialization of mail instances is still failing:

Mail.new.to_yaml
=> TypeError: can't dump anonymous class Class

With the old tmail gem I used to store e-mails in the database as text via to_s, which includes the BCC field (the tmail gem removed it before sending via the "delete_no_send_fields" method).

For now it seems I have to store the BCC elsewhere, but I prefer to use serialization to get the whole thing.

from mail.

mikel avatar mikel commented on June 3, 2024

ledermann, if you want to make a patch that supports a #to_yaml call, that handles this, then I will merge.

Mikel

from mail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.