Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

lug-bg: sylpheed windows-1251 (re-hack ;-)


  • Subject: lug-bg: sylpheed windows-1251 (re-hack ;-)
  • From: danchev@xxxxxxxxx (George Danchev)
  • Date: Tue, 23 Apr 2002 13:37:21 +0300



Mda hack-a si zasluzhava , bravo ;-), samo 4e e malko hardcoded (i mislq 4e 
mozhe da go poiz4istime malko ;-), t.e. prinuzhdava Sylpheed-a kogato systavq 
header-a da slaga  v poleto Content-Type vinagi stojnost  "windows-1251" i 
ve4e ne mozhe da se smenq. 

No ponezhe na Sylpheed 0.7.4 (za prednite versions ne znam) mozhe da mu se 
ukazhe (bez hardcoded hackove ;-) da slaga syotvetnata stojnost na 
Content-Type poleto , tova stava ot Configuration|Common Preferences|Send ima 
"Outgoing codeset" i mozhe da se setnat nqkolko stojnosti vklu4itelno i 
Cyrillic (Windows-1251). Problema  e 4e kato se setne tam Cyrillic 
(Windows-1251), Sylpheed send-va taka:

X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i386-debian-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain;
  charset=CP1251

Damn CP1251 mozhe da obyrka nqkoj mail agenti !!! 
Ta vmesto tova charset=CP1251, trebe da e charset=windows-1251. 
(tova ne pre4i naprimer na KMail, btw Boris spoko az te 4eta predpolagam i 
drugite users 4iito agenti mogat (ili ne mogat ?) da smenqt sotjnostta na 
Content-Type ;-)

Tova setvane na Configuration|Common Preferences|Send ima "Outgoing codeset"  
e v Sylpheed/src/prefs_common.c 

#if HAVE_LIBJCONV
        SET_MENUITEM(_("Cyrillic (Windows-1251)"),	 CS_CP1251);

Ne sym opitval da smenq CS_CP1251 s CS_WINDOWS_1251 , no v src/codeconv.c ima 
takova CS_WINDOWS_1251 i prosto bez da sym osmislil koda (zabravi, no time 
and skills ;-) si mislq 4e hack-a ste stane po -clean, t.e. ve4e nqma da e 
hardcoded forever da post-va s windows-1251 v poleto Content-Type , a prosto 
set-vame Configuration|Common Preferences|Send ima "Outgoing codeset" na 
Cyrillic (Windows-1251) i ve4e Sylpheed trebe da prashta taka:

Content-Type: text/plain;
  charset=windows-1251

All mail agents happy ??? 

> Quick & Dirty hack da nakarash sylpheed da prashta v windows-1251:
>
> Redaktirash sylpheed-x.x.x/src/compose.c i promeniash slednite stringove:
>
> "Content-Type: text/plain; charset=%s\n" promeniash na
> "Content-Type: text/plain; charset=windows-1251\n"
>
> kakto i
>
> "Content-Transfer-Encoding: %s\n" promeniash na
> "Content-Transfer-Encoding: 8bit\n"

za tova s 8-bit ne e nuzhno hack, ima go v menus syvsem zakonno ;-)

> prekompilirash i si gotov. Malko grozno, no raboti.

ne e grozno, OK e. evala na code-to 4e e open ;-) 


-- 
Greets,
fr33zb1
===========================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.