Re: Mass Stripping Attachments by Directory, Age, Size

2021-04-04 Thread Plutocrat
OK, an update on the progress with this. I finally settled on a python script which does the stripping based on code here:    http://code.activestate.com/recipes/302086-strip-attachments-from-an-email-message/ And then a bash script using find that allows

thunderbird copy old messages from other dirs

2021-04-04 Thread Brian
Is there a known documented way to copy messages from backup folders into the cur folder and have them not make a mess of the dates. What I see is if I copy several year old messages to the cur folder on an ubuntu box the massages when viewed on an android phone appear out of order. I tried del

imapsieve and master user

2021-04-04 Thread André Rodier
Hello all, I have am imap sieve script, running fine. I would like to check, if it is possible, inside the sieve script, if the current user is a master user or not. I believe this is probably not possible. Otherwise, if it is not possible, I would like to check for an external condition, like a

Re: Search seems slow with apache solr

2021-04-04 Thread Christian Kivalo
On 2021-04-04 18:24, Steve Dondley wrote: I'm experimenting with Apache Solr and Dovecot. As far as I can tell, I have dovecot working with Apache Solr as demonstrated by this output: a search text "cash" * SEARCH 4 8 26 35 45 52 54 55 63 a OK Search completed (0.356 + 0.001 + 0.068 secs). Howe

Search seems slow with apache solr

2021-04-04 Thread Steve Dondley
I'm experimenting with Apache Solr and Dovecot. As far as I can tell, I have dovecot working with Apache Solr as demonstrated by this output: a search text "cash" * SEARCH 4 8 26 35 45 52 54 55 63 a OK Search completed (0.356 + 0.001 + 0.068 secs). However, when using the roundcube search bar a

Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread Sebastian
Why? Isn't it better to fix misbehaving clients server-side? For example, some clients I have (OEM built-in clients) are for example putting the date 1970-01-01 on all outgoing emails (and also on incoming emails which lacks a Date: header) causing them to land at the bottom of the inbox view an

Re: Avoid duplicate emails in the sent folder

2021-04-04 Thread André Rodier
On Sun, 2021-04-04 at 06:45 -0600, @lbutlr wrote: > On 04 Apr 2021, at 06:39, André Rodier wrote: > > I continue to search on a simple solution, and I will come back to > > you! > > Seems the best solution is to get a web client that properly puts > messages into DRAFTS and not appends them to Se

Re: Avoid duplicate emails in the sent folder

2021-04-04 Thread @lbutlr
On 04 Apr 2021, at 06:39, André Rodier wrote: > I continue to search on a simple solution, and I will come back to you! Seems the best solution is to get a web client that properly puts messages into DRAFTS and not appends them to Sent, but I guess that is too much to hope for? I'd certainly at

Sv: Sv: Sv: Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread Sebastian
Why won't it work to just, as I said, create a separate folder, like Sent2, which you use as a "midpoint" to land all your externally imported emails, and then you just move everything from Sent2 to Sent. -Ursprungligt meddelande- Från: dovecot-boun...@dovecot.org För André Rodier Skick

Re: Sv: Sv: Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread André Rodier
On Sun, 2021-04-04 at 14:31 +0200, Sebastian wrote: > Also another important thing to take in consideration: > > An email that is sent outgoing from an SMTP server, isn't a exact > copy of the email put into the SMTP server. > Thats why a deduplicate program/command/filter won't work, as the 2 > e

Sv: Sv: Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread Sebastian
Also another important thing to take in consideration: An email that is sent outgoing from an SMTP server, isn't a exact copy of the email put into the SMTP server. Thats why a deduplicate program/command/filter won't work, as the 2 emails aren't 100% identical. The 2 "duplicates" arent technic

Sv: Sv: Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread Sebastian
Aah yeah. A solution would be to create a folder, called Sent2. Then you APPEND all emails into the Sent2 folder. Then you COPY/MOVE all emails into the Sent folder. What I have understand, your problem is that some clients (like webmail and certain email clients) write their own copy into the

Re: Sv: Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread André Rodier
Hello Sebastian, On Sun, 2021-04-04 at 14:00 +0200, Sebastian wrote: > Thats why you need the exim4 filter too. I obtained the exact same result with postfix, using +Sent and a sieve filter. Sent emails are automatically bcc'ed to the user, using the +Sent email address. However, I still want to

Sv: Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread Sebastian
Thats why you need the exim4 filter too. Because, my version basically prohibits the IMAP client from writing to the Sent folder at all, and gives that job to the SMTP server instead. Works perfectly for me, all sent emails gets into the sent folder without any hitch. Without any duplicates sin

Re: Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread André Rodier
Thanks, Sebastian. I just tried this, but it is working too well. If I want to import emails from another Sent folder, using drag & drop from my email client, the emails are deleted in the background. This is why I am trying to use the duplicate filter. Kind regards, André Rodier On Sun, 2021-

Sv: Avoid duplicate emails in the sent folder

2021-04-04 Thread Sebastian
I have a sieve filter called "sent.sieve" Where I just do this: discard; Then in sieve settings: plugin { sieve_plugins = sieve_imapsieve sieve_extprograms sieve_global_extensions = +vnd.dovecot.execute sieve_execute_bin_dir = /usr/bin/ imapsieve_mailbox2_name = Sent imapsieve_mailbox2

Avoid duplicate emails in the sent folder

2021-04-04 Thread André Rodier
Hello, I have a webmail program, that I cannot configure to not save sent emails in the Sent folder. My emails to the SOGo team don't seem to reach the mailing list anymore. So, I have no other choice to think the problem differently, and _maybe_ use Dovecot to fix this issue. Moreover, I think t