Andrew Engelbrecht [Sun, 27 Jul 2014 07:08:56 +0000 (03:08 -0400)]
refactored a bit
this reduces the size of msg_walk()
Andrew Engelbrecht [Sun, 27 Jul 2014 06:52:43 +0000 (02:52 -0400)]
hostesty about sig validity certainty
i ought to be honest about how carefully sigs are checked, which is not
very carefully done so far.
Andrew Engelbrecht [Sun, 27 Jul 2014 06:47:22 +0000 (02:47 -0400)]
accumulate message before printing
...so i can transform and do other things with the text. this will allow
me to compose another message quoting this one without a unix pipe.
Andrew Engelbrecht [Sun, 27 Jul 2014 06:17:24 +0000 (02:17 -0400)]
improved warnings; check cli argument count
warnings now include the program name and print to stderr.
there must be no arguments aside from the program name.
Andrew Engelbrecht [Sun, 27 Jul 2014 05:57:36 +0000 (01:57 -0400)]
organizational and whitespace changes
easier to read
Andrew Engelbrecht [Sun, 27 Jul 2014 05:49:25 +0000 (01:49 -0400)]
indentation changes
one function was hyper-indented. another didn't need nested indentation.
Andrew Engelbrecht [Sun, 27 Jul 2014 05:44:25 +0000 (01:44 -0400)]
re-organized a couple lines of code
this order of execution is more logical
Andrew Engelbrecht [Sun, 27 Jul 2014 05:37:05 +0000 (01:37 -0400)]
updated signature verification code
edward-bot now prints a helpful note about signature validity.
i've also added some caveats in comment form regarding the remaining
issues with the verification code i've written so far. there are more
important considerations that need to be made when verifying signatures.
Andrew Engelbrecht [Sun, 27 Jul 2014 04:54:41 +0000 (00:54 -0400)]
make the sig output prettier.
this looks more like the gnupg output.
Andrew Engelbrecht [Sun, 27 Jul 2014 04:44:30 +0000 (00:44 -0400)]
add proper time formatting
sig time stamps are now printed using the strftime() function. it prints
a time format like gpg.
Andrew Engelbrecht [Sun, 27 Jul 2014 04:23:30 +0000 (00:23 -0400)]
initial commit for edward-bot
i've written some code for an "edward bot". it will eventually receive
and reply to gpg-encrypted emails.
some segments of code are based on work by Josh Drake and Lisa Maginnis.
this commit contains a large amount of code for a first commit. while it
was my intention to start using vcs once i had useful code, it's now
well past that time.