[hashcash] Using hashcash with Mutt and Vim

  • From: Aaron Toponce <aaron.toponce@xxxxxxxxx>
  • To: hashcash@xxxxxxxxxxxxx
  • Date: Mon, 21 Mar 2011 15:38:56 -0600

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=yes"
    * 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,

-- 
. o .   o . o   . . o   o . .   . o .
. . o   . o o   o . o   . o o   . . o
o o o   . o .   . o o   o o .   o o o

Other related posts: