11 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] How do I set an MOTD
FromSent OnAttachments
Malaney J. HillOct 29, 2006 8:28 am 
Sam VarshavchikOct 29, 2006 8:58 am 
Malaney J. HillOct 29, 2006 9:25 am 
Sam VarshavchikOct 29, 2006 10:16 am 
Jay LeeOct 30, 2006 5:44 am 
Tony EarnshawOct 30, 2006 8:08 am 
Jay LeeOct 30, 2006 8:21 am 
Tony EarnshawOct 30, 2006 8:37 am 
Malaney J. HillOct 30, 2006 9:04 am 
Tony EarnshawOct 30, 2006 11:40 am 
Mike LeoneNov 8, 2006 11:22 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: [maildropl] How do I set an MOTDActions...
From:Malaney J. Hill (mala@gmail.com)
Date:Oct 30, 2006 9:04:48 am
List:net.sourceforge.lists.courier-maildrop

Ok, so I appreciate all of the chatter. I did read up on Maildir and now understand why messages first must be copied to tmp/ before being moved to new/. I even flushed an hour down the toilet last night realizing just how important the permissions of these newly moved messages are in the grand scheme of things.

This all still leaves me with a burning desire to get an MOTD working for my IMAP users. Certainly I can send an email to each and everyone of them, but that's so disco, especially when we have all of these great tools at our disposal. Besides, I AM THE CEO of my company ... and the janitor too.

What I would like to do is create a single file, say /etc/imap_motd and then have that file appear as a new message in all of my user's INBOXes.

If I hear correctly, you are saying write a cron job that checks the timestamp on the motd file and if changed copies the file to each users /tmp dir, chowns it appropriately, then MOVES that file in the /tmp dir to the /new dir and chowns it again.

Does this sound right?

Finally, how could this be accomplished with a hard link? If I make a hard link to a file then what happens when the user deletes the message? What happens when I want to change the MOTD?

Thanks,

Malaney

On 10/30/06, Tony Earnshaw <teri@barlaeus.nl> wrote:

Jay Lee wrote:

On Mon, October 30, 2006 11:09 am, Tony Earnshaw wrote:

I can't understand what all the fuss is all about. This site uses LDAP as the maildrop backend. A cron script is run every hour to see whether any LDAP user doesn't have a $HOME dir.

This thread is not discussing autocreating a user's Home/Maildir. It is discussing methods for sending out a Message of the Day (MOTD) to all users.

The principle's exactly the same. God bless LDAP.

--Tonni