This is an autogenerated patch header for a single-debian-patch file. The
delta against upstream is either kept as a single patch, or maintained
in some VCS, and exported as a single patch instead of more manageable
atomic patches.

--- gmailieer-1.4.orig/docs/index.md
+++ gmailieer-1.4/docs/index.md
@@ -130,6 +130,11 @@ following combinations are OK:
 This avoids silently not sending mail to some recipients (pretending we did),
 or sending mail to recipients we didn't want to send to again.
 
+One of the implication of `-t` is you have to keep `Bcc:` header in your
+message when passing it to `sendmail`. It is not enough to just put the
+additional recipient on the command line. For `mutt`, this means setting
+`write_bcc` option.
+
 Lieer will try to associate the sent message with the existing thread if it has
 an `In-Reply-To` header. According to the [Gmail
 API](https://developers.google.com/gmail/api/v1/reference/users/messages/send#request-body)
--- gmailieer-1.4.orig/lieer/gmailieer.py
+++ gmailieer-1.4/lieer/gmailieer.py
@@ -47,6 +47,10 @@ class Gmailieer:
     common.add_argument ('-q', '--quiet', action = 'store_true',
         default = False, help = 'Produce less output (implies -s)')
 
+    common.add_argument ('-v', '--verbose', action='store_true',
+        default = False, help = 'print list of changes')
+
+
     subparsers = parser.add_subparsers (help = 'actions', dest = 'action')
     subparsers.required = True
 
@@ -272,6 +276,7 @@ class Gmailieer:
         raise NotADirectoryError("error: %s is not a valid path!" % args.path)
 
     self.dry_run          = dry_run
+    self.verbose          = args.verbose
     self.HAS_TQDM         = (not args.no_progress)
     self.credentials_file = args.credentials
 
--- gmailieer-1.4.orig/lieer/local.py
+++ gmailieer-1.4/lieer/local.py
@@ -298,6 +298,7 @@ class Local:
     self.gmailieer = g
     self.wd = os.getcwd ()
     self.dry_run = g.dry_run
+    self.verbose = g.verbose
 
     # config and state files for local repository
     self.config_f = os.path.join (self.wd, '.gmailieer.json')
@@ -520,9 +521,9 @@ class Local:
     except LookupError:
         nmsg = None
 
-    if self.dry_run:
-      print ("(dry-run) deleting %s: %s." % (gid, fname))
-    else:
+    self.print_changes ("deleting %s: %s." % (gid, fname))
+    
+    if not self.dry_run:
       if nmsg is not None:
         db.remove(fname)
       os.unlink (fname)
@@ -621,8 +622,7 @@ class Local:
         if not os.path.exists (fname):
           raise Local.RepositoryException ("tried to update tags on non-existent file: %s" % fname)
 
-      else:
-        print ("(dry-run) tried to update tags on non-existent file: %s" % fname)
+      self.print_changes ("tried to update tags on non-existent file: %s" % fname)
 
     try:
       nmsg = db.get(fname)
@@ -630,9 +630,8 @@ class Local:
       nmsg = None
 
     if nmsg is None:
-      if self.dry_run:
-        print ("(dry-run) adding message: %s: %s, with tags: %s" % (gid, fname, str(labels)))
-      else:
+      self.print_changes ("adding message: %s: %s, with tags: %s" % (gid, fname, str(labels)))
+      if not self.dry_run:
         try:
           (nmsg, _) = db.add (fname, sync_flags = True)
         except notmuch2.FileNotEmailError:
@@ -667,12 +666,17 @@ class Local:
           nmsg.tags.to_maildir_flags()
           self.__update_cache__ (nmsg, (gid, fname))
 
-        else:
-          print ("(dry-run) changing tags on message: %s from: %s to: %s" % (gid, str(otags), str(labels)))
+        self.print_changes ("changing tags on message: %s from: %s to: %s" % (gid, str(otags), str(labels)))
 
         return True
       else:
         return False
 
+  def print_changes (self, changes):
+    if self.dry_run:
+      print ("(dry-run) " + changes)
+    elif self.verbose:
+      print(changes)
+
 
 
--- gmailieer-1.4.orig/lieer/remote.py
+++ gmailieer-1.4/lieer/remote.py
@@ -123,6 +123,7 @@ class Remote:
     self.CLIENT_SECRET_FILE = g.credentials_file
     self.account = g.local.config.account
     self.dry_run = g.dry_run
+    self.verbose = g.verbose
 
     self.ignore_labels = self.gmailieer.local.config.ignore_remote_labels
 
@@ -565,8 +566,8 @@ class Remote:
           print ("update: %s: Trying to add both SPAM and INBOX, dropping INBOX (add: %s, rem: %s)" % (gid, add, rem))
           add.remove('INBOX')
 
+      self.print_changes ("gid: %s: add: %s, remove: %s" % (gid, str(add), str(rem)))
       if self.dry_run:
-        print ("(dry-run) gid: %s: add: %s, remove: %s" % (gid, str(add), str(rem)))
         return None
       else:
         return self.__push_tags__ (gid, add, rem)
@@ -739,3 +740,9 @@ class Remote:
 
     return self.service.users().messages().send(userId = self.account, body = message).execute()
 
+  def print_changes (self, changes):
+    if self.dry_run:
+      print ("(dry-run) " + changes)
+    elif self.verbose:
+      print(changes)
+
--- gmailieer-1.4.orig/tests/__init__.py
+++ gmailieer-1.4/tests/__init__.py
@@ -3,6 +3,7 @@ import tempfile
 
 class MockGmi:
     dry_run = False
+    verbose = False
 
     def __init__(self):
         pass
