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

Disable attachment storing #122

Closed
alzambo opened this issue Jan 12, 2016 · 4 comments
Closed

Disable attachment storing #122

alzambo opened this issue Jan 12, 2016 · 4 comments

Comments

@alzambo
Copy link

alzambo commented Jan 12, 2016

Hi,
I need to get just the list of emails without downloading the attachments; is this possible?
Thanks,

Alex

@nicanaca0
Copy link

I'd also like this.

By default it seems to just dump them into the directory of the working file/class which on mysymfony project means the attachments are just dumped into my bundle structure :(.

Ideally if we can disable or just specifiy a path for email attachments specifically that would be great.

@mcoeur
Copy link

mcoeur commented Jan 22, 2016

@nicanaca0 > you can already specify the path when creating an instance :

new PhpImap\Mailbox($server, $email, $password, $path);

See the constructor : https://github.com/barbushin/php-imap/blob/master/src/PhpImap/Mailbox.php#L22

Anyways, +1 for this enhancement

@barbushin
Copy link
Owner

Hi guys. See Mailbox::getMailsInfo().

@nickl-
Copy link
Contributor

nickl- commented Mar 29, 2019

duplicate #150

nickl- added a commit to nickl-/php-imap that referenced this issue Mar 29, 2019
fixes barbushin#150 barbushin#167 barbushin#122  as discussed at barbushin#284 instead of trying to avoid loading attachments rather put it off until it is needed.
we can do the same for text plain and text html as well, what you don't need won't be retrieved.
solution remains non breaking, public lazy load properties are implemented as property magic getter
Sebbo94BY added a commit that referenced this issue May 5, 2019
- Updated README
- Move phpunit to require-dev
- Add note about installing dev dependencies in README
- Replaced spaces with tabs
- Added PHPUnit tests for MIME decoding
- Updated formatting of PHPUnit function testParsedDateTimeWithEmptyHeaderDate()
- Issue #209: Function to parse datetime correctly RFC2822
- Issue #280: Added 'Sender' to headers and added additional if-conditions 
- Issue #115: getMail() method returns an object even for nonexistent mail ID
- Issue #273: Added connection check to example
- Issue #227: Added Failed-Recipients to IncomingMailHeader
- Issue #140, #246: Improved exception handling and added PHPUnit test
- Issue #140: Added PHPUnit test for testing ConnectionException
- Issue #140: Improved exception / error handling and improved / added PHPUnit tests
- Issue #154: Added ability to change the imap_search option from SE_UID to SE_FREE and added PHPUnit tests
- Issue #306: Added support for US-ASCII and added ability to disable serverEncoding for searchMailbox()
- Imported missing namespaces to avoid 'unknown class' error messages
- Issue #86: Simplified and improved one replace regex for attachment file names
- Issue #247: Improved grabbing of fromName, fromHost, senderName and senderHost
- Issue #39, #71, #229: Fixed body content gets incorrectly processed as attachments
- Issue #122, #150, #167: Added ability to skip processing of attachments to increase performance, when attachments are not required
- PR #284: Added missing PHPUnit tests
- Issue #122, #150, #167: Lazy load message text and attachments data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants