diff options
| author | Guilhem Moulin <guilhem@fripost.org> | 2020-07-02 00:15:41 +0200 | 
|---|---|---|
| committer | Guilhem Moulin <guilhem@fripost.org> | 2020-07-02 00:15:41 +0200 | 
| commit | 9bf5257bb6f0e67d49015941827496586271bede (patch) | |
| tree | edc8fe5f36b22b509092395a32e72796efeda85d /tests/pullimap/t | |
| parent | c54903cd6308cf4a56a439ea74d3f8943e5b605c (diff) | |
| parent | 95df46e54ce090506cdce1c54616ea849670c2db (diff) | |
Merge tag 'upstream/0.5.1' into debian
Upstream version 0.5.1
Diffstat (limited to 'tests/pullimap/t')
| -rw-r--r-- | tests/pullimap/t | 10 | 
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/pullimap/t b/tests/pullimap/t index 115432d..0dfe634 100644 --- a/tests/pullimap/t +++ b/tests/pullimap/t @@ -6,15 +6,13 @@ step_start "\`pullimap --idle\` refuses to create the state file"  ! pullimap --idle "remote" || error  step_done -# compare mailboxes; can't compare the RFC 3501 TEXT as LMTP adds a -# Received: header. -# TODO unset lmtp_add_received_header once available in sid: -# https://doc.dovecot.org/settings/dovecot_core_settings/#lmtp-add-received-header +# compare mailboxes (can't compare the RFC 3501 TEXT as the LMTPd inconditionally +# adds a Return-Path: header -- and also Delivered-To: and Received: to by default)  list_mails_sha256() {      local u="$1" guid uid +    local fields="body date.sent imap.bodystructure imap.envelope"      while read guid uid; do -        doveadm -u "$u" -f "flow" fetch body mailbox-guid "$guid" uid "$uid" \ -            | sed "1s/body=//" | sha256sum +        doveadm -u "$u" -f "flow" fetch "$fields" mailbox-guid "$guid" uid "$uid" | sha256sum      done < <(doveadm -u "$u" search mailbox "$MAILBOX") | sort -f  }  check() {  | 
