Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


ianboag

103 posts

Master Geek
+1 received by user: 3

Trusted

#141398 11-Mar-2014 15:44
Send private message

I run an IMAP-based email system - it's a front-end-modded version of RoundCube.  Every night I want to go into each user's mailbox and blow away a whole pile of their messages. Is it enough just to delete the actual file? I can open and scan it to figure whether it lives or dies .....  

Create new topic
mattwnz
20515 posts

Uber Geek
+1 received by user: 4795


  #1002864 11-Mar-2014 16:02
Send private message

You need to provide more details. With IMAP people store their emails on the server, so they are not going to be happy if you delete them. If you want them to be deleted when they are downloaded, then you should use pop.



ianboag

103 posts

Master Geek
+1 received by user: 3

Trusted

  #1002872 11-Mar-2014 16:07
Send private message

Trust me. In this webmail system the users have no problem with me managing the on-server messages. There are a lot of (broadcast) messages, they have short currency and the users don't always delete things. The system slows down if there are too many.

Ragnor
8279 posts

Uber Geek
+1 received by user: 585

Trusted

  #1002958 11-Mar-2014 19:23
Send private message

ianboag: Trust me. In this webmail system the users have no problem with me managing the on-server messages. There are a lot of (broadcast) messages, they have short currency and the users don't always delete things. The system slows down if there are too many.


The IMAP protocol covers the communication between client and server, I don't believe it dictates the backend storage of accounts or messages.

You should contact the vendor of the system and/or look at their documentation for how best to safely bulk remove messages before messing with their backend storage cowboy style.

Perhaps you should consider why email is being used for high frequency notifications instead of some other web technology better suited to it, rss/atom?

If you really want to do this  it's not too hard to write program that connects to an account via IMAP and removes messages based on some critera (from, subject name) in most languages. The main issues are security based, in that you need a list of accounts and usernames/passwords that the program can use to access the email server.

What's the server environment: Linux/cron/python, Microsoft, other?









aw

aw
296 posts

Ultimate Geek
+1 received by user: 30


  #1004258 12-Mar-2014 14:15
Send private message

The storage format, not the access means (IMAP) is what's relevant here. mbox, Maildir, other?

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.