V0.6 #852
|
@ -1040,7 +1040,7 @@ class MyForm(settingsmixin.SMainWindow):
|
|||
def addMessageListItemInbox(self, tableWidget, msgfolder, msgid, toAddress, fromAddress, subject, received, read):
|
||||
font = QFont()
|
||||
font.setBold(True)
|
||||
if tableWidget == self.ui.tableWidgetInboxSubscriptions:
|
||||
if toAddress == str_broadcast_subscribers:
|
||||
acct = accountClass(fromAddress)
|
||||
else:
|
||||
acct = accountClass(toAddress)
|
||||
|
|
|
@ -40,6 +40,7 @@ def getSortedSubscriptions(count = False):
|
|||
|
||||
def accountClass(address):
|
||||
if not shared.config.has_section(address):
|
||||
# FIXME: This BROADCAST section makes no sense
|
||||
if address == str_broadcast_subscribers:
|
||||
subscription = BroadcastAccount(address)
|
||||
if subscription.type != AccountMixin.BROADCAST:
|
||||
|
|
|
@ -69,6 +69,9 @@ class AccountMixin (object):
|
|||
self.type = self.CHAN
|
||||
elif shared.safeConfigGetBoolean(self.address, 'mailinglist'):
|
||||
self.type = self.MAILINGLIST
|
||||
elif sqlQuery(
|
||||
'''select label from subscriptions where address=?''', self.address):
|
||||
self.type = AccountMixin.SUBSCRIPTION
|
||||
else:
|
||||
self.type = self.NORMAL
|
||||
|
||||
|
|
Reference in New Issue
Block a user