File: message-set-header.at

package info (click to toggle)
mailutils 1%3A3.5-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 33,096 kB
  • sloc: ansic: 172,443; sh: 92,036; yacc: 7,423; cpp: 3,827; makefile: 3,169; python: 2,876; lex: 2,013; exp: 1,272; awk: 152; lisp: 132; sed: 31
file content (19 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This file is part of GNU Mailutils                    -*- Autotest -*-
# Copyright (C) 2018 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
# This is free software: you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.
AT_SETUP([message-set-header])
AT_KEYWORDS([message])
MU_GUILE_CHECK([
(let ((msg (test-message)))
  (mu-message-set-header msg "Sender" "gray@example.org")
  (display (sort-headers (mu-message-get-header-fields msg)))
  (newline)
  (mu-message-set-header msg "Sender" "root@example.org")
  (mu-message-set-header msg "From" "bin@example.com" #t)
  (display (sort-headers (mu-message-get-header-fields msg))))],
0,
[((From . user@example.org) (Sender . gray@example.org) (Subject . De omnibus rebus et quibusdam aliis) (To . someone@example.com))
((From . bin@example.com) (Sender . gray@example.org) (Sender . root@example.org) (Subject . De omnibus rebus et quibusdam aliis) (To . someone@example.com))])
AT_CLEANUP