atlocal.in
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# @configure_input@ -*- shell-script -*-
# Configurable variable values for Mailutils test suite.
# Copyright (C) 2011-2012, 2014-2017 Free Software Foundation, Inc.
PATH=@abs_builddir@:@abs_top_builddir@/imap4d:$top_srcdir:$srcdir:$PATH
MU_ULONG_MAX_1=@MU_ULONG_MAX_1@
make_config() {
CWD=`pwd`
HOMEDIR=${CWD}${1:+/}$1
cat > imap4d.conf <<EOT
logging {
syslog off;
severity notice;
}
gsasl {
enable off;
}
namespace personal {
prefix "" {
directory "$HOMEDIR";
}
prefix "~" {
directory "$HOMEDIR";
}
}
mailbox {
folder "$CWD";
mailbox-pattern "$CWD/INBOX";
}
EOT
}
remove_untagged() {
sed '/^\*/d'
}
filter_untagged() {
sed 's/\(^\* \(OK\|BAD\|NO\|PREAUTH\)\).*/\1/'
}
remove_uidvalidity() {
sed '/^\* OK \[UIDVALIDITY/d'
}
remove_select_untagged() {
sed '/^\* [0-9][0-9]* EXISTS/,/^1 OK.*SELECT Completed/d'
}
fixup_tz() {
sed '/^\* [0-9][0-9]* FETCH/s/ [+-][0-9][0-9][0-9][0-9]"/ +0000"/'
}
sorted_list_output() {
sed '/^\* PREAUTH/d
/^\* OK/d
/^\* BYE/d
/^\* [0-9][0-9]* EXISTS/d
/^\* [0-9][0-9]* RECENT/d
/^\* FLAGS/d
/^[0-9X][0-9]* OK/d' | sort
}