Comments (5)
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.
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.
OK. If you can make a test case and patch, even better :)
Mikel
from mail.
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.
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)
- Error when send email with Round bracket In "From" HOT 1
- Various questions regarding built-in capabilities HOT 4
- Re-encoding a multipart message introduces extra newline characters
- Address list with comment before address parses incorrectly if no space after comma
- Gmail SMTP relay issues after upgrading to 2.8.1 HOT 2
- Forward email doesn't encode the attachment correctly HOT 1
- Running into an issue while sending an SMTP mail with v2.7.1 on Ruby 3.0.0 on container
- Encoding
- Parsing a `Mail::Message` from a string ignores the string's encoding
- Net::IMAP connection uses insecure deprecated options HOT 7
- Delivery with RCPT / NOTIFY not achievable
- Where to Report Vulnerabilities? HOT 2
- Email content tampering vulnerability due to crafted file names
- Mail::AddressList cannot parse CC header value
- [Question] Sending email directly to the recipient without a MTA (sendmail, postfix) and without third-party services
- Uniform interface for getting email body?
- Excessive memory usage with attachments
- read_only: true sets email to read
- Release a new version?
- Parse attachment filenames when missing RFC-required quotes, for certain content-types?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mail.