edward.git
8 years agoadded a debug function
Andrew Engelbrecht [Sun, 19 Jul 2015 21:34:01 +0000 (17:34 -0400)]
added a debug function

8 years agoheader fix
Andrew Engelbrecht [Sun, 19 Jul 2015 20:13:56 +0000 (16:13 -0400)]
header fix

8 years agouse a settings file to manage configurations
Andrew Engelbrecht [Sun, 19 Jul 2015 20:13:19 +0000 (16:13 -0400)]
use a settings file to manage configurations

8 years agoheader improvement
Andrew Engelbrecht [Sun, 19 Jul 2015 19:56:37 +0000 (15:56 -0400)]
header improvement

8 years agorenamed edward-bot to edward
Andrew Engelbrecht [Sun, 19 Jul 2015 19:56:06 +0000 (15:56 -0400)]
renamed edward-bot to edward

8 years agoadded PGP/MIME reply email generation
Andrew Engelbrecht [Sun, 19 Jul 2015 19:37:55 +0000 (15:37 -0400)]
added PGP/MIME reply email generation

now international characters should show up in email clients properly
encoded.

8 years agostylistic changes
Andrew Engelbrecht [Sun, 19 Jul 2015 19:31:33 +0000 (15:31 -0400)]
stylistic changes

8 years agofixed potential string decoding bug
Andrew Engelbrecht [Sun, 19 Jul 2015 04:46:45 +0000 (00:46 -0400)]
fixed potential string decoding bug

8 years agoremoved unused import
Andrew Engelbrecht [Sun, 19 Jul 2015 04:44:24 +0000 (00:44 -0400)]
removed unused import

8 years agostyle fix
Andrew Engelbrecht [Sat, 18 Jul 2015 22:59:44 +0000 (18:59 -0400)]
style fix

removed unecessary space

8 years agofixed bug occurring in messages without a sig
Andrew Engelbrecht [Sat, 18 Jul 2015 22:56:59 +0000 (18:56 -0400)]
fixed bug occurring in messages without a sig

edward will ask for a key.

8 years agosimplified function by using map()
Andrew Engelbrecht [Sat, 18 Jul 2015 22:44:56 +0000 (18:44 -0400)]
simplified function by using map()

8 years agoadded reply signing capability
Andrew Engelbrecht [Sat, 18 Jul 2015 22:31:21 +0000 (18:31 -0400)]
added reply signing capability

currently hard-coded to my own key. will eventually be an option.

8 years agofixed a potential bug
Andrew Engelbrecht [Sat, 18 Jul 2015 22:18:49 +0000 (18:18 -0400)]
fixed a potential bug

this should be set as a flag.

8 years agoadded return message quoting
Andrew Engelbrecht [Sat, 18 Jul 2015 22:18:34 +0000 (18:18 -0400)]
added return message quoting

8 years agoadded simple message reply generation
Andrew Engelbrecht [Sat, 18 Jul 2015 21:51:20 +0000 (17:51 -0400)]
added simple message reply generation

the reply is encrypted to the first encryption-capable key used to sign
the message.

8 years agocreated a function for choosing the encryption key
Andrew Engelbrecht [Sat, 18 Jul 2015 21:28:08 +0000 (17:28 -0400)]
created a function for choosing the encryption key

this is somewhat more intelligent and can be improved upon later.

8 years agoremoved a function, changed a func name
Andrew Engelbrecht [Sat, 18 Jul 2015 21:23:56 +0000 (17:23 -0400)]
removed a function, changed a func name

the removed function will eventually be replaced by a reply generation
function.

8 years agomore name changes; other minor changes
Andrew Engelbrecht [Sat, 18 Jul 2015 20:35:46 +0000 (16:35 -0400)]
more name changes; other minor changes

this makes the code a bit clearer.

8 years agoVariable name changes. Removed gpg sig. analyzer
Andrew Engelbrecht [Sat, 18 Jul 2015 20:17:17 +0000 (16:17 -0400)]
Variable name changes. Removed gpg sig. analyzer

Many variable names were changed to make the code easier to understand.

Signature analysis was removed and replaced with collection of keys used
in gpg signing. This will be useful for choosing the public key to use
when encrypting the reply message.

These two commits should have been separate but the edits got mixed
together.

8 years agointermediary variable isn't needed
Andrew Engelbrecht [Sun, 27 Jul 2014 07:12:11 +0000 (03:12 -0400)]
intermediary variable isn't needed

it's sufficiently clear this way, and uses less code.

8 years agorefactored a bit
Andrew Engelbrecht [Sun, 27 Jul 2014 07:08:56 +0000 (03:08 -0400)]
refactored a bit

this reduces the size of msg_walk()

8 years agohostesty about sig validity certainty
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.

8 years agoaccumulate message before printing
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.

8 years agoimproved warnings; check cli argument count
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.

8 years agoorganizational and whitespace changes
Andrew Engelbrecht [Sun, 27 Jul 2014 05:57:36 +0000 (01:57 -0400)]
organizational and whitespace changes

easier to read

8 years agoindentation changes
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.

8 years agore-organized a couple lines of code
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

8 years agoupdated signature verification code
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.

8 years agomake the sig output prettier.
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.

8 years agoadd proper time formatting
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.

8 years agoinitial commit for edward-bot
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.