• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Searching 30000+ Inbox

S

sumarto

Guest
Hi i need to delete some emails from an Inbox containing 30000+ emails.
Normal search from webmail doesnt work.
Can someone guide me?
Thankss..
 
Go to the current Maildir of this mailbox.

Look user/groups for path new and delete.
Mkdir new, chown user:groups and its good.

Exemple :
Sorry for déc, bad charset.

[email protected] = 54K mails.

Code:
[root@free-h gus]# cd /var/qmail/
[root@free-h qmail]# cd mailnames/free-h.org
[root@free-h free-h.org]# cd logs
[root@free-h logs]# ls
@attachments  Maildir
[root@free-h logs]# pwd
/var/qmail/mailnames/free-h.org/logs
[root@free-h logs]# ls -l
total 8
drwx------ 2 popuser popuser 4096 sep  6 00:35 @attachments
drwx------ 5 popuser popuser 4096 sep  5 21:50 Maildir
[root@free-h logs]# cd Maildir/
[root@free-h Maildir]# ls -l
total 6504
drwx------ 2 popuser popuser    4096 aoû 15 15:12 cur
-rw------- 1 popuser popuser    1535 déc  8 05:24 maildirsize
drwxr-xr-x 2 popuser popuser 6635520 déc  8 05:24 new
drwx------ 2 popuser popuser    4096 déc  8 05:24 tmp
[root@free-h Maildir]# cd new
[root@free-h new]# cd ..
[root@free-h Maildir]# ls -lh
total 6,4M
drwx------ 2 popuser popuser 4,0K aoû 15 15:12 cur
-rw------- 1 popuser popuser 1,5K déc  8 05:24 maildirsize
drwxr-xr-x 2 popuser popuser 6,4M déc  8 05:24 new
drwx------ 2 popuser popuser 4,0K déc  8 05:24 tmp
[root@free-h Maildir]# rm -rf new
[root@free-h Maildir]# mkdir new
[root@free-h Maildir]# chown popuser:popuser new/
[root@free-h Maildir]# ls -l
total 16
drwx------ 2 popuser popuser 4096 aoû 15 15:12 cur
-rw------- 1 popuser popuser 1535 déc  8 05:24 maildirsize
drwxr-xr-x 2 popuser popuser 4096 déc  9 01:08 new
drwx------ 2 popuser popuser 4096 déc  8 05:24 tmp
[root@free-h Maildir]#
 
Hi Loup Artic,
Thanks for the assitance, but i do not want to delete the entire mailbox as there could be important emails inside.
What i need is to remove some emails (spams,adv,etc) by doing manual search and delete, however i can not do it via webmail (horde) due to huge numbers of emails.
Any script that may help?
Appreciate any comments.

:)
 
Back
Top