Re: Elimination of mime/html part

2020-05-03 Thread Angel M Alganza
Hi raf, On Fri, May 01, 2020 at 11:20:54AM +1000, raf wrote: I wrote a tool for replacing non-text attachments in email with text versions. It's at http://raf.org/textmail. Thank you so much for writting textmail, which is exactly what I needed and much more. It is much cooler than I could

Auto saving attachment [was Re: Elimination of mime/html part]

2020-05-03 Thread Angel M Alganza
Hi again, On Fri, May 01, 2020 at 11:20:54AM +1000, raf wrote: I wrote a tool for replacing non-text attachments in email with text versions. It's at http://raf.org/textmail. As I said in my previous mail, textmail does a wonderful job reducing my email list folders by eliminating all HTML

Elimination of mime/html part

2020-04-30 Thread Angel M Alganza
Hello: I keep a few mailbox folders containing a large amount of multipart mail with a text/plain part and a text/html part, which I would like to eliminate in order to reduce the amount of disk space used (for a small device and mainly the IMAP server I keep synced with). I've been looking for

Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-12 Thread Angel M Alganza
On Mon, Feb 08, 2021 at 02:43:48PM -0600, boB Stepp wrote: killall mbsync &>/dev/null; /usr/bin/mbsync -a -qq Maybe it's an stupid idea, but perhaps mbsync is starting to run so fast that the killall kills it? You could try replacing the semicolon wich a couple of ampersand signs to make

Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-12 Thread Angel M Alganza
On Mon, Feb 01, 2021 at 04:34:47PM -, Grant Edwards wrote: I maintained a local queueing MTA for many years, but after multiple screwups where mail wasn't getting sent (and I didn't find out in a timely manner) I switched to a non-queueing MTA (e.g. ssmtp) and later to mutt's SMTP support.

Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-12 Thread Angel M Alganza
On Thu, Feb 11, 2021 at 06:51:33AM -0500, David J. Weller-Fahy wrote: * * * * * flock -nx ~/.mbsync-lock-fast mbsync google-fast-cycle */5 * * * * flock -nx ~/.mbsync-lock-medium mbsync google-medium-cycle */15 * * * * flock -nx ~/.mbsync-lock-slow mbsync google-slow-cycle I do the same, but

Re: Macro to apply on current mailbox

2021-02-15 Thread Angel M Alganza
On Tue, Feb 16, 2021 at 12:00:35AM +0300, Oleg A. Mamontov wrote: The below approach works for me, probably it can be helpful somehow: .muttrc --- # the very first folder-hook folder-hook . "source ~/.mutt/on-folder-change.muttrc" --- # .mutt/on-folder-change.muttrc --- set record = ^ set

Re: Macro to apply on current mailbox

2021-02-15 Thread Angel M Alganza
On Tue, Feb 16, 2021 at 12:26:54AM +0300, Oleg A. Mamontov wrote: Then what should I do to mbsync the current maildir? Hitting ESC-o doesn't seem to do it. Yes, it is. For debug I suggest to simplify macro as: --- macro index,pager o "mbsync full:$record" Nice. It shows that: Shell

