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.
jekyll-mail-comments
Advanced tools
This gem fetches email from your mailbox by filtering with specific suffix, it makes data files which you can use to generate Jekyll comments.
cd ~/jekull_site
gem install mail_comments
There few credentials your have to setup before run:
** MC_LOGIN - Login to imap server ** MC_PASSWORD - Password for imap server ** MC_HOST - IMAP server hostname ** MC_PORT - IMAP server port ** MC_SUBJECT_SUFFIX - Suffix to filter comments
see .env.dist
jekyll-mail-comments-fetch
After that if new comments are present it will generate data files with comments which you can process with Jekyll with data tag. See here. https://jekyllrb.com/docs/datafiles/ or below.
Here is how to you can include comments block into your Jekyll post template
<section>
{% include comments-count.html replies_to=page.path %}
{% if comment_count %}
<h2>Comments ({{- comment_count -}}) <small class="text-muted">Read carefuly </small> </h2>
{% include comments.html replies_to=page.path indent_class="ml-auto" title=page.title %}
{% else %}
<h2>No comments here yet <small class="text-muted">Write here gently</small></h2>
{% endif %}
<div class="mt-3"><a class="btn btn-outline-secondary btn-block" href="mailto:{{site.comments.email}}?subject=RE:{{page.path}}:{{site.comments.subject_suffix}}:{{post.title}}">Write a comment</a> </div>
</section>
Templates can be found inside templates directory of this gem.
Inspiration while searching for already existing gem for email comments
FAQs
Unknown package
We found that jekyll-mail-comments 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.