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

RFC822 email attachements #986

Closed
superduif opened this issue Jan 8, 2021 · 5 comments
Closed

RFC822 email attachements #986

superduif opened this issue Jan 8, 2021 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@superduif
Copy link

Hi,

Would it be possible to just add the .eml extension to email attachments so that outlook or the default email application can open email attachments?

image

@freescout-helpdesk freescout-helpdesk added the help wanted Extra attention is needed label Jan 23, 2021
@fulldecent
Copy link
Contributor

Which attachments should have the extension added?

@superduif
Copy link
Author

superduif commented Jul 9, 2021 via email

@phanousk
Copy link

phanousk commented Oct 7, 2021

I add my appeal to this issue. Please don't strip the .eml extension.
Thank you, Petr

@superduif
Copy link
Author

superduif commented Oct 7, 2021 via email

@superduif
Copy link
Author

Hi,

This ticket was closed and resolved around a year ago it seems the response for RTF emails has been changed to undefined.

Could we not find a solution for the email attachment issue that does not rely on hardcoded instruction?

I have fixed the .eml attachment issue by amending the same statement as before just using "undefined" instead of "RFC822".

/**
 * Outputs the current Attachment as download
 */
public function download($view = false)
{
    $headers = [];
    // #533
    //return $this->getDisk()->download($this->getStorageFilePath(), \Str::ascii($this->file_name));
    if ($view) {
        $headers['Content-Disposition'] = '';
    }
    $file_name = $this->file_name;

    if ($file_name == "undefined"){
        $file_name = $file_name.'.eml';
    }

    return $this->getDisk()->download($this->getStorageFilePath(), $file_name, $headers);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants