[vchkpw] Automatic Folder creation
Could somebody please give me a pointer as to how I can alter the vpopmail source to automatically create Sent, Trash, Drafts folder etc? Surely if vpopmail can create a maildir, it isn't a huge step to create a few subfolders? I just can't find the function that does this... Thanks, Mike
Re: [vchkpw] Automatic Folder creation
On Sat, 31 May 2003 19:47:04 +0100 "Michael Fabricius" <[EMAIL PROTECTED]> wrote: MF> Could somebody please give me a pointer as to how I can alter the MF> vpopmail source to automatically create Sent, Trash, Drafts folder MF> etc? Surely if vpopmail can create a maildir, it isn't a huge step MF> to create a few subfolders? I just can't find the function that does MF> this... I thought about this patch, too... However, I've planned to implement it outside of vpopmail. Now I think that better place will be in vpopmail itself, thanks for idea... -- Alex.
Re: [vchkpw] Automatic Folder creation
Well. If you work it out - Original Message - From: "Alex Povolotsky" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, May 31, 2003 8:04 PM Subject: Re: [vchkpw] Automatic Folder creation > On Sat, 31 May 2003 19:47:04 +0100 > "Michael Fabricius" <[EMAIL PROTECTED]> wrote: > > MF> Could somebody please give me a pointer as to how I can alter the > MF> vpopmail source to automatically create Sent, Trash, Drafts folder > MF> etc? Surely if vpopmail can create a maildir, it isn't a huge step > MF> to create a few subfolders? I just can't find the function that does > MF> this... > > I thought about this patch, too... However, I've planned to implement it outside of vpopmail. Now I think that better place will be in vpopmail itself, thanks for idea... > > > -- > Alex. > >
RE: [vchkpw] Automatic Folder creation
> > I thought about this patch, too... However, I've planned to > implement it > outside of vpopmail. Now I think that better place will be in vpopmail > itself, thanks for idea... > > You could do it quite simply in a mailfilter: Eg. My Spam mailfilter creates a SPAM folder if it does not already exist, then delivers any messages marked as spam to the new dir: if ((/^X-Spam-Flag:.*YES/)) { `test -d ./Maildir/.SPAM` if( $RETURNCODE == 1 ) { `maildirmake ./Maildir/.SPAM;chown -R vpopmail.vchkpw ./Maildir/.SPAM` `/home/vpopmail/subImapSpam.sh ./` } to "./Maildir/.SPAM/" } to "./Maildir/" ~ /home/vpopmail/subImapSpam.sh: #!/bin/bash IMAP="$1/Maildir/courierimapsubscribed" if [ -f "$IMAP" ]; then CHECK=`cat "$1/Maildir/courierimapsubscribed" | grep "INBOX.SPAM"` if [ "$CHECK" == "" ]; then echo "INBOX.SPAM" >> $IMAP fi else NEW="INBOX\nINBOX.Sent\nINBOX.Trash\nINBOX.Drafts\nINBOX.SPAM" echo -e $NEW > $IMAP chown vpopmail.vchkpw $IMAP chmod 644 $IMAP fi ~ HTH, MB > > > > -- > > Alex. > > > > > > > >
[vchkpw] open-smtp files
Hi, I have 7828 files sitting in my /usr/local/vpopmail/etc directory called open-smtp.tmp.. They are all empty. Is this where all the roaming users info goes? Thanks, Brad Davis
Re: [vchkpw] Automatic Folder creation
Check out www.jerfu.com/toaster and go to section #21. It's using an older version of vpopmail, but it should give you some insight. Jeremy Michael Fabricius said: > Well. If you work it out > > > - Original Message - > From: "Alex Povolotsky" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, May 31, 2003 8:04 PM > Subject: Re: [vchkpw] Automatic Folder creation > > >> On Sat, 31 May 2003 19:47:04 +0100 >> "Michael Fabricius" <[EMAIL PROTECTED]> wrote: >> >> MF> Could somebody please give me a pointer as to how I can alter the >> MF> vpopmail source to automatically create Sent, Trash, Drafts folder >> MF> etc? Surely if vpopmail can create a maildir, it isn't a huge step >> MF> to create a few subfolders? I just can't find the function that >> does MF> this... >> >> I thought about this patch, too... However, I've planned to implement >> it > outside of vpopmail. Now I think that better place will be in vpopmail > itself, thanks for idea... >> >> >> -- >> Alex. >> >> > >
Re: [vchkpw] Automatic Folder creation
Thanks Jeremy, Brilliant - Just what I was looking for. mike - Original Message - From: "Jeremy Oddo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, June 01, 2003 12:23 AM Subject: Re: [vchkpw] Automatic Folder creation > Check out www.jerfu.com/toaster and go to section #21. It's using an > older version of vpopmail, but it should give you some insight. > > Jeremy > > Michael Fabricius said: > > Well. If you work it out > > > > > > - Original Message - > > From: "Alex Povolotsky" <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Saturday, May 31, 2003 8:04 PM > > Subject: Re: [vchkpw] Automatic Folder creation > > > > > >> On Sat, 31 May 2003 19:47:04 +0100 > >> "Michael Fabricius" <[EMAIL PROTECTED]> wrote: > >> > >> MF> Could somebody please give me a pointer as to how I can alter the > >> MF> vpopmail source to automatically create Sent, Trash, Drafts folder > >> MF> etc? Surely if vpopmail can create a maildir, it isn't a huge step > >> MF> to create a few subfolders? I just can't find the function that > >> does MF> this... > >> > >> I thought about this patch, too... However, I've planned to implement > >> it > > outside of vpopmail. Now I think that better place will be in vpopmail > > itself, thanks for idea... > >> > >> > >> -- > >> Alex. > >> > >> > > > > > > > > >
[vchkpw] timestamp - readable
There is a way to find out when last time a user read his email ? This ways should not care if was from pop or webmail ! Thanks