perceval/backends/core/mbox.py
def mboxes(self):
        """Get the mboxes managed by this mailing list.

        Returns the archives sorted by name.

        :returns: a list of `.MBoxArchive` objects
        """
        archives = []

        if os.path.isfile(self.dirpath):
            try:
                archives.append(MBoxArchive(self.dirpath))
            except OSError as e:
                logger.warning("Ignoring %s mbox due to: %s", self.dirpath, str(e))
        else:
            for root, _, files in os.walk(self.dirpath):
                for filename in sorted(files):
                    try:
                        location = os.path.join(root, filename)
                        archives.append(MBoxArchive(location))
                    except OSError as e:
                        logger.warning("Ignoring %s mbox due to: %s", filename, str(e))
        return archives
def mboxes(self):
        """Get the mboxes managed by this mailing list.

        Returns the archives sorted by name.

        :returns: a list of `.MBoxArchive` objects
        """
        archives = []

        if os.path.isfile(self.dirpath):
            try:
                archives.append(MBoxArchive(self.dirpath))
            except OSError as e:
                logger.warning("Ignoring %s mbox due to: %s", self.dirpath, str(e))
        else:
            for root, _, files in os.walk(self.dirpath):
                for filename in sorted(files):
                    try:
                        location = os.path.join(root, filename)
                        archives.append(MBoxArchive(location))
                    except OSError as e:
                        logger.warning("Ignoring %s mbox due to: %s", filename, str(e))
        return archives
def mboxes ( self ) : archives = [ ] if os . path . isfile ( self . dirpath ) : try : archives . append ( MBoxArchive ( self . dirpath ) ) except OSError as e : logger . warning ( "Ignoring %s mbox due to: %s" , self . dirpath , str ( e ) ) else : for root , _ , files in os . walk ( self . dirpath ) : for filename in sorted ( files ) : try : location = os . path . join ( root , filename ) archives . append ( MBoxArchive ( location ) ) except OSError as e : logger . warning ( "Ignoring %s mbox due to: %s" , filename , str ( e ) ) return archives
Get the mboxes managed by this mailing list.

        Returns the archives sorted by name.

        :returns: a list of `.MBoxArchive` objects
Get the mboxes managed by this mailing list .