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.




102 posts

Master Geek

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
15091 posts

Uber Geek


  # 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.



102 posts

Master Geek

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.

 
 
 
 


8033 posts

Uber Geek

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

273 posts

Ultimate Geek


  # 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



Twitter and LinkedIn »



Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

OPPO Showcases New CameraX Capabilities at Google Developer Days China 2019
Posted 15-Sep-2019 12:42


New Zealand PC Market returns to growth
Posted 15-Sep-2019 12:24


Home sensor charity director speaks about the preventable death which drives her to push for healthy homes
Posted 11-Sep-2019 08:46


Te ao Maori Minecraft world set to inspire Kiwi students
Posted 11-Sep-2019 08:43


Research reveals The Power of Games in New Zealand
Posted 11-Sep-2019 08:40


Ring Door View Cam now available in New Zealand
Posted 11-Sep-2019 08:38


Vodafone NZ to create X Squad
Posted 10-Sep-2019 10:25


Huawei nova 5T to be available 20th September
Posted 5-Sep-2019 11:55


Kogan.com launches prepay challenger brand Kogan Mobile in New Zealand
Posted 3-Sep-2019 11:42


Pagan Online available now
Posted 27-Aug-2019 20:22


Starship hopes new app will help combat antibiotic resistance challenges
Posted 27-Aug-2019 19:43


Intel expands 10th Gen Intel Core Mobile processor family
Posted 23-Aug-2019 10:22


Digital innovation drives new investment provider
Posted 23-Aug-2019 08:29


Catalyst Cloud becomes a Kubernetes Certified Service Provider (KCSP)
Posted 23-Aug-2019 08:21


New AI legaltech product launched in New Zealand
Posted 21-Aug-2019 17:01



Geekzone Live »

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


Support Geekzone »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



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.

Alternatively, you can receive a daily email with Geekzone updates.