@@ -163,15 +163,15 @@ class mailcnf_bcc(ncauth_base):
...
@@ -163,15 +163,15 @@ class mailcnf_bcc(ncauth_base):
ifstr(uid)!='0':
ifstr(uid)!='0':
delstring=" and deleted='0' "
delstring=" and deleted='0' "
ifid!=''andid!=None:
ifid!=''andid!=None:
query=" SELECT * FROM `virtual_recipients_bcc` WHERE `id`="+id+" "+delstring
query=" SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc` WHERE `id`="+id+" "+delstring
elifstr(gid)!='':
elifstr(gid)!='':
query=" SELECT * FROM `virtual_recipients_bcc` WHERE `group_id` in ("+gid+") "+delstring
query=" SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc` WHERE `group_id` in ("+gid+") "+delstring
else:
else:
ifstr(uid)!='0':
ifstr(uid)!='0':
query=" SELECT * FROM `virtual_recipients_bcc` WHERE deleted='0'"
query=" SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc` WHERE deleted='0'"
else:
else:
query=" SELECT * FROM `virtual_recipients_bcc`"
query=" SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc`"
try:
try:
print(query)
print(query)
db_config=read_db_config()
db_config=read_db_config()
...
@@ -199,7 +199,7 @@ class mailcnf_bcc(ncauth_base):
...
@@ -199,7 +199,7 @@ class mailcnf_bcc(ncauth_base):
defedit_virtual_bccs_by_id(self,id,uid):
defedit_virtual_bccs_by_id(self,id,uid):
query=" SELECT * FROM `virtual_recipients_bcc` WHERE `id`='"+str(id)+"'"
query=" SELECT id,domain_id,source,destination,modified,active,deleted,group_id FROM `virtual_recipients_bcc` WHERE `id`='"+str(id)+"'"