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

Make attachement possible, when running in PSGI/Plack mode #1186

Open
MaxPerl opened this issue Sep 15, 2024 · 5 comments
Open

Make attachement possible, when running in PSGI/Plack mode #1186

MaxPerl opened this issue Sep 15, 2024 · 5 comments

Comments

@MaxPerl
Copy link

MaxPerl commented Sep 15, 2024

Hello Justin,

thank you for your wonderful tool. As described under https://dadamailproject.com/support/documentation-11_22_0/features-psgi_support.pod.html no filebrowser works if one runs Dada Mail in PSGI/Plack mode.

I suggest a simple javascript file browser from which you can select files in a specific directory. Although uploading must be done with another program, but at the moment there ist no possibility to add attachement to a mail.

Thanks in advance,
Max

@justingit
Copy link
Owner

Thanks for the suggestion Max! As an aside, are you using Dada Mail under PSGI/Plack? If so, how is everything else working? It's marked as experimental, as I don't normally run under that myself.

@MaxPerl
Copy link
Author

MaxPerl commented Sep 20, 2024

I am at the beginning of exploring Dadamail. The most part works for me.

One problem I noticed is that at the startsite of the mailing list the links for sign_in and proflie_login doesn't work for me. These are relative path "sign_in/test" or "profile_login" but for me a "/" at the beginning is necessary. But perhaps the problem is that I use Dadamail from my localhost and with SMTP

Can you explain me how attachments are inserted into the mail. I could program a pure Javascript fileselector that fills a text input with "attachment1" (of course I could share it with you). But unfortunately when sending the mail to the list the attached file is not added.
Which path is needed for attachment? The URL (e.g. /dada_mail_support_files/file_uploads/attachment.txt) or the local directory (e.g. /home/username/path_to_dada/dada_mail_support_files/file_uploads/attachment.txt) or a relative path? Or is there some magic that the script must copy the attachment to a specific location?

For me sending attachment would be very important. For any hint I would be very thankful..

Best wishes,
Max

@MaxPerl
Copy link
Author

MaxPerl commented Sep 20, 2024

sorry, me again :-)

I think I solved it for me with #1187

The only problem I encounter is, that I have to hardcode the settings in DADA/Config.pm. The settings in .dada_files/configs/.dada_config were not recognized.

But for me the workaround is okay at the moment.. Perhaps I will add CSS styling later (the code of fileselect comes from my CMS, so that I can look what styling there works okay)

Best wishes,
Max

@justingit
Copy link
Owner

Neat - I'll check it out (I was out of town last week)

@MaxPerl
Copy link
Author

MaxPerl commented Sep 24, 2024

I added some styling at /app/dada/static/css/vendor/foundation/app.css. I hope this is the right place :-)

For me this workaround is fine (in the future a kind of preview for images and videos would be great perhaps, but at the moment better than nothing :-) )

Best wishes,
Max

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

2 participants