From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id A4B546DE0C66 for ; Thu, 2 Nov 2017 12:09:04 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.02 X-Spam-Level: X-Spam-Status: No, score=0.02 tagged_above=-999 required=5 tests=[AWL=0.040, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SpGCrSZB_Ha4 for ; Thu, 2 Nov 2017 12:09:04 -0700 (PDT) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by arlo.cworth.org (Postfix) with ESMTPS id B38966DE0C3F for ; Thu, 2 Nov 2017 12:09:03 -0700 (PDT) Received: by mail-lf0-f51.google.com with SMTP id g70so632311lfl.3 for ; Thu, 02 Nov 2017 12:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=WrxQf94IKL5tZN2NzWQ879x4W5A+hT+lOAVTPH6/05A=; b=XuGT6IDkBYltGYB2FdahPTcwhE3DUSjJxclrq8TbRr1oAhc5RjlH/YZKTCcVeHCv30 34yzxI3zMXDmxUbuLBsh40VjVaTO3E5WLZekp6RK0QOhPK5ldu3QgQ7fSVngETguKej8 z4TGkplwbYapsgFfSjYTa/Oviotf/cnQcfLFkx2rGI9cS9sB4QzJEh9/561u1nk9W8di 4l7BbzcRE/vP66++hR2WhUljDaHdd0j0cMJJZOdGAVXztcgS8kBCJ58Rm14149VJb3ea 0nDRNQ/hixwslghSQkN/D387i4bWN8+7iDhFtxy1N2ETvLzYpmVwtUDiAhniMQstFbB1 bEEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=WrxQf94IKL5tZN2NzWQ879x4W5A+hT+lOAVTPH6/05A=; b=FrulM1fmoymPoGh+STK2SDWTGMZgQr2clx80LmAwc68uyPoSv7LmvgwFLdALTINMmE FvWTKPkpxmSgbsXkelIdE9LDaIq0Xu2r6Jgd/cc7UVDzOJ/dupPXO3C7FejLsvjjcrTw w0jbhn4zikFYKXsgcmCUZT7bsx77FRZclnyB9NPFnVS/qJ1wWDc1drlhQfUHrh0zd5Wt SP0/qepSyvhpXviK8DUOnBDM+TpHmPcqypsu5BlUohiUfvthmNkThk4K18otbLrPi4GV RwlFxXskAedzEkkA+xFwXPuhGzaS/mTdaN6vecW/9xeusnLxoEIDWfjHx9OYspzyot6C 13mA== X-Gm-Message-State: AJaThX71SqeUNnAc7nW0EI/JA7IgQB8Mnubm4FIye9f+S8xI9GwrypxN mkXyJhb1LwM45sZRsdbxVF8IIivYxTw= X-Google-Smtp-Source: ABhQp+QFRauQtWaQTCv7Ir8VhDWcBB4I8mka56a2SJVMymXiWec68omW7d6jGzu2tvJVwZRQIdA/xw== X-Received: by 10.25.145.21 with SMTP id t21mr1411901lfd.119.1509649742072; Thu, 02 Nov 2017 12:09:02 -0700 (PDT) Received: from localhost (mobile-access-5d6a0c-19.dhcp.inet.fi. [93.106.12.19]) by smtp.gmail.com with ESMTPSA id q1sm822717ljc.23.2017.11.02.12.09.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Nov 2017 12:09:01 -0700 (PDT) From: Jani Nikula To: Jani Nikula , notmuch@notmuchmail.org Subject: [PATCH] test: test notmuch insert --folder="" Date: Thu, 2 Nov 2017 21:08:57 +0200 Message-Id: <20171102190857.19252-1-jani@nikula.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171014131543.17521-1-jani@nikula.org> References: <20171014131543.17521-1-jani@nikula.org> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Nov 2017 19:09:04 -0000 Test insert into top level folder. --- test/T070-insert.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/T070-insert.sh b/test/T070-insert.sh index f1650e623e35..40519bb2f217 100755 --- a/test/T070-insert.sh +++ b/test/T070-insert.sh @@ -132,6 +132,13 @@ output=$(notmuch search --output=files path:Drafts/new) dirname=$(dirname "$output") test_expect_equal "$dirname" "$MAIL_DIR/Drafts/new" +test_begin_subtest "Insert message into top level folder" +gen_insert_msg +notmuch insert --folder="" < "$gen_msg_filename" +output=$(notmuch search --output=files id:${gen_msg_id}) +dirname=$(dirname "$output") +test_expect_equal "$dirname" "$MAIL_DIR/new" + test_begin_subtest "Insert message into folder with trailing /" gen_insert_msg notmuch insert --folder=Drafts/ < "$gen_msg_filename" -- 2.11.0