Koozali.org: home of the SME Server

set qmail to use Junk E-mail instead of junkmail?

Offline compdoc

  • *
  • 226
  • +0/-0
set qmail to use Junk E-mail instead of junkmail?
« on: July 04, 2009, 03:13:04 PM »
Outlook needs some work. Most features work well, but things like its Find is brainless, and its insistence in using a folder named 'Junk E-mail' is just stupid.

Is it possible to change qmail to use a folder named 'Junk E-mail' instead of 'junkmail' so that junkmail can be deleted?

Thanks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: set qmail to use Junk E-mail instead of junkmail?
« Reply #1 on: July 04, 2009, 03:59:45 PM »
Outlook needs some work.

You could just delete it.

Quote
Is it possible to change qmail to use a folder named 'Junk E-mail' instead of 'junkmail' so that junkmail can be deleted?

Use a symlink:

ln -s ~user/Maildir/.junkmail ~user/Maildir/.'Junk E-mail'

Offline compdoc

  • *
  • 226
  • +0/-0
Re: set qmail to use Junk E-mail instead of junkmail?
« Reply #2 on: July 04, 2009, 04:14:29 PM »
Deleting Outlook isnt an option - too many years of data stored there: calendar/contacts/email.

I saw your workaround in another topic, but doesnt that still leave you with the two folders? I'm using Imap, and Outlook creates the Junk E-mail whether you want it or not, and qmail uses the junkmail folder whether you want it to or not.

I dont need the spam in both. Currently, I just dont use the Junk E-mail folder for anything. Outlook isnt used for sorting spam. Be nice to get rid of one junk mail folder. Surely qmail is configurable, since Outlook is not?

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: set qmail to use Junk E-mail instead of junkmail?
« Reply #3 on: July 04, 2009, 04:58:00 PM »
I saw your workaround in another topic, but doesnt that still leave you with the two folders?

No, one folder with two names.

Quote
Surely qmail is configurable, since Outlook is not?

Yes, qmail is configurable. The symlink is easy. If you want a harder way, you can use a custom user template for the .qmail file.

Offline compdoc

  • *
  • 226
  • +0/-0
Re: set qmail to use Junk E-mail instead of junkmail?
« Reply #4 on: July 04, 2009, 05:51:48 PM »
Ahh, so with the symlink, I can delete the user's folders named junkmail so they dont appear in the IMAP, and only Junk E-mail remains?

Offline compdoc

  • *
  • 226
  • +0/-0
Re: set qmail to use Junk E-mail instead of junkmail?
« Reply #5 on: July 04, 2009, 08:19:31 PM »
This does not seem to work. A symlink still looks like a folder to both Outlook and Secure File Transfer.

Two folders appear - one being the symlink, and the real one. Doesnt matter which way the link occurs:

.Junk E-mail -> .junkmail , or
.junkmail -> .Junk E-mail

qmail has to be made to use .Junk E-mail so that .junkmail can be deleted. I'll try the .qmail file.

Thanks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: set qmail to use Junk E-mail instead of junkmail?
« Reply #6 on: July 05, 2009, 01:38:27 AM »
Two folders appear - one being the symlink, and the real one.

Why is that a problem?

Offline compdoc

  • *
  • 226
  • +0/-0
Re: set qmail to use Junk E-mail instead of junkmail?
« Reply #7 on: July 05, 2009, 02:54:55 AM »
I think I have it - I created a custom template in:
 
/etc/e-smith/templates-user-custom/.qmail-junkmail/10deliver_to_junkmail

Im telling it to use the Junk E-mail folder instead - we'll see how it goes. I get so few junkmail these days, thanks to bayes and the other mods Ive made to spamassassin...