1 files changed, 4 insertions(+), 8 deletions(-)

M main.go
M main.go +4 -8
@@ 14,12 14,8 @@ import (
 	"os"
 )
 
-// TODO (default) 	-- process calendar and send emails for everything not already sent
-// TODO -Z 	 	-- do not record action to DB
-// TODO -N 	 	-- NOP do nothing
-// TODO -S 	 	-- do not send emails (but record changes in DB as if they were sent)
+// TODO environment configuration for DB and calendar locations
 // TODO -C 	 	-- send only to changed attendees
-// TODO -D  	 	-- debug (verbose output)
 // TODO -e 	 	-- input is an email
 // TODO -d <path> 	-- database path
 func main() {

          
@@ 227,12 223,12 @@ func (s Send) sendInvites(cal *ics.Calen
 		if s.Debug {
 			fmt.Printf("%s: %s\n", id, strings.Join(as, ", "))
 		}
+		if s.NOP {
+			return nil
+		}
 		if !s.NoEmail {
 			// TODO actually send
 		}
-		if !s.NOP {
-			// TODO record in DB
-		}
 	}
 	return nil
 }