{"id":529,"date":"2009-07-23T13:23:17","date_gmt":"2009-07-23T06:23:17","guid":{"rendered":"http:\/\/adityo.blog.binusian.org\/?p=529"},"modified":"2009-07-23T13:16:22","modified_gmt":"2009-07-23T06:16:22","slug":"how-to-set-default-user-preferences-on-squirrel-webmail","status":"publish","type":"post","link":"https:\/\/adityo.blog.binusian.org\/?p=529","title":{"rendered":"How to set Default user preferences on squirrel webmail"},"content":{"rendered":"<p style=\"text-align: justify; \">This is a tip for those who are using squirrel webmail. I have a user request to show HTML \/picture on the squirrel email body and manually you can add the option by goin to your squirrel webmail -&gt;\u00a0Options -&gt; Display Preferences -&gt;\u00a0Show HTML Version by Default: \u00a0-&gt; and click Yes -&gt; click the Submit button.<\/p>\n<p style=\"text-align: justify; \"><a href=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/07\/sqwebmail1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-530\" title=\"sqwebmail1\" src=\"http:\/\/adityo.blog.binusian.org\/files\/2009\/07\/sqwebmail1.png\" alt=\"sqwebmail1\" width=\"495\" height=\"625\" srcset=\"https:\/\/adityo.blog.binusian.org\/files\/2009\/07\/sqwebmail1.png 550w, https:\/\/adityo.blog.binusian.org\/files\/2009\/07\/sqwebmail1-237x300.png 237w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/a><\/p>\n<p style=\"text-align: justify; \">Okay it is easy right ? but if the user want all of the email account under your qmail mail server squirrel webmail by default set the\u00a0Show HTML Version by Default to be Yes , what you gonna do ? set the squirrel mail account one by one \ud83d\ude42 hmm i don&#8217;t think so. Here is some tips to changes the default user preference on squirrel webmail.<\/p>\n<p style=\"text-align: justify; \">1. \u00a0The default preferences are stored in your data directory in a file called default_pref\u00a0\u00a0it usually stored on your sqwebmail data in my case it is on\u00a0\/Web\/apache\/htdocs\/mail.test.com\/data\/default_pref\u00a0. \u00a0And every user have their own\u00a0username.pref example\u00a0\/Web\/apache\/htdocs\/mail.test.com\/data\/adityo@test.com.pref \u00a0.<\/p>\n<p style=\"text-align: justify; \">Note that the <code>default_pref<\/code> file works only for users that don&#8217;t have an existing preference file (i.e. new users which haven&#8217;t logged in yet). If you want to add preferences to existing user accounts, you should edit (manually or by a script) their existing preference files. It&#8217;s not recommended to delete the preference files, since that will revert <em>all<\/em> preferences edited by your users, including such settings as their real names.<\/p>\n<p>2. We need to set\u00a0default_pref so it will be default setting for all new mail account<br \/>\n<code># vi \/Web\/apache\/htdocs\/mail.test.com\/data\/default_pref<\/code><br \/>\n<code><br \/>\nfull_name=<br \/>\nreply_to=<br \/>\nshow_html_default=0 # -&gt; changes it to 1 to enable Show HTML Version by Default<br \/>\nsort=0<br \/>\nshow_num=100 #to set Number of Messages per Page<br \/>\nattachment_common_show_images=1 #to set Display Attached Images with Message to be yes<br \/>\n<\/code><\/p>\n<p>3. Okay we have edit the default_pref for new account and how about for the old account that already created ? you can create a new default.pref let say it is on \/tmp\/default.pref<br \/>\n<code># vi \/tmp\/default.pref<\/code><br \/>\n<code>show_html_default=0 # -&gt; changes it to 1 to enable Show HTML Version by Default<br \/>\nsort=0<br \/>\nshow_num=100 #to set Number of Messages per Page<br \/>\nattachment_common_show_images=1 #to set Display Attached Images with Message to be yes<br \/>\ncustom_css=sans-10.css #change the font to a custom one by using CSS<\/code><br \/>\nand go to your username.pref folder a<br \/>\n<code> cd \/Web\/apache\/htdocs\/mail.test.com\/data\/<\/code><br \/>\nnd run this<br \/>\n<code>#for l in `ls *.pref`; do cat \/tmp\/default.pref &gt;&gt; $l; done<br \/>\n<\/code><br \/>\nOr if you want to use default_pre just run this<br \/>\n<code>#for l in `ls *.pref`; do cat\/Web\/apache\/htdocs\/mail.test.com\/data\/default_pre &gt; $l; done<br \/>\n<\/code><\/p>\n<p>it will changes your Squirrell webmail (SQWebmail) user preferences settings<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a tip for those who are using squirrel webmail. I have a user request to show HTML \/picture on the squirrel email body and manually you can add the option by goin to your squirrel webmail -&gt;\u00a0Options -&gt; Display Preferences -&gt;\u00a0Show HTML Version by Default: \u00a0-&gt; and click Yes -&gt; click the Submit [&hellip;]<\/p>\n","protected":false},"author":386,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89,2584],"tags":[2585],"class_list":["post-529","post","type-post","status-publish","format-standard","hentry","category-mail","category-sqwebmail","tag-sqwebmail-tips"],"_links":{"self":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/users\/386"}],"replies":[{"embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=529"}],"version-history":[{"count":19,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=\/wp\/v2\/posts\/529\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adityo.blog.binusian.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}