12 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] Disabling autorenames...
FromSent OnAttachments
Paweł TęczaJan 10, 2008 5:13 am 
Sam VarshavchikJan 10, 2008 4:49 pm 
Paweł TęczaJan 11, 2008 1:18 am 
Milan ObuchJan 14, 2008 11:29 am 
Paweł TęczaJan 31, 2008 1:52 am.gz
Paweł TęczaJan 31, 2008 2:09 am 
Sam VarshavchikFeb 3, 2008 7:32 am 
Paweł TęczaFeb 4, 2008 12:49 am 
Sam VarshavchikFeb 4, 2008 4:05 am 
Paweł TęczaFeb 4, 2008 4:48 am 
Julie S. LinFeb 4, 2008 9:07 am 
Rainer DuffnerFeb 4, 2008 10:23 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [sqwebmail] Disabling autorenamesent per user?Actions...
From:Milan Obuch (cour@dino.sk)
Date:Jan 14, 2008 11:29:07 am
List:net.sourceforge.lists.courier-sqwebmail

On Friday 11 January 2008, Paweł Tęcza wrote:

Sam Varshavchik <mrs@courier-mta.com> writes:

Paweł Tęcza writes:

Hi Sam,

What do you think about disabling autorenamesent per user?

One of my user asked me how to disable autorenamesent feature in webmail, because it is confusing and unuseful for him. I think that it's interesting idea, but I would like to know what your opinion about it is. Probably the feature is not hard to code it.

Sounds like a plan. Go for it. The tricky part is that this setting must now be a per-account setting, which, if not set at all -- either way -- defaults to the global setting.

Hello,

Thanks for the green light! :) Yes, I was thinking about adding AUTORENAMESENT setting to user Maildir/sqwebmail-config file and checking its value when AUTORENAMESENT feature was globally enabled in the webmail.

Have a nice day,

I was tracking this a bit - I couldn't disable it (globally) with neither --disable-autorenamesent argument given to configure while building nor SQWEBMAIL_AUTORENAMESENT setting in sqwebmaild config file... until I found I had SQWEBMAIL_AUTORENAMESENT="NO" in config file... and there is

(void)maildir_create(INBOX "." DRAFTS); { const char *autorenamesent=AUTORENAMESENT; const char *p=getenv("SQWEBMAIL_AUTORENAMESENT"); if (p && *p) autorenamesent = p; if ( strncmp(autorenamesent, "no", 2) != 0 ) (void)rename_sent_folder(); } (void)maildir_create(INBOX "." SENT);

in courier-0.58.0/webmail/sqwebmail.c file. The problem was case sensitivity... anyway, I think this finding may help you in coding. You need just add small number of lines to achive what you want. Maybe you already know that.

On the other side, most settings in config files are case insensitive, could strncmp be replaced with strncasecmp? What do you think? Maybe there are others confused as was I...

Regards, Milan