archive-mail

Maintains maildir archives synced with current maildirs

git clone https://git.8pit.net/archive-mail.git

 1#!/bin/sh
 2. "${0%/*}/common.sh"
 3
 4add_mail current/cur/1:2,S archive/cur/1:2, expected/cur/1:2,S <<-EOF
 5	From: Hans Acker <hans@example.com>
 6	Subject: Test
 7	Date: Thu, 23 Mar 2023 15:42:23 +0200
 8	Message-Id: <EOH1F3NUOY.2KBVMHSBFATNY@example.org>
 9
10	This message has modified flags.
11EOF
12
13add_mail current/cur/2:2, archive/cur/2:2, expected/cur/2:2, <<-EOF
14	From: Max Mustermann <max@example.com>
15	Subject: Unmodified
16	Date: Sun, 02 Feb 2020 02:02:02 +0100
17	Message-Id: <EOH1F3NUOY.232420SBFATNY@example.org>
18
19	This message is unmodified.
20EOF
21
22run_test