  def self.trim_by_capacity(user_id, mail_account_id, capacity_mb)

# FEATURE_MAIL_STRICT_CAPACITY >>>
=begin
#    max_size = capacity_mb * 1024 * 1024
#    cur_size = MailAccount.get_using_size(mail_account_id)
#
#    if cur_size > max_size
#      over_size = cur_size - max_size
#      emails = []
#
#      # First, empty Trashbox
#      user = User.find(user_id)
#      trashbox = MailFolder.get_for(user, mail_account_id, MailFolder::XTYPE_TRASH)
#      trash_nodes = [trashbox.id.to_s]
#      trash_nodes += MailFolder.get_childs(trash_nodes.first, true, false)
#      con = "mail_folder_id in (#{trash_nodes.join(',')})"
#      emails = Email.where(con).order('updated_at ASC').to_a
#      emails.each do |email|
#        next if email.size.nil?
#
#        email.destroy
#        over_size -= email.size
#        break if over_size <= 0
#      end
#
#      # Now, remove others
#      if over_size > 0
#        emails = Email.where("mail_account_id=#{mail_account_id.to_i}").order('updated_at ASC').to_a
#        emails.each do |email|
#          next if email.size.nil?
#
#          email.destroy
#          over_size -= email.size
#          break if over_size <= 0
#        end
#      end
#    end
=end
# FEATURE_MAIL_STRICT_CAPACITY <<<
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.