Georg Brandl  committed 2e98611

Allow configuring a different sender (needed for stackless repo, where the notification goes to an address at a different domain).

  • Participants
  • Parent commits 9f892b3

Comments (0)

Files changed (1)

     if to is None:
         print 'no email address configured'
         return False
-    sender = '%s <%s>' % (user, to)
+    from_ = ui.config('mail', 'sender', None)
+    if from_ is None:
+        from_ = to
+    sender = '%s <%s>' % (user, from_)
     prefixes = [path]