Code Monkey home page Code Monkey logo

adi.forumail's People

Watchers

 avatar  avatar

adi.forumail's Issues

Sort by creation-date not sharp enough

The smallest fractal is a minute, a post created some seconds after another might falsely precede the older one in the results, because then the dates are interpreted to be the same (minute) and the second sorting by ascending titles can lead to the effect, if the newer title is greater than the older.

Dedicated CT's for forums and posts

Currently everything's tight to the location: '[plonesiteId]/forumail'. Be more generic, allow a forum to be added anywhere.

  • Extend m2p with an 'IPostMailDropBoxMarker'-interface and add 'adapters/post.py'.
  • CT 'Forum' -> Clone of 'Folder', set 'IPostMailDropBoxMarker' on creation via eventlistener.
  • CT 'Post' -> Clone of 'Document'.

Add button "Reply to post"

Trigger a post-creation with the next increasing id
relative to the post answered to, e.g.: '1-1' -> '1-2', or '2-7-3' -> '2-7-4'.

Indent replies

By id's reply-depth (id, id-1, id-1-1, id-2, id-2-2 ...)

After save redirect

If edit triggered of forum-main-view, go back there. If triggered of a post-view, go back there, and include hash in url to the post's headline-link, provided of reply-link, equalizing the reply's path, e.g. '#2-7-7', to land back in context without the need for scrolling.

Make sure char-code is UTF-8 before pushing

Umlaute will give:

Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module mailtoplone.base.browser.xmlrpcview, line 57, in drop
Module mailtoplone.base.adapters.blog, line 93, in drop
Module mailtoplone.base.utilities, line 79, in __call__
Module email, line 57, in message_from_string
Module email.parser, line 82, in parsestr
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 1346: ordinal not in range(128)

Quots in replies

If an email-reply contains quots, wrap into a div.
If replied via UI, insert quots in wrapped-div into text-area.

Add like-option including a comment-field

While it e.g. cioppino.twothumbs provides a dis/like-option, it doesn't give information why a person liked something, maybe one does only partially agree with a liked post, that should be expressable somehow, annotating a comment to an up-/downvote.
A possibility could be to implement a second workflow with two transitions 'up-/downvote', including a popup offering the comment-field right next to the trans-button, provided by 'collective.wfcomment', encouraging the user to leave a statement.

Add-form

Also load add-form via jQinto forum-view. Show categories-field, immediately. Recheck inhibiting to add new categories.

Fix m2p

m2p.base causes on instance-rising:
"zope/configuration/config.py:706: UserWarning: The set_schema option of the directive is not supported in Zope 2."

No 'To: '-field set in c.c.mailtogroup!

Concerns

https://github.com/ida/collective.contentrules.mailtogroup --branch forumail

If the site's email_from_address is supposed to be the inbox-address, it cannot be the 'To: '-address, as well, that'll create a circular loop of being notified fo new posts and then immediately pushing, them.
Using a 'Reply-To'-address would solve this, but also require to have two mail-accounts, one for receiving (inbox-address, IMAP) and one for sending (site-from-address, SMTP) :-(

Update:
Inserting a "source"-address via the contentrule's UI/xml works, if the adress has the same domain as the site's sender-address.
Ideally c.c.m2p checks, whether the user set a source-address, and if not, uses the site's address for 'To: '.

Even better would be, if the Plonesite's properties allowed setting a "Reply to"-address, also. But according to https://dev.plone.org/ticket/12413, an open ZOPE-bug will likely not allow that.

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.