Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smtpd.py to handle huge email #46770

Closed
kawai mannequin opened this issue Mar 31, 2008 · 3 comments
Closed

smtpd.py to handle huge email #46770

kawai mannequin opened this issue Mar 31, 2008 · 3 comments
Labels
topic-email type-feature A feature request or enhancement

Comments

@kawai
Copy link
Mannequin

kawai mannequin commented Mar 31, 2008

BPO 2518
Nosy @warsaw, @giampaolo, @bitdancer
Files
  • smtpd.patch: smtpd.py to use file-descriptor
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-01-10.00:57:31.644>
    created_at = <Date 2008-03-31.05:11:52.832>
    labels = ['type-feature', 'expert-email']
    title = 'smtpd.py to handle huge email'
    updated_at = <Date 2018-01-10.00:57:31.642>
    user = 'https://bugs.python.org/kawai'

    bugs.python.org fields:

    activity = <Date 2018-01-10.00:57:31.642>
    actor = 'barry'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-01-10.00:57:31.644>
    closer = 'barry'
    components = ['email']
    creation = <Date 2008-03-31.05:11:52.832>
    creator = 'kawai'
    dependencies = []
    files = ['9923']
    hgrepos = []
    issue_num = 2518
    keywords = ['patch']
    message_count = 3.0
    messages = ['64776', '64777', '309758']
    nosy_count = 4.0
    nosy_names = ['barry', 'giampaolo.rodola', 'kawai', 'r.david.murray']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue2518'
    versions = ['Python 3.4']

    @kawai
    Copy link
    Mannequin Author

    kawai mannequin commented Mar 31, 2008

    I had some problems when I wanted to do attach a huge data file (such
    as mp3, avi, or etc.) to an email. Current smtpd.py in Python2.5 calls
    process_message that takes a string for its argument. This cause python
    running process to consume too much memory.

    I'd like to suggest an alternative method for this purpose
    process_message_huge that takes a file-descriptor for its argument. The
    patch will use process_message_huge if the method exists, otherwise, it
    will call process_message with a string that will consume a huge memory
    for backward compatibility.

    @kawai kawai mannequin added type-security A security issue stdlib Python modules in the Lib dir performance Performance or resource usage and removed type-security A security issue labels Mar 31, 2008
    @kawai
    Copy link
    Mannequin Author

    kawai mannequin commented Mar 31, 2008

    My carelessness, missing importing cStringIO

    @bitdancer bitdancer added type-feature A feature request or enhancement and removed performance Performance or resource usage labels Mar 30, 2009
    @bitdancer bitdancer added topic-email and removed stdlib Python modules in the Lib dir labels Mar 19, 2013
    @warsaw
    Copy link
    Member

    warsaw commented Jan 10, 2018

    I'm closing this as won't fix since smtpd.py is deprecated and will likely not get any future development. Please see aiosmtpd as a much better third party replacement.

    @warsaw warsaw closed this as completed Jan 10, 2018
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-email type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants