Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Mail Lib
An mail parsing lib.
== Features
== Installation
gem sources -a http://gems.github.com
sudo gem install aklaiber-mail
== Usage
Create new Mail
mail = Mail::Mail.new
mail.header.to = "test_to@test.de"
mail.header.from = "test_from@test.de"
mail.header.subject = "Test Mail"
mail.header.content_transfer_encoding = "quoted-printable"
mail.header.content_type = {charset => "UTF-8"}
mail.add_part("text/plain", "Hallo World !!!")
Create new Mail with Text and HTML part
mail = Mail::Mail.new
mail.header.to = "test_to@test.de"
mail.header.from = "test_from@test.de"
mail.header.subject = "Test Mail"
mail.header.content_transfer_encoding = "quoted-printable"
mail.header.content_type(:charset) = "UTF-8"
mail.add_part("text/plain", "Hallo World !!!")
mail.add_part("text/html", "<strong>Hallo World !!!</strong>")
Create new Mail Attachment
mail = Mail::Mail.new
mail.header.to = "test_to@test.de"
mail.header.from = "test_from@test.de"
mail.header.subject = "Test Mail"
mail.header.content_transfer_encoding = "quoted-printable"
mail.header.content_type(:charset) = "UTF-8"
mail.add_part("text/plain", "Hallo World !!!")
mail.add_part("image/jpeg", File.read("path/to/image"))
Load an existing Mail
mail = Mail::Mail.new(File.read("path/to/mail"))
puts mail.header.to => ["test_to@test.de"]
Get attachments from a Mail
mail = Mail::Mail.new(File.read("path/to/mail"))
if mail.header.attachments?
mail.attachments do |attachment|
puts attachment.header.content_type(:main) => "image/tiff"
puts attachment.header.content_disposition(:filename) => "fax.tif"
puts attachment.size => 408850
end
end
FAQs
Unknown package
We found that aklaiber-mail demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.