#!/bin/sh ###################################################### # # Test RFC2047 decoding the header in replgroupcomps # ###################################################### export LC_CTYPE=en_US.utf8 # create message with RFC 2047-encoded header msg=11 cat > $MH_TEST_DIR/Mail/inbox/$msg < Return-Path: test To: Some User Date: Fri, 29 Sep 2006 00:00:00 Subject: decode test This is decode test message. EOF # create test replgroupcomps that decodes headers form=$MH_TEST_DIR/$$.replgroupcomps cat > $form <)\ %<(nonnull)%(void(width))%(putaddr To: )\n%>\ %(lit)%(formataddr(decode{to}))%(formataddr(decode{cc}))%(formataddr(me))\ %<(nonnull)%(void(width))%(putaddr cc: )\n%>%>\ %; -------- EOF expected=$MH_TEST_DIR/$$.expected actual=$MH_TEST_DIR/Mail/draft cat > $expected < cc: Some User -------- Töm Ørley writes: > This is decode test message. EOF repl -editor true -format -form $form -group -nocc me -nowhatnowproc $msg diff -u $expected $actual