Coder Social home page Coder Social logo

Comments (8)

gotlium avatar gotlium commented on August 12, 2024

I think we can use CharField with 350 length. But I think this is a big subject. And I do not see migrations for South. We are supporting Django from 1.4.

RFC 2822, section 2.1.1 to start. http://www.faqs.org/rfcs/rfc2822.html

There are two limits that this standard places on the number of characters in a line. Each line of characters MUST be no more than 998 characters, and SHOULD be no more than 78 characters, excluding the CRLF.

The recommendation for no more than 78 characters in the subject header sounds reasonable. No one wants to scroll to see the entire subject line, and something important might get cut off on the right.

from django-db-mailer.

vosi avatar vosi commented on August 12, 2024

I have a Django template in subject, with lots of if else
while the template length is abt 1000 chars - compiled length is no larger than 100

if you will limit it to 350 - then what is the point of having subject treated as the template?
All idea of this was to allow site's administrator to edit every bit of email template without getting deep to the code

as for RFC subj length - subj can be multiple lines
and there is no limit on resulting length
and you won't find mail server's default config that will limit the subject's length

from django-db-mailer.

gotlium avatar gotlium commented on August 12, 2024

Ok. Please fix the problem with compatibility with old Django versions.
PS - can you show me real use cases for subjects with length > 100 ?)

from django-db-mailer.

vosi avatar vosi commented on August 12, 2024

will do today... in the evening
merry Christmas btw

from django-db-mailer.

gotlium avatar gotlium commented on August 12, 2024

Thx, you too) And with New Year)

from django-db-mailer.

vosi avatar vosi commented on August 12, 2024

well I have a set of
Start text {{ obj.param1 }}, {% if obj.param2 %} ..... {% elif ....... {%if obj2.param1 .... etc

the result is much shorter, like
New job posted, Title, region or suburb or locality or remote, keywords or expire date ...

and for a/b testing and just for the ease of management it is much easier to have this editable in the admin panel, than via the source code

from django-db-mailer.

gotlium avatar gotlium commented on August 12, 2024

Yes, you are right)

from django-db-mailer.

kaleb avatar kaleb commented on August 12, 2024

@vosi one thing I have done to get around this, even though it is not ideal since it is no longer editable in the database is that I have added {% include ... %} statements in the subject

from django-db-mailer.

Related Issues (20)

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.