 >         '''
 >         # Add footer to our message (in digest mode do this only once)
 >         # pylint: disable=E1101
->         if Config.disablefooter == False and self.isLastCommit == True:
+>         if self.cfg_obj.disablefooter == False and self.isLastCommit == True:
 >             self.footerTextMessage = 'Generated by %s/%s: %s' % (Name,
 >                 __version__, ProjectURL)
 >             self.footerHtmlMessage = '<br><hr>\nGenerated by %s<br>\n' % \

>         (out, fname) = utilities.makeTmp()
>         #
>         message.addTag("Repository", self.getRepo())
333c433,434
<     sendMail(out, fname)
---
>         multi = "es" if len(heads) > 1 else ""
>         heads = ",".join(heads)
335,337c436
< # Sends a mail for a notification consistent of two parts: (1) the output of a
< # show command, and (2) the output of a diff command.
< def sendChangeMail(rev, subject, heads, show_cmd, diff_cmd):
---
>         message.addTag("On branch%s" % multi, heads)
339c438,440
<     (out, fname) = generateMailHeader(subject)
---
>         if Config.link: # pylint: disable=E1101
>             url = Config.link.replace("%s", rev) # pylint: disable=E1101
>             message.addTag("Link", url)
341,342c442,443
<     multi = "es" if len(heads) > 1 else ""
<     heads = ",".join(heads)
---
>         footer = ""
>         show = self.git(show_cmd)
344c445,447
<     print >>out, mailTag("On branch%s" % multi, heads)
---
>         for line in show:
>             if NoDiff in line:
>                 break
346,348c449,450
<     if Config.link:
<         url = Config.link.replace("%s", rev)
<         print >>out, mailTag("Link", url)
---
>             if NoMail in line:
>                 return
350,351c452,516
<     footer = ""
<     show = git(show_cmd)
---

>         Send file contents via SMTP
>         '''
>         out.close()
>         if self.cfg_obj.debug: # pylint: disable=E1101
>             for line in open(fname):
>                 print u'    |', line,
>             print ''
>         elif self.isLastCommit:
>             _data = utilities.readfile(fname)
>             # pylint: disable=E1101
>             self.mail.send(self.cfg_obj.sender, 
>                 self.cfg_obj.mailinglist, _data)
> 
>     def generateMailHeader(self, subject):
>         '''
