How to handle a lot of emails via IMAP

2010-01-25 Thread John Villalovos
So I have been subscribed to LKML (Linux Kernel Mailing List) for
several years on my gmail account.  I decided to try to read that
email using IMAP with Mutt.

I only have about 460,000+ emails ;) and I did turn on header caching.
 I never can make it through the entire "Fetching message headers..."
phase before the connection dies.  This takes about an hour or two for
it to die.

And after it dies I see a 153 megabyte cache file but when I restart
the connection to the IMAP server it starts all over again downloading
headers and doesn't seem to use the data that it already downloaded.
So I never can finish getting the message headers and therefore can
never read my email :(  The cache file seems to keep growing every
run.

Any ideas?  Is there a way to say only download N number of headers at a time?

I am running Mutt 1.5.20 in Fedora 12 x86_64. (
mutt-1.5.20-1.20090827hg605559.fc12.x86_64 )

Thanks,
John


Queued outgoing mail

2010-01-25 Thread Tim Gray
Is there a method for queuing outgoing mail?  Eudora used to have a feature 
where you could queue sent mail for deliver at either a specified time, or 
after a specified delay (ex. 10 mins from now).  Is there anyway to do this 
with mutt?  I'm currently using postfix as my smtp delivery agent if that 
makes a difference.


On a related note, if I send an email while I'm offline, it goes into the 
postfix queue fine.  How/when does postfix flush that email out?


Re: Queued outgoing mail

2010-01-25 Thread Noah Sheppard
On Mon, Jan 25, 2010 at 11:53:50AM -0500, Tim Gray wrote:
> On a related note, if I send an email while I'm offline, it goes
> into the postfix queue fine.  How/when does postfix flush that email
> out?

AFAIK, postfix simply retries delivering mail periodically.  I don't
think it does anything more advanced like watching for the network to be
up or down and automatically sending mail when the network comes up.
You can force postfix to try to deliver queued messages with the command
'postqueue -f'.

-- 
Noah Sheppard
Assistant Computer Resource Manager
Taylor University CSE Department
nshep...@cse.taylor.edu



Save messages on exit.

2010-01-25 Thread Paul Greenberg
Hi,

What is the best way to accomplish the following. 
I have may in spool, when I exit mutt I have Yes/No to move messages to the 
mbox.
How can I move messages from mutt.org to some other file, let's say maillists?

Best,
-- 
Paul Greenberg
PGP key: 0xEF9DE0D8

The information contained in this e-mail, and any attachment, is confidential 
and is intended solely for the use of the intended recipient. Access, copying 
or re-use of the e-mail or any attachment, or any information contained 
therein, by any other person is not authorized. If you are not the intended 
recipient please return the e-mail to the sender and delete it from your 
computer. Although we attempt to sweep e-mail and attachments for viruses, we 
do not guarantee that either are virus-free and accept no liability for any 
damage sustained as a result of viruses.



pgpn7bUFFavfY.pgp
Description: PGP signature


Re: Save messages on exit.

2010-01-25 Thread Rado S
=- Paul Greenberg wrote on Mon 25.Jan'10 at 14:47:38 -0500 -=

> I have may in spool, when I exit mutt I have Yes/No to move messages to the 
> mbox.
> How can I move messages from mutt.org to some other file, let's say maillists?

Macro to tag-by-pattern and tag-apply "save" for each of your lists,
which you bind to your "change-folder" or "quit/exit" button(s).

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.


Re: Simple Mutt with Eee PC 701.

2010-01-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

>set sent = "+/Sent"
>set trash = "+/Trash"

>Error in ~/foo/.muttrc, line 9: sent: unknown variable

That's because the variable you want is called "record", not "sent". 
(I know, that's not necessarily obvious...)

>The second I encounter an error with when I attempt to quit Mutt:
>
>Purge 12 deleted messages? ([yes]/no): y
>Create .Trash? ([yes]/no): y
>Can't open trash folder

Hrm. Did you define the $folder variable BEFORE defining those 
variables, or after? You need to define it FIRST. The + symbol there 
is actually a reference to the $folder variable.

For example, with the following settings:

 set folder=/tmp
 set record="+/Sent"
 set trash="+/Trash"

... your trash will be stored in /tmp/Trash. Buy the same logic, with 
these settings:

 set folder=$HOME
 set record="+/Sent"
 set trash="+/Trash"

... your trash will be stored in $HOME/Trash. However, with these 
settings:

 set record="+/Sent"
 set trash="+/Trash"
 set folder=/tmp

... your trash will be stored in /Trash. This is because at the time 
that mutt read the "set trash" line, the $folder variable didn't 
contain anything. Make sense?

~Kyle
- -- 
That it is better 100 guilty Persons should escape than that one 
innocent Person should suffer, is a Maxim that has been long and 
generally approved.
   -- Benjamin Franklin
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJLXgywAAoJECuveozR/AWe0tcQAJXus5/0rnwd3EXR9Bpb0hbD
tUG87/gnmbJYakoj4OfKBy5BKb3qj+lF5K2uT5B5mrOaJF9Fdocssba8Lq0PiPyu
GcavtZ2Ke/WW3ExV1MqTnl6aXtAsjafQ2YdBTXR0gY3JOSk8w4DKaVqYycfOjwYq
LZv5ri7bfq35j4DggDW86qBf07Jv/JTnxC96A4cIPblEiiDprgpEs4zzTduaa1xt
vBomyGn5z7Y4cGtbDcXqjiz/dLzIfnTX9xKTAiuY544gYyrggKx0kujGzaNK7b/9
V6jkWubhkGxjMYbOOAiksdaD5d6ELxNRTCZ5InvCHqJ7TGQYBvpS72TRYvq7v2d5
u4AbyNWnRnM6l/U6PrQRccMUJAgzZdzchEMv8FNN7w92CrGc+soNoGYUspPvDnLF
kJrsrz6cXc2OZEjNhtZ5uB+I0y0vlVsfPs0F/otm6jWZP8F3+GhC88tazCrKx+gY
ypfkr6LY62Jw9uWvuZQZwOGl5zO5z0qwiyiyQvoPL+Z3A1WgKszxDRIKWMNiRkdN
AwJkLb8E0+bk1muulv26cjQn/rRY6r+BXjf4Vhg8ssd8eHeZgzbU5HF2KEE1GlQ3
fIcItlop3FTqRrpffMf6det4gVkv8jWIK1vqDSsB7HAQ+whQu47BKO6MDPh+j/QZ
UOjVftEtkzGedrbnzRw8
=640B
-END PGP SIGNATURE-


Re: Save messages on exit.

2010-01-25 Thread Paul Greenberg
Do you have existing macro to look at?
Thank you,
-- 
Paul Greenberg
718-954-4487
PGP key: 0xEF9DE0D8

The information contained in this e-mail, and any attachment, is confidential 
and is intended solely for the use of the intended recipient. Access, copying 
or re-use of the e-mail or any attachment, or any information contained 
therein, by any other person is not authorized. If you are not the intended 
recipient please return the e-mail to the sender and delete it from your 
computer. Although we attempt to sweep e-mail and attachments for viruses, we 
do not guarantee that either are virus-free and accept no liability for any 
damage sustained as a result of viruses.

On Mon, Jan 25, 2010 at 10:25:46PM +0100, Rado S wrote:
> =- Paul Greenberg wrote on Mon 25.Jan'10 at 14:47:38 -0500 -=
> 
> > I have may in spool, when I exit mutt I have Yes/No to move messages to the 
> > mbox.
> > How can I move messages from mutt.org to some other file, let's say 
> > maillists?
> 
> Macro to tag-by-pattern and tag-apply "save" for each of your lists,
> which you bind to your "change-folder" or "quit/exit" button(s).
> 
> -- 
> © Rado S. -- You must provide YOUR effort for your goal!
> EVERY effort counts: at least to show your attitude.
> You're responsible for ALL you do: you get what you give.


pgpAhZYUkIhRO.pgp
Description: PGP signature


Re: Queued outgoing mail

2010-01-25 Thread Kyle Wheeler
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On Monday, January 25 at 11:53 AM, quoth Tim Gray:
> Is there a method for queuing outgoing mail?  Eudora used to have a 
> feature where you could queue sent mail for deliver at either a 
> specified time, or after a specified delay (ex. 10 mins from now).  Is 
> there anyway to do this with mutt?  I'm currently using postfix as my 
> smtp delivery agent if that makes a difference.

Mutt does not have its own queue of mail; it uses other programs to 
handle mail sending. For example, on your system, it uses postfix. 
Thus, whenever you send mail with mutt, mutt hands that message to 
postfix. Postfix places that message in its queue, and then a 
different component of postfix pulls the message from the queue and 
delivers it.

If you only want email delivered at some point in the future, you're 
going to have to investigate postfix's delay features. Mutt does not 
queue email by itself.

> On a related note, if I send an email while I'm offline, it goes into 
> the postfix queue fine.

Actually, it goes into the postfix queue even when you're online; it 
just doesn't stay there for very long.

> How/when does postfix flush that email out?

It depends on your setup. It's possible that postfix simply retries 
along some sort of retry schedule (the default, IIRC, is an 
exponential backoff schedule). If postfix has been set up in a 
particularly intelligent fashion, it will hold queued messages 
indefinitely until some other system (such as hald, on linux, or 
launchd on OSX) notifies it that it now has a network connection and 
that the queue may be flushed.

~Kyle
- -- 
Religion, morality, and knowledge, being necessary to good government 
and the happiness of mankind, school and the means of education shall 
forever be encouraged.
 -- The Ohio Ordinance of 1787, Article III
-BEGIN PGP SIGNATURE-
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJLXg4lAAoJECuveozR/AWeiIMQAKBKoo6+nwBukRUd6Zm1UtJO
TtiqGugSk+pKOcQGn8fwRtyw8pwRZWG7lpYEhzNjp4G5Mg1/tN9lf+ELNDWyQxW6
ENnXw16lYjOGHe+U6Rss7nqGem5chz3Mn7LFCws/BkJXzASS4osMNdM1w+O3QTZH
cdEtVECPyN531s32Fq84lZlmEKwm+y5iKZYNgyPnSLD2/j4G6KYeOco87Q48LUAU
PZ/UDsWvbpvLrVCgpjGDCI8ztMTPJ400+ytLrLzb3IUhwcDBd9oJ4QgI9jHhfvfi
gspaptxZP6WLzeB1kWY5QBPCEyIvQ+lAjm7FpTaDeBVWeqwhFrRX5LLL2VFRVrf4
iTw/64ohuSs0Hqwn1uCu6NGfjoFBy9CD3shSQKFHhXXdLnhb2tGiqFGRvqS2KA2d
cIv4OwL0A19kpvLiUHdtBWaaY3dgCveAzNDhs+JnGpK/7rR6AvdFXHQt8CjXKS4h
lSDlPwQc/pnpmWzXJDtipP4uJqm9R8jUSKqcJHb4a2Yj8cOCgbTUJMdfpOakgfvs
70Qvvzymxv5Jesu/uMnfi0KJ7PfjjcfmivS2KeCJJE71dcvbR7I5fW2eT9GL2D5K
j81RyjjIehulWZciepdTzbV9HZ+xv5dAOjv3MCwz/d/4vfh4M9bCWGpi2C2hyzZ7
xgcrPtkUc2UVW9vnk03Z
=y0Tt
-END PGP SIGNATURE-


Re: Queued outgoing mail

2010-01-25 Thread Tim Gray

On Mon 25, Jan'10 at  3:33 PM -0600, Kyle Wheeler wrote:
Actually, it goes into the postfix queue even when you're online; it just 
doesn't stay there for very long.


I know.  I guess I was asking if mutt could send the message to posfix and 
say 'don't try to deliver until 10 mins from now'.


Re: Queued outgoing mail

2010-01-25 Thread John Masters

On 25 Jan 2010, at 22:30, Tim Gray wrote:

> On Mon 25, Jan'10 at  3:33 PM -0600, Kyle Wheeler wrote:
>> Actually, it goes into the postfix queue even when you're online; it just 
>> doesn't stay there for very long.
> 
> I know.  I guess I was asking if mutt could send the message to posfix and 
> say 'don't try to deliver until 10 mins from now'.

Postfix has a 'hold' queue. 

# postsuper -h 'Queue ID'

will hold the message until you invoke

# postsuper -H 'Queue ID'

at which point it will move the message back to the normal queue.

-- 
Regards, John
johnmast...@me.com





Re: Queued outgoing mail

2010-01-25 Thread E. Prom
Message de Tim Gray, lundi 25 janvier à 17h53 :
> Is there a method for queuing outgoing mail?  Eudora used to have a
> feature where you could queue sent mail for deliver at either a
> specified time, or after a specified delay (ex. 10 mins from now).
> Is there anyway to do this with mutt?  I'm currently using postfix
> as my smtp delivery agent if that makes a difference.

I don't think that's possible inside mutt without writing some very
complicated macros. We've talked about that a few days ago, one solution
is to do it outside of mutt :


From: Jostein Berntsen 
To: mutt-users@mutt.org
Message-id: <20100122145803.gb4...@josteinb>

On 21.01.10,06:14, E. Prom wrote:
> Hi again,
>
> How would you make mutt send a message at a certain hour? This can be
> useful : make your boss believe you were working late whereas you left
> your office just after him, make sure someone receives your e-mail
> when you know he'll be receptive and not when you write it because he
> is very busy at this time, etc.
>
> I tried this :
>
> sleep 2m; echo ""|mutt -s subject -i message_file -x per...@domain
>
> It works fine, seems to apply all the conf, except one thing : it does
> not sign the e-mail. Even adding -e "set crypt_autosign" to the
> command line does not help. There's indeed the passphrase problem, but
> gpg-agent had not timed out when I was trying, and did not ask for it
> using mutt interactively later.
>
> Any idea?
>

You can use the "at" command for this:

at 16:00
echo ""|mutt -s subject -i message_file -x per...@domain
Ctrl-d


- Jostein


Re: Queued outgoing mail

2010-01-25 Thread Tim Gray

On Tue 26, Jan'10 at  3:01 AM +0100, E. Prom wrote:

I don't think that's possible inside mutt without writing some very
complicated macros. We've talked about that a few days ago, one solution
is to do it outside of mutt :


Man, I totally read that thread too.  My memory is failing...