Using hashcash with Mutt and Vim

Aaron Toponce <[email protected]> Mon, 21 Mar 2011 15:38:56 -0600
Newsgroups gmane.mail.spam.hashcash
Message-ID <[email protected]>
--niUlcCfh/sMBwTxc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I would like to tie hashcash into Mutt. I've checked out
http://hashcash.org/mail/mua/mutt/, however I'm already using a custom
sendmail command, so the hashcash-sendmail command won't work for me,
and Tim Ruddick's foreground hashcash filter Perl script has no
documenation on how to tie it into Mutt. I've even emailed Tim, with no
response back.

So, I figure I can create my own hack on getting hashcash into Mutt.
Here's what I've come up with so far:

    * In my ~/.muttrc, I've added "set edit_headers=3Dyes"
    * My default editor is Vim, so I can run ":read !hashcash -m foo -X
      -Z 2" to put the token into the header.

I would like to automate the process of adding the token, rather than
doing it manually. Because I have access to "To:", "Cc:" and "Bcc:" in
the header, I should be able to write a Vim macro to parse the
comma-separated list of email addresses in those fields, and create the
appropriate token for each address found, and place the token in the
header.

Of course, this is just for minting tokens. I still need a method for
verifying tokens with Mutt. Help with that will be appreciated too.
Also, care needs to be taken with the "Bcc:" addresses, so the tokens
are present for each mail, but don't reveal the addresses to the other
recipients of the mail. Maybe I should just ignore "Bcc:", even though
that is a massive tool for spammers.

Any help would be appreciated.

Thanks,

--=20
=2E o .   o . o   . . o   o . .   . o .
=2E . o   . o o   o . o   . o o   . . o
o o o   . o .   . o o   o o .   o o o

--niUlcCfh/sMBwTxc
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: http://tinyurl.com/aarongpg

iQEcBAEBCgAGBQJNh8VwAAoJEM55Ebf8BAiP3i4H+wYiNwP1G9AvVEkWqGQNpsvf
+db9NdxL0fR1BT8FPNrU7h3gKpqm14gZt9jcZsN3ErwvB83Upf47OGYOa1Xl89Aw
2B4Zj2i5Glvh1yk0UGrfFdMLNEHcYurfNu+IIWAhvfmeBtW6ba8s9hObtCcKyV2o
9hsJ8HJ/xFYuHC9K2otRucAJzBB5yQqeTEMftT5I/VJiYzxMKwyUA0h95ra+3B+F
sjagT5GFdSynieI3if7UVL7srSvEYiaubHpxdPMfPyOktWnChuRRx2xSnuHU47L9
mfPRB0ceHNtSLEC9qT6sXuKTdUTT1Rjz/+XmwqdLRMqvjHFrz7e4EfihhWjkJJQ=
=TbI8
-----END PGP SIGNATURE-----

--niUlcCfh/sMBwTxc--