# encoding: utf-8

from collective.dms.mailcontent.dmsmail import IDmsIncomingMail
from Products.Five import BrowserView


class UtilsMethods(BrowserView):
    """ View containing utils methods """

    def outgoingmail_folder(self):
        """ Get a folder for outgoing mail """
        if IDmsIncomingMail.providedBy(self.context):
            return self.context.__parent__
        return self.context

ad7a502f963355d875a4e0e98dbd387090dd0b80
<mask token>


class UtilsMethods(BrowserView):
    <mask token>
    <mask token>

<mask token>


class UtilsMethods(BrowserView):
    <mask token>

    def outgoingmail_folder(self):
        """ Get a folder for outgoing mail """
        if IDmsIncomingMail.providedBy(self.context):
            return self.context.__parent__
        return self.context

<mask token>


class UtilsMethods(BrowserView):
    """ View containing utils methods """

    def outgoingmail_folder(self):
        """ Get a folder for outgoing mail """
        if IDmsIncomingMail.providedBy(self.context):
            return self.context.__parent__
        return self.context

from collective.dms.mailcontent.dmsmail import IDmsIncomingMail
from Products.Five import BrowserView


class UtilsMethods(BrowserView):
    """ View containing utils methods """

    def outgoingmail_folder(self):
        """ Get a folder for outgoing mail """
        if IDmsIncomingMail.providedBy(self.context):
            return self.context.__parent__
        return self.context

# encoding: utf-8

from collective.dms.mailcontent.dmsmail import IDmsIncomingMail
from Products.Five import BrowserView


class UtilsMethods(BrowserView):
    """ View containing utils methods """

    def outgoingmail_folder(self):
        """ Get a folder for outgoing mail """
        if IDmsIncomingMail.providedBy(self.context):
            return self.context.__parent__
        return self.context
