bugGNU dico - Bugs: bug #594, python database should be able to...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #594: python database should be able to detect if "option mime" was activated by the client

Submitted by:  Simo. He. <simohe>
Submitted on:  Thu Jan 12 13:30:45 2023  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: Need Info
Privacy: PublicAssigned to: Sergey Poznyakoff <gray>
Open/Closed: Open

Sun Jan 22 06:44:33 2023, comment #1:

Yes, indeed. For now there's no easy solution for this. Do you have a working example of the workaround you proposed? I would like to include it in the documentation.

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Thu Jan 12 13:30:45 2023, original submission:

A database written in python has no possibility to know if the client has send "option mime" and the server sends mime headers. But this information would he helpful to send plain text only or html (or anything else).

In rfc2229, chapter 3.10.1. OPTION MIME, it is written that the server might respond in a different format when this option is enabled. Unfortunately I can not simply do this in a python database. The server asks for the header independent if this option is enabled or not.

See chaptr 3.10.1. OPTION MIME in rfc2229 https://git.gnu.org.ua/dico.git/tree/doc/rfc2229.txt#n887

Work around: Create a virtual database, which provides the database with and without mime. (One of those two database passes mime as a parameter to the python database.)

Of course the capability markup can be used instead. I do not know which clients support this.

Simo. He. <simohe>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by gray (Posted a comment)
  • -unavailable- added by simohe (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    2 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Jan 22 06:44:33 2023grayStatusNone=>Need Info
      Assigned toNone=>gray
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray