unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Dirk Hohndel <hohndel@infradead.org>
To: <notmuch@notmuchmail.org>
Subject: test suite for fancy From guessing
Date: Wed, 21 Apr 2010 14:55:56 -0700	[thread overview]
Message-ID: <1271886958-3276-1-git-send-email-hohndel@infradead.org> (raw)


This adds five tests for the five main cases in the fancy from guessing.
It assumes that you have applied
id:1271451102-11336-1-git-send-email-hohndel@infradead.org which will get you
the latest fancy From guessing.

We have one test case each for
- nothing to go on
- Envelope-To:
- X-Original-To:
- Received: ... for ...
- Received: domain guessing

The second patch adds the Bcc headers that you will get as part of the 
results with an unpatched notmuch. I consider these Bcc headers broken
as they are a potential information leak; the Bcc always goes to the
primary email address, so information that isn't related to that account
is still routed back to it. Bcc logic should be fixed to copy the address
that is used as From: address

But since I don't use Bcc at all I didn't attempt to fix that part.

/D

             reply	other threads:[~2010-04-21 21:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-21 21:55 Dirk Hohndel [this message]
2010-04-21 21:55 ` [PATCH 1/2] add From guessing tests to test suite Dirk Hohndel
2010-04-21 21:55   ` [PATCH 2/2] fix expected test result to include Bcc lines Dirk Hohndel
2010-04-24  0:06 ` test suite for fancy From guessing Carl Worth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1271886958-3276-1-git-send-email-hohndel@infradead.org \
    --to=hohndel@infradead.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).