Re: Macro to apply on current mailbox

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 10:40:18PM +0100, Genética wrote: On Tue, Feb 16, 2021 at 12:26:54AM +0300, Oleg A. Mamontov wrote: Then what should I do to mbsync the current maildir? Hitting ESC-o doesn't seem to do it. Yes, it is. For debug I suggest to simplify macro as: --- macro index,pager o

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 12:49:53PM -0800, Felix Finch wrote: On 20210215, Kevin J. McCarthy wrote: You could write a script, I guess, something like: cd $header_cache_dir rm -f * How well would that play with existing mutt sessions? I run several mutts inside tmux (local mail, work IMAP

Re: Macro to apply on current mailbox

2021-02-15 Thread Angel M Alganza
On Tue, Feb 16, 2021 at 01:02:38AM +0300, Oleg A. Mamontov wrote: I guess your folder names differ from mine. You can debug step by step, start from keeping only the first assignment: --- set record = ^ --- Launch mutt and check the result pressing :echo $record Then, you can adjust the sed

Re: Macro to apply on current mailbox

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 07:13:05PM +0100, Genética wrote: On Mon, Feb 15, 2021 at 09:43:39AM -0800, Kevin J. McCarthy wrote: On Mon, Feb 15, 2021 at 10:35:25AM +0100, Angel M Alganza wrote: # Need to upgrade to > 1.8.0 (setenv) folder-hook . 'set my_folder=$folder;set fol

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 08:04:10PM +, Chris Green wrote: I have (for example) about 6000 messages in my sentmail folder, it loads in less than a second. It is a *lot* faster since I installed an NVME SSD. Well, in that case it might not be such an improvement to use the header cache and

Re: Macro to apply on current mailbox

2021-02-15 Thread Angel M Alganza
On Tue, Feb 16, 2021 at 01:14:31AM +0300, Oleg A. Mamontov wrote: 'full' is the name of my mbsync channel defined in ~/.mbsynrc: --- # full set of mailboxes Channel full ... --- It was just an example that you need to correct according to your mbsync setup. I see. I group different channels

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 11:17:42AM -0800, Kevin J. McCarthy wrote: at a certain point the cache will lose some efficiency by sheer size. From time to time I simply delete the whole contents of my ~/.mutt/cache directory to keep it a bit more efficient. A kind of prune function would be

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 07:40:58PM +, Chris Green wrote: Where does mutt keep these header caches then? I have 'set header_cache=~/.mutt/cache/'. I don't have set header_cache set for the good reason that mutt doesn't download mail from anywhere, it's all here on my desktop. The cache

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 04:21:11PM +, Chris Green wrote: mails in my junk catching directories, is it OK/safe to do it like this? 20 02 * * * find /home/chris/mail/Ju/*/cur -type f -mtime +7 -exec rm {} \; 30 02 * * * find /home/chris/mail/Ju/*/new -type f -mtime +7 -exec rm {} \;

Re: Macro to apply on current mailbox

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 09:43:39AM -0800, Kevin J. McCarthy wrote: On Mon, Feb 15, 2021 at 10:35:25AM +0100, Angel M Alganza wrote: # Need to upgrade to > 1.8.0 (setenv) folder-hook . 'set my_folder=$folder;set folder="XXX";set visual=^' folder-h

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 05:07:54PM +, Chris Green wrote: Does no one else ever delete mail messges? :-) I do, and I try to be ruthless doing it. Since I copy every single piece of email into my IMAP 'bak' mailfolder, where it sits for 180 days before it is automatically deleted, I make

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 06:12:39PM +, Chris Green wrote: > mails in my junk catching directories, is it OK/safe to do it like this? Other ones are error messages from a remote server which I usually don't care about but occasionally I want to look at. Oh, that's interesting. I might

Re: [unixbhas...@gmail.com: Notify-send pop up for specific mails]

2021-02-14 Thread Angel M Alganza
On Sun, Feb 14, 2021 at 04:36:07PM +, Sam Kuper wrote: https://pypi.org/project/cs.app.mailfiler/ which monitors multiple Maildirs for new messages, and files them according to per-folder rules. Nice. I've bookmarked this as a procmail alternative :) Have a look at imapfilter,

Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-14 Thread Angel M Alganza
On Sun, Feb 14, 2021 at 01:10:41AM -0600, boB Stepp wrote: On 21/02/13 08:03PM, Sam Kuper wrote: A queue script is included with msmtp, so you can have the best of both worlds :) https://git.marlam.de/gitweb/?p=msmtp.git;a=blob_plain;f=scripts/msmtpq/README.msmtpq;hb=HEAD Is there an

Re: Quoting character when replying

2021-02-14 Thread Angel M Alganza
On Sun, Feb 14, 2021 at 07:36:34PM -0800, Kevin J. McCarthy wrote: It looks like you have enabled $text_flowed. That overrides the value of $indent_string. Indeed, I do. The weird thing is that while I'm composing my email, I see the > without the space, but once sent, the space is added.

Re: Background editing

2021-02-14 Thread Angel M Alganza
On Sun, Feb 14, 2021 at 09:39:14PM -0800, Kevin J. McCarthy wrote: Yes, that's right. That is wonderful! I don't know if Devuan is package-compatible with Debian, but I believe Debian has backported 2.0.2 into buster-backports. It is. Actually, Devuan is Debian without SystemD. Some of

Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-14 Thread Angel M Alganza
On Sun, Feb 14, 2021 at 06:39:10PM -0600, boB Stepp wrote: msmtp-queue -r -- runs (flushes) all the contents of the queue Try running 'msmtp-queue -r' at your shell. It should trigger sending. Adding 'msmtp-queue -r' as a cron job should do it automatically. So it sounds like I wasn't

Background editing

2021-02-14 Thread Angel M Alganza
Hello, I said in a previous email I was wondering what other great things might be "out there" waiting for me to be discovered. Well, while looking at the manual to understand the leading greater than sign mystery, I found out about background editing, and I think that'd be great for me to be

Quoting character when replying

2021-02-14 Thread Angel M Alganza
Hello, Speaking about ways to improve the email experience, I've realized there is a little thing that is bugging me for some time already and I haven't been able to find the solution for. For a very long time, I had mutt to prepend quoted text from emails I was replying to with the greater

Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-14 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 09:43:30AM +0300, Oleg A. Mamontov wrote: I think what you suggest -- an manual 'msmtp-queue -r' as needed -- is more than ample for my use case. For that matter, in most instances I don't even mind waiting until I send another email which will achieve the same

