Skip to content

Commit

Permalink
v2.35.1
Browse files Browse the repository at this point in the history
  • Loading branch information
the-djmaze committed Feb 27, 2024
1 parent 275ad40 commit b021142
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 6 deletions.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
## 2.35.1 – 2024-02-26

### Added
- Search functionality in Admin -> Config
- Cache S/MIME passphrases when "remember" is checked
- Import S/MIME certificate popup
- pre-verify S/MIME opaque signed messages so we have a body to view
- Sort PGP keys and S/MIME certificates on email address
- Optionally use existing private key to generate S/MIME certificate

### Changed
- Better handling to detect which PGP or S/MIME sign/encrypt to use
- Improved StorageType handling
- Cleanup and improved Capa handling
- OPEN_PGP should be OPENPGP as it is one word
- Use get_debug_type() instead of gettype()
- Require OpenSSL due to S/MIME
- AbstractProvider::IsActive() is now an abstract method and must be defined in child class
- Make better use of SnappyMail\SensitiveString
- Update Polish translation by @tinola

### Fixed
- Verify S/MIME signatures got broken allong the way while implementing this
- Generate S/MIME self-signed certificate failed to keep existing private key
- MIME parser RegExp didn't escape boundary which caused issues
- TypeError: b64Encode(...).match(...) is null on saving compose draft
- Fix timestampToString() for future dates


## 2.35.0 – 2024-02-20

### Added
Expand Down
2 changes: 1 addition & 1 deletion integrations/cloudron/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This app packages SnappyMail <upstream>2.35.0</upstream>.
This app packages SnappyMail <upstream>2.35.1</upstream>.

SnappyMail is a simple, modern, lightweight & fast web-based email client.

Expand Down
2 changes: 1 addition & 1 deletion integrations/cloudron/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN mkdir -p /app/code
WORKDIR /app/code

# If you change the extraction below, be sure to test on scaleway
VERSION=2.35.0
VERSION=2.35.1
RUN wget https://github.com/the-djmaze/snappymail/releases/download/v${VERSION}/snappymail-${VERSION}.zip -O /tmp/snappymail.zip && \
unzip /tmp/snappymail.zip -d /app/code && \
rm /tmp/snappymail.zip && \
Expand Down
2 changes: 1 addition & 1 deletion integrations/nextcloud/snappymail/appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>snappymail</id>
<name>SnappyMail</name>
<summary>SnappyMail Webmail</summary>
<version>2.35.0</version>
<version>2.35.1</version>
<licence>agpl</licence>
<author>SnappyMail, RainLoop Team, Nextgen-Networks, Tab Fitts, Nathan Kinkade, Pierre-Alain Bandinelli</author>
<description><![CDATA[**Simple, modern, lightweight & fast web-based email client.**
Expand Down
2 changes: 1 addition & 1 deletion integrations/virtualmin/snappymail.pl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sub script_snappymail_longdesc
# script_snappymail_versions()
sub script_snappymail_versions
{
return ( "2.35.0" );
return ( "2.35.1" );
}

sub script_snappymail_version_desc
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "SnappyMail",
"description": "Simple, modern & fast web-based email client",
"private": true,
"version": "2.35.0",
"version": "2.35.1",
"homepage": "https://snappymail.eu",
"author": {
"name": "DJ Maze",
Expand Down
7 changes: 6 additions & 1 deletion plugins/nextcloud/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ public function MainFabrica(string $sName, &$mResult)
);
}
/*
if ('storage' === $sName || 'storage-local' === $sName) {
if ($this->Config()->Get('plugin', 'storage', false) && ('storage' === $sName || 'storage-local' === $sName)) {
require_once __DIR__ . '/storage.php';
$oDriver = new \NextcloudStorage(APP_PRIVATE_DATA.'storage', $sName === 'storage-local');
}
Expand All @@ -346,6 +346,11 @@ protected function configMapping() : array
\RainLoop\Plugins\Property::NewInstance('ignoreSystemAddressbook')->SetLabel('Ignore system addressbook')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetDefaultValue(true),
/*
\RainLoop\Plugins\Property::NewInstance('storage')->SetLabel('Use Nextcloud user ID in config storage path')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetDefaultValue(false)
*/
\RainLoop\Plugins\Property::NewInstance('calendar')->SetLabel('Enable "Put ICS in calendar"')
->SetType(\RainLoop\Enumerations\PluginPropertyType::BOOL)
->SetDefaultValue(false)
Expand Down
4 changes: 4 additions & 0 deletions snappymail/v/0.0.0/app/libraries/snappymail/http/response.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ function __construct(string $request_uri, int $status = 0, array $headers = null
if (\function_exists('gzinflate') && isset($this->headers['content-encoding'])
&& (false !== \stripos($this->headers['content-encoding'], 'gzip'))) {
$this->body = \gzinflate(\substr($body, 10, -4));
if (false === $this->body) {
$err = \error_get_last() ?: ['message' => 'gzinflate failed'];
throw new \RuntimeException("{$err['message']} for {$request_uri}");
}
} else {
$this->body = $body;
}
Expand Down

0 comments on commit b021142

Please sign in to comment.