This commit is contained in:
Jean-Philippe Pialasse 2024-09-05 22:34:53 -04:00
commit 19128e68bc
5 changed files with 115 additions and 0 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
*.tar.gz filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.tar.xz filter=lfs diff=lfs merge=lfs -text

19
Makefile Normal file
View File

@ -0,0 +1,19 @@
NAME := roundcube-plugin-dovecot_impersonate
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

22
README.md Normal file
View File

@ -0,0 +1,22 @@
# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> roundcube-plugin-dovecot_impersonate
SMEServer Koozali local git repo for roundcube-plugin-dovecot_impersonate
## Source
https://github.com/corbosman/dovecot_impersonate
## Bugzilla
Show list of Koozali outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=roundcube-plugin-dovecot_impersonate&product=SME%20Server%2011.X&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED)
## Description
Roundcube Webmail is a browser-based multilingual IMAP client with an
application-like user interface. It provides full functionality
expected from an e-mail client, including MIME support, address book,
folder manipulation and message filters.
This plugin lets you impersonate another user using the dovecot master user feature.
WARNING: please only use for user support or similar operational issues. I recommend you always get approval. Using this without consent may be illegal in some countries. For more information about this feature read: http://wiki.dovecot.org/Authentication/MasterUsers
The default separator character used is '*', but you can set a different one using the plugin config file.

BIN
roundcube-dovecot_impersonate-2.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,68 @@
%define name roundcube-plugin-dovecot_impersonate
%define version 2.1
%define release 1
Summary: Provides context Menu to Roundcube.
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
#https://github.com/corbosman/dovecot_impersonate
Source: roundcube-dovecot_impersonate-%{version}.tar.gz
License: GNU General Public License Version 3+
Group: SMEserver/addon
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
BuildArchitectures: noarch
BuildRequires: smeserver-devtools
Requires: smeserver-release >= 11.0
AutoReqProv: no
%description
Roundcube Webmail is a browser-based multilingual IMAP client with an
application-like user interface. It provides full functionality
expected from an e-mail client, including MIME support, address book,
folder manipulation and message filters.
This plugin lets you impersonate another user using the dovecot master user feature.
WARNING: please only use for user support or similar operational issues. I recommend
you always get approval. Using this without consent may be illegal in some countries.
For more information about this feature read: http://wiki.dovecot.org/Authentication/MasterUsers
The default separator character used is '*', but you can set a different one using the plugin config file.
%changelog
* Mon Sep 02 2024 Jean-Philippe Pialasse <jpp@koozali.org> 2.1-1.sme
- initial release for SME 11
%prep
%setup -q -n roundcube-dovecot_impersonate-%{version}
%build
#perl createlinks
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/roundcubemail/plugins/dovecot_impersonate/
( find . -depth -print | cpio -dump $RPM_BUILD_ROOT/usr/share/roundcubemail/plugins/dovecot_impersonate/)
rm -f %{name}-%{version}-filelist
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
> %{name}-%{version}-filelist
#echo "%doc COPYING" >> %{name}-%{version}-filelist
#--dir <dir> 'attr(755,user,grp)' \
#--file <file> 'attr(755,root,root)' \
%clean
cd ..
rm -rf roundcube-dovecot_impersonate-%{version}
%pre
%preun
%post
%postun
#uninstall
%files -f %{name}-%{version}-filelist
%defattr(-,root,root)