-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ec19b4
commit 6e46cfd
Showing
9 changed files
with
179 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
# Changelog | ||
|
||
## [0.xx] - | ||
|
||
### Added | ||
|
||
- Add testsuite for m_mu. | ||
|
||
## [0.54] - 2024-07-27 | ||
|
||
### Changed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
First1 Family1 <[email protected]> | ||
[email protected] (First2 Family2) | ||
<[email protected]> (First3 Family3) | ||
"First4 Family4" <[email protected]> | ||
[email protected] ("First5 Family5") | ||
<[email protected]> ("First6 Family6") | ||
<[email protected]> | ||
[email protected] | ||
[email protected] () | ||
"" <[email protected]> | ||
Short11 <[email protected]> | ||
"Short12" <[email protected]> | ||
[email protected] (Short13) | ||
[email protected] ("Short14") | ||
Other Other <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
lbdbq: 8 matches | ||
"[email protected]" "Short11" mu cfind | ||
"[email protected]" "Short12" mu cfind | ||
"[email protected]" "Short13" mu cfind | ||
"[email protected]" "Short14" mu cfind | ||
"[email protected]" "First1 Family1" mu cfind | ||
"[email protected]" "First2 Family2" mu cfind | ||
"[email protected]" "First4 Family4" mu cfind | ||
"[email protected]" "First5 Family5" mu cfind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/perl | ||
# | ||
# Copyright (c) 2024 Roland Rosenfeld <[email protected]> | ||
# | ||
# This program 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 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program 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 this program; if not, write to the Free Software Foundation, | ||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,, USA. | ||
|
||
use strict; | ||
use warnings; | ||
|
||
if ($#ARGV != 0) { | ||
die "Usage: $0 datainputdir\n"; | ||
} | ||
|
||
my $maildir = "maildir"; | ||
my $muhome = "muhome"; | ||
my $mailaddrfile = "$ARGV[0]/from-addresses"; | ||
|
||
system "rm -rf $maildir $muhome"; | ||
mkdir $maildir; | ||
|
||
for my $d ('cur', 'new', 'tmp') { | ||
mkdir "$maildir/$d"; | ||
} | ||
|
||
open (my $fhfrom, "<", "$mailaddrfile") || die "cannot open $mailaddrfile"; | ||
my $count = 0; | ||
while (<$fhfrom>) { | ||
chomp; | ||
my $filename = "$maildir/cur/$count.test:2,S"; | ||
open (my $fhmail, ">", "$filename") || die "cannot write $filename"; | ||
print $fhmail "From: $_\n"; | ||
print $fhmail "To: me\@example.org\n"; | ||
print $fhmail "Subject: test $count\n"; | ||
print $fhmail "\n\nbody\n"; | ||
close $fhmail; | ||
$count++; | ||
} | ||
close $fhfrom; | ||
|
||
system "mu init --maildir=$maildir --muhome=$muhome >/dev/null"; | ||
system "mu index --muhome=$muhome >/dev/null"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
dnl Copyright (c) 2024 Roland Rosenfeld <[email protected]> | ||
dnl | ||
dnl This program is free software; you can redistribute it and/or modify | ||
dnl it under the terms of the GNU General Public License as published by | ||
dnl the Free Software Foundation; either version 2 of the License, or | ||
dnl (at your option) any later version. | ||
dnl | ||
dnl This program is distributed in the hope that it will be useful, | ||
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
dnl GNU General Public License for more details. | ||
dnl | ||
dnl You should have received a copy of the GNU General Public License | ||
dnl along with this program; if not, write to the Free Software Foundation, | ||
dnl Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
AT_BANNER([Test m_mu]) | ||
AT_SETUP(m_mu) | ||
AT_SKIP_IF([! which mu]) | ||
|
||
AT_CHECK([perl $abs_srcdir/gen-maildir $abs_srcdir/data]) | ||
AT_CHECK([cat $abs_srcdir/data/m_mu.expected > expout]) | ||
AT_CHECK([env LBDB_OVERRIDE_METHODS=m_mu \ | ||
OVERRIDE_MU_HOME=muhome \ | ||
lbdbq example.com], [], [expout]) | ||
|
||
AT_CLEANUP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters