Comments (4)
/cc @bufferoverflow
from letter_opener_web.
Hey!
Sorry for the long delay here. Did you figure this one out? If not, mind creating a minimal app that reproduces the problem? I might be able to take a look. Cheers!
from letter_opener_web.
Hey @fgrehm thanks for the answer. We implemented the support for S/MIME in Gitlab, though without previews 😅
I actually can provide you a fixture signed email that you can load with the Mail
gem and use for your tests, just uploaded one in another MR under https://gitlab.com/gitlab-org/gitlab/-/blob/886e0213ab941ced894dc5de178468094111a5f9/spec/fixtures/emails/valid_reply_signed_smime.eml:
pry(main)> email = Mail.new(File.binread('./spec/fixtures/emails/valid_reply_signed_smime.eml'))
=> #<Mail::Message:70331044711260, Multipart: true, Headers: <Date: Mon, 17 Feb 2020 22:56:47 +0100>, <From: "Louzan Martinez, Diego (ext) (SI BP R&D ZG)" <[email protected]>>, <To: Administrator / htmltest <[email protected]>>, <Message-ID: <[email protected]>>, <In-Reply-To: <[email protected]>>, <References: <[email protected]> <[email protected]> <[email protected]>>, <Subject: Re: htmltest | test issue (#1)>, <Mime-Version: 1.0>, <Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha256; boundary="B_3664825007_1904734766">, <User-Agent: Microsoft-MacOutlook/10.22.0.200209>, <Thread-Topic: htmltest | test issue (#1)>>
pry(main)> email.multipart?
=> true
pry(main)> email.parts.map(&:content_type)
=> ["multipart/mixed; boundary=B_3664825007_384940722", "application/pkcs7-signature; name=smime.p7s"]
pry(main)> email.parts[0].part.map(&:content_type)
=> ["multipart/alternative; boundary=B_3664825007_1519466360",
"image/png; name=gitlab_logo.png; x-mac-creator=4F50494D; x-mac-type=504E4766",
pry(main)> email.parts[0].parts[0].parts.map(&:content_type)
=> ["text/plain; charset=UTF-8", "text/html; charset=UTF-8"]
from letter_opener_web.
Hey @dlouzan! Sorry for the long delay here. Unfortunately I'm not sure how to make that .eml
be translated into what letter_opener
generates.
I'm not sure if this is an issue directly here, or the underlying letter_opener engine (or even maybe directly on rails / gitlab). Since gitlab is not giving me much log info, I'm not sure where to tackle this.
I guess I didn't pay enough attention to your msg in the first place (sorry about that!) but the rendered email we see on the right side of that screen is really just the .html
generated by letter_opener
(usually found under tmp/letter_opener
). If the HTML is coming back blank I guess there's nothing much we can do on this project :-(
Would you mind opening an issue with letter_opener
? Happy to help once we have an example application to try things out. For now will just close this issue but we can continue the discussion if you want to bounce some ideas before opening that issue :-)
Cheers!
from letter_opener_web.
Related Issues (20)
- Bump rails deps requirements to 5.0+ HOT 1
- Update to latest bootstrap release (or use another framework) HOT 4
- ignore
- Missing gem dependency on rexml HOT 2
- clean up fix_link_html method
- Feature Request: Option to avoid launchy altogether
- No route matches [GET] “/bootstrap.min.css.map” HOT 1
- ActionController::InvalidAuthenticityToken in LetterOpenerWeb::LettersController#clear HOT 4
- layout somehow messed up HOT 3
- Not able to upgrade to Rails 7.1
- Getting "xprop: unable to open display" while sending an email in the docker. HOT 1
- Can't disable or toggle the dark theme HOT 2
- Execution of ApplicationController filters HOT 5
- Does not work with Rails API only HOT 2
- Wrong layout used in rails 5.1.4 HOT 1
- SystemStackError occures when more than 30 messages. HOT 2
- Missing Template Error HOT 2
- Reading application.scss under the node_modules directory? HOT 1
- Rails 6.0 is out HOT 1
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 letter_opener_web.