andrie/mailmerge

Only confirm messages were sent if there was success

Closed this issue · 1 comments

I'm dealing with some failures but I still get the confirmation message from

base::message("Sent ", n_messages, " messages to your draft folder")

Should it depend on the success variable in the returned lists?

By the way here's the error I'm getting from gmailr: I can't used a cached token (after one hour or so) because there is no refresh token r-lib/gmailr#152