176 lines
4.5 KiB
INI
176 lines
4.5 KiB
INI
#
|
|
# gpg-mailgate
|
|
#
|
|
# This file is part of the gpg-mailgate source code.
|
|
#
|
|
# gpg-mailgate is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# gpg-mailgate source code is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with gpg-mailgate source code. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
# NOTE: We use <key>:<value> syntax, because some values contain
|
|
# colons and that is default ConfigParser key-value separator.
|
|
|
|
[relay]
|
|
port: 2500
|
|
script: test/utils/relay.py
|
|
|
|
[dirs]
|
|
keys: test/keyhome
|
|
certs: test/certs
|
|
|
|
[tests]
|
|
e2e_log: test/logs/e2e.log
|
|
e2e_log_format: %(asctime)s %(pathname)s:%(lineno)d %(levelname)s [%(funcName)s] %(message)s
|
|
e2e_log_datefmt: %Y-%m-%d %H:%M:%S
|
|
lacre_log: test/logs/lacre-simple.log
|
|
log_config: test/lacre-logging.conf
|
|
|
|
# TEST IDENTITIES AND SETTINGS:
|
|
#
|
|
# Email Key Style
|
|
# alice@disposlab RSA 3072 PGP/Inline
|
|
# bob@disposlab ED25519 PGP/Inline
|
|
# carlos@disposlab none PGP/Inline
|
|
# evan@disposlab ED25519 PGP/MIME
|
|
|
|
[case-1]
|
|
descr: Clear text message to a user without a key
|
|
to: carlos@disposlab
|
|
in: test/msgin/clear2clear.msg
|
|
out: Body of the message.
|
|
|
|
[case-2]
|
|
descr: Clear text message to a user with an RSA key
|
|
to: alice@disposlab
|
|
in: test/msgin/clear2rsa.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-3]
|
|
descr: Clear text message to a user with an Ed25519 key
|
|
to: bob@disposlab
|
|
in: test/msgin/clear2ed.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-4]
|
|
descr: Encrypted message to a user with an Ed25519 key
|
|
to: bob@disposlab
|
|
in: test/msgin/ed2ed.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-5]
|
|
descr: Signed message to a user with an Ed25519 key
|
|
to: bob@disposlab
|
|
in: test/msgin/signed.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-6]
|
|
descr: Multipart encrypted message to a user with an Ed25519 key.
|
|
to: bob@disposlab
|
|
in: test/msgin/multipart2rsa.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-7]
|
|
descr: Clear text message to a user with an RSA key and PGP/MIME enabled in configuration
|
|
to: evan@disposlab
|
|
in: test/msgin/clear2rsa2.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-8]
|
|
descr: Clear text message to address with delimiter and a user with an Ed25519 key
|
|
to: bob+foo@disposlab
|
|
in: test/msgin/clear2ed-delim.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-9]
|
|
descr: Clear text message with inline PGP markers to recipient with a key
|
|
to: bob@disposlab
|
|
in: test/msgin/with-markers2clear.msg
|
|
out-not: This message includes inline PGP markers.
|
|
|
|
[case-10]
|
|
descr: UTF-8 message (yields Base64)
|
|
to: carlos@disposlab
|
|
in: test/msgin/utf8.msg
|
|
out: xYHEhENaTk/FmsSGLiBaYcW6w7PFgsSHIGfEmcWbbMSFIGphxbrFhC4=
|
|
|
|
[case-11]
|
|
descr: Non-ASCII message (ISO-8859-2; yields quoted-printable)
|
|
to: carlos@disposlab
|
|
in: test/msgin/nonascii.msg
|
|
out: =A3=A1CZNO=A6=C6.
|
|
|
|
[case-12]
|
|
descr: multipart/alternative with UTF-8, not encrypted
|
|
to: carlos@disposlab
|
|
in: test/msgin/utf8-alternative.msg
|
|
out-not: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-13]
|
|
descr: multipart/alternative with UTF-8, encrypted
|
|
to: evan@disposlab
|
|
in: test/msgin/utf8-alternative.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-14]
|
|
descr: Clear text with UTF-8, PGP/MIME
|
|
to: evan@disposlab
|
|
in: test/msgin/utf8-plain.msg
|
|
out: Content-Type: application/pgp-encrypted
|
|
|
|
[case-15]
|
|
descr: Clear text with UTF-8, PGP/Inline
|
|
to: bob@disposlab
|
|
in: test/msgin/utf8-plain.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-16]
|
|
descr: HTML, cleartext
|
|
to: carlos@disposlab
|
|
in: test/msgin/html-utf8.msg
|
|
out: PGh0bWw+CjxoZWFkPgo8L2hlYWQ+Cjxib2R5PgpaQcW7w5PFgcSGIEfEmMWaTMSEIEpBxbnFgy48
|
|
|
|
[case-17]
|
|
descr: HTML, PGP/MIME
|
|
to: evan@disposlab
|
|
in: test/msgin/html-utf8.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-18]
|
|
descr: HTML, PGP/Inline
|
|
to: bob@disposlab
|
|
in: test/msgin/html-utf8.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-19]
|
|
descr: US-ASCII HTML, cleartext
|
|
to: carlos@disposlab
|
|
in: test/msgin/html-ascii.msg
|
|
out: <html>
|
|
|
|
[case-20]
|
|
descr: US-ASCII HTML, PGP/Inline
|
|
to: bob@disposlab
|
|
in: test/msgin/html-ascii.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-21]
|
|
descr: US-ASCII HTML, PGP/MIME
|
|
to: evan@disposlab
|
|
in: test/msgin/html-ascii.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|
|
|
|
[case-22]
|
|
descr: HTML with emoji, PGP/MIME
|
|
to: evan@disposlab
|
|
in: test/msgin/emoji.msg
|
|
out: -----BEGIN PGP MESSAGE-----
|