GithubHelp home page GithubHelp logo

dsoares / roundcube-removeattachments Goto Github PK

View Code? Open in Web Editor NEW
6.0 8.0 6.0 43 KB

Roundcube plugin to add an option to remove attachments from a message.

JavaScript 10.63% PHP 88.62% CSS 0.75%
roundcube plugin attachments remove-attachments

roundcube-removeattachments's Introduction

Roundcube plugin remove-attachments

Roundcube plugin to add an option to remove one or all attachments from a message. The original code is from Philip Weir.

Stable versions of this plugin are available from the Roundcube plugin repository or the releases section of the GitHub repository.

Requirements

None.

Installation

Install with composer

  1. Go to your Roundcube root directory.

  2. Run $ composer require dsoares/removeattachments.

Manual Installation

  1. Place this folder named removeattachments under your Rouncdube plugins/ folder. The folder's name must be removeattachments.

  2. Enable the removeattachments plugin within the main Roundcube configuration file config/config.inc.php.

License

This plugin is released under the GNU General Public License Version 3+.

Contact

Comments and suggestions are welcome!

Email: Diana Soares

roundcube-removeattachments's People

Contributors

balping avatar dicea-unipd avatar dsoares avatar petr-hendl avatar vitlav avatar youradds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

roundcube-removeattachments's Issues

removing attacment marks mail unread

Marking mail unread has undesirable side effect: you get some unread mails somewhere in mail folder.

Consider this: you sort mails by size to clean up huge attachments, then you remove attachments from some mail, folder is reloaded and this mail is sorted away from your reach (because it is now tiny) and marked as unread. Now you have a unread message somewhere in your folder. Seems not neccessary to mark it unread.

Rename repository name

Hi @dsoares

I saw some roundcube plugin developers align your plugin project names to "roundcube-".

So, I suggest to you rename this project to "roundcube-remove_attachment".

And thanks by your work.

version number in composer.json

Hi Dsoares, I know it is a dumb issue, but could you add the tag version in composer.json?

"version": "0.2.3",

It will facilitate to automatically track the status of many roundcube instalations at once.
Thanks in advance.

Elastic skin support

Hi,
I would like to use this plugin, but I currently use the elastic skin. It seems that this plugin only supports the classic and larry skin.
Would you mind updating it to support elastic?

Preserve timestamp of original message

Hi and thanks for your excellent work on this and other RoundCube plugins.

Would it be possible to change the behaviour when creating the new message without the deleted attachment, so that the file creation timestamp of the original message is preserved?

When the "new" mail gets the current date as timestamp, it throws off scripts that process mails based on date.

Doesn't handle correctly Unicode characters on the attached file names

Dear Sirs, first of all thanks for your very helpful plug-in.
I discovered a problem though: if I trying to remove attachments in Unicode e.g. having Greek language characters, then the file names get scrambled.
I suppose that this is related to the way your plugin is handling the file names.
Please consider to make your plug-in Unicode (utf-8) compatible.

Many thanks,
Best Regards,
Mike Kranidis

removing attachments breaks encoding of text body

when removing attachments, german special chars get mixed up in text body.
mail-body before action:
Folgende Dateien oder Links können jetzt als Anlage mit Ihrer Nachricht gesendet werden:
mail-body after action:
Folgende Dateien oder Links können jetzt als Anlage mit Ihrer Nachricht gesendet werden:

That is ö is transformed to ö

source-code of mail body before action:

Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Folgende Dateien oder Links k=F6nnen jetzt als Anlage mit Ihrer Nachricht=20
gesendet werden:

source-code of mail body after action:

Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=ISO-8859-1

Folgende Dateien oder Links k=C3=B6nnen jetzt als Anlage mit Ihrer Nachrich=
t
gesendet werden:

Could you fix this please? It's very unhandy with german language email messages.

I looked at the source and could not solve the problem, but I noticed something else... is it right, that on text/html the "text_encoding" is set, while for text/plain the "html_encoding" is set?

        if ($mimetype == 'text/html') {
            $MAIL_MIME->setParam('text_encoding', $part->encoding);
            $MAIL_MIME->setParam('html_charset', $part->charset);
        }
        else if ($mimetype == 'text/plain') {
            $MAIL_MIME->setParam('html_encoding', $part->encoding);
            $MAIL_MIME->setParam('text_charset', $part->charset);
        }

Can't delete attachment from Gmail messages

I can't delete a PDF attached in a message comming from a Gmail account.
The PDF is declared as attachment in the message:

Content-Disposition: attachment; filename="calendario-2019-mensual.pdf"

after try to delete without success, it change in the message code to:

Content-Disposition: inline;
filename=calendario-2019-mensual.pdf;

I tried with messages sent from Thunderbird and Roundcube and I can delete the PDF.
But with differents PDF attached from the Gmail web interface always fails.

I'm using:
Roundcube Webmail 1.2.9
removeattachments 0.2.11
firefox 67.0.4
macOS 10.13.6

thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.