Re: Quoting character when replying

2021-02-14 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 03:06:18AM +, ಚಿರಾಗ್ ನಟರಾಜ್ wrote: You can edit/reset the indent_string variable, which should fix it :) Yes, I have already tried that before. In my .muttrc file I have: # set indent_string="> " Since it is commented out, I think it's de default. When I try

Re: Quoting character when replying

2021-02-14 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 03:40:16PM +1100, Cameron Simpson wrote: Aye. I use format=flowed all the time; there's stuff in the wiki about settings to go with it, for example to make composition easy. I see. :-) Oddly enough, your quotations appear with the leading > without the space, while

Macro to apply on current mailbox

2021-02-15 Thread Angel M Alganza
Hello: I am trying to build a macro to apply a function to the current maildir, but I can't find the way to capture the current maildir into a variable. The idea is as follows: I synch my mail with mbsync, which I run from a crontab entry at different time intervals for different mail

Re: Quoting character when replying

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 07:10:08PM +1100, Cameron Simpson wrote: Hmm. Beginning to think this is presentation. What are your mutt flow settings? I've got this: set reflow_text=yes set reflow_wrap=-4 set text_flowed=yes set text_flowed=yes # Added by ama @ 2019/02/03

Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-13 Thread Angel M Alganza
On Sat, Feb 13, 2021 at 08:03:49PM +, Sam Kuper wrote: On Fri, Feb 12, 2021 at 01:30:04PM +0100, Angel M Alganza wrote: I couldn't be happier! A queue script is included with msmtp, so you can have the best of both worlds :) You proved me wrong: I could be happier! And I am, since

Re: My experiences with Mutt to date: Suggestions for overcoming some issues

2021-02-13 Thread Angel M Alganza
On Sun, Feb 14, 2021 at 02:35:38AM +0100, myself wrote: And I am, since I'm sending this through the msmtp queue. Yay! I'm replying to myself to add: send is super-fast now, instant actually, from Mutt! I love it! Cheers, Ángel

Re: searching across folders using mutt

2022-05-29 Thread Angel M Alganza
Hello, On Sun, May 29, 2022 at 11:31:51PM -0500, Greg Marks wrote: Is there a solution for searching across folders for those of us whose e-mail is stored in mbox rather than maildir format? Mairix does: https://github.com/rc0/mairix Cheers, Ángel

Re: Is linewrap dead?

2022-08-29 Thread Angel M Alganza
On Mon, Aug 29, 2022 at 07:10:14AM -0400, John Hawkinson wrote: omitting newlines from internal line breaks in paragraphs has proved to be a much better compromise than including them. It displays much better in a wide array of clients, especially modern ones (webmail clients, mobile clients),

Re: Is linewrap dead?

2022-09-01 Thread Angel M Alganza
On Wed, Aug 31, 2022 at 05:22:48PM -0400, Kurt Hackenberg wrote: Very long lines -- one line per paragraph -- changes the meaning of After top posting that is probably the most annoying thing on email. And from what I can tell reading this thread, there will always be some nasty software and

Re: Copying IMAP folders with mutt

2022-10-16 Thread Angel M Alganza
On Sun, Oct 16, 2022 at 08:59:55AM +0100, Chris Green wrote: I think that's what I was finding (it doesn't really want to be run interactively), thanks. It's not very friendly interactively, but it's a very good and powerful tool... Sorry about all the rather OT noise everyone. ...of

Re: [SPAM] Copying IMAP folders with mutt

2022-10-15 Thread Angel M Alganza
Hi Chris, On Sat, Oct 15, 2022 at 06:29:37PM +0100, Chris Green wrote: I'm now considering using mutt to move some IMAP folders from one server to another, both IMAP servers will be remote. Is this a sensible idea or should I look for a specialised tool? I have ocasionally used Mutt with

Re: Copying IMAP folders with mutt

2022-10-15 Thread Angel M Alganza
On Sat, Oct 15, 2022 at 10:27:29PM +0100, Chris Green wrote: How do I get it into interactive mode? I.e. run imapfilter with the /home/chris/.imapfilter/config.lua configuration and then allow me to run some commands to actually do things. All the examples I can find seem to actually put

Re: Copying IMAP folders with mutt

2022-10-15 Thread Angel M Alganza
On Sat, Oct 15, 2022 at 10:27:29PM +0100, Chris Green wrote: How do I get it into interactive mode? I.e. run imapfilter with the /home/chris/.imapfilter/config.lua configuration and then allow me to run some commands to actually do things. All the examples I can find seem to actually put