Schedule messages to be sent later

2008-10-14 Thread Ajeet
Hi,

Is there some way to send messages at a particular time in the future?  
This could be done by just pipe-ing in the right parameters to the 
linux at command. How do I specify the subject,to,cc etc. in the 
pipe command?

-- 
Regards,
Ajeet


Re: mailbox close while accessing exchange over imap

2007-12-11 Thread Ajeet
On Fri, 07 Dec 2007 13:27:49 -0600, Jason Joines wrote:
 Just wanted to know what some others think before I start pushing on 
 the network and exchange admins.

I don't know if this helps, but how about using offlineimap?

-- 
Regards,
Ajeet


Re: Flagged messages with mairix

2007-10-18 Thread Ajeet
Hi,

I have attached a script (commit_mairix.py) that does this. You would need to 
change the location of your search folder in this file. 

It works only when both search folder and the mail folder are maildirs. If you 
guys find a better solution, let me know ! BTW, it would be nice if there were 
a sync-hook functionality, that would be triggered when a mailbox is synced.

I am using it as follows: 

# General Settings

folder-hook . 'bind index,pager $ sync-mailbox'
folder-hook . 'bind index,pager q quit'
folder-hook . 'macro index,pager F1   enter-commandexec 
change-folder\r=inbox-gmail\r View Gmail Inbox'
folder-hook . 'macro index,pager F5   enter-commandset 
wait_key=noentershell-escapemairix F:fenterenter-commandset 
wait_key=yesenterchange-folder=mairix-searchenter View Flagged 
Messages'

# Settings for the search folder

folder-hook mairix-search 'macro index,pager $ enter-commandset 
wait_key=noentersync-mailboxshell-escapecommit_mairix.py | tee -a 
.commit_mairix.logenterenter-commandset wait_key=yesenter'
folder-hook mairix-search 'macro index q enter-commandset 
wait_key=noentersync-mailboxshell-escapecommit_mairix.py | tee -a 
.commit_mairix.logenterenter-commandset wait_key=yesenterquit'
folder-hook mairix-search 'macro index,pager F1   $enter-commandexec 
change-folder\r=inbox-gmail\r View Gmail Inbox'
folder-hook mairix-search 'macro index,pager F5   $enter-commandset 
wait_key=noentershell-escapemairix F:fenterenter-commandset 
wait_key=yesenterchange-folder=mairix-searchenter View Flagged 
Messages'



On Wed, 17 Oct 2007 17:38:33 -0700, Ajeet wrote:
 I just finished setting up mairix, and it seems pretty good. In particular, I 
 like the feature that I can view flagged messages from all the mailboxes in 
 one list. One feature that I think would be nice to have, is the ability to 
 make the changes to the flag stick to the original mailbox. For example, if I 
 unflag/ flag a message in the search result (which is a temp mailbox), the 
 corresponding changes should be visible in the original mailbox.
 
 Does anyone know if there is some existing script that does this?
 
 I am using maildirs everywhere, so just changing the filename of the 
 corresponding file should do it for me. In the case of mboxes though, you 
 would need to manipulate the X-Status header. So I guess writing a script 
 that does this should be fairly easy, but I dont want to reinvent the wheel.

-- 
Regards,
Ajeet
#! /usr/bin/python

import os,sys,re
from stat import *


def matchFlag(filename, flag):
p = re.compile('^.*:2,.*'+flag+'.*')
m = p.match(filename)
if m:
return True
else:
return False



print Syncing message flags with search results

base = /home/ajeet/Mail/mairix-search/
dirs = [base+cur/, base+new/]

for dir in dirs:
files = os.listdir(dir)
for fil in files:
linkpath = dir+fil;
if os.path.islink(dir+fil):
realpath = os.path.realpath(dir+fil);
rm = os.stat(realpath)[ST_CTIME];
lm = os.lstat(dir+fil)[ST_CTIME];
if (rm  lm):
if (matchFlag(realpath, 'F') and not 
matchFlag(linkpath, 'F')):
i = realpath.rfind('F')
renamepath = realpath[:i]+realpath[i+1:]
print ' Changing ' + realpath + ' to ' 
+ renamepath
os.rename(realpath, renamepath)
os.unlink(linkpath)
os.symlink(renamepath, linkpath)
elif (not matchFlag(realpath, 'F') and 
matchFlag(linkpath, 'F')):
renamepath = realpath+'F'
print ' Changing ' + realpath + ' to ' 
+ renamepath
os.rename(realpath, renamepath)
os.unlink(linkpath)
os.symlink(renamepath, linkpath)

os.system('mairix -F');









Re: Using Mairix

2007-10-18 Thread Ajeet
On Thu, 18 Oct 2007 16:55:37 +0200, Eyolf Ă˜strem wrote:
 On that note: can someone tell me if there is a way to combine the two
 into one? I would like to go automatically to the mairix folder once
 the search is over, instead of having to go there manually. Is that
 possible?

Yes it is!

Use the script mairix_query.sh attached as follows:

macro index,pager ,m 
shell-escape/home/ajeet/bin/mairix_query.shenterchange-folder=mairix-searchenter
 mairix query

I found the query somewhere on the web and made some small changes to it. 

HTH


-- 
Regards,
Ajeet


mairix_query.sh
Description: Bourne shell script


Flagged messages with mairix

2007-10-17 Thread Ajeet
Hi,

I just finished setting up mairix, and it seems pretty good. In particular, I 
like the feature that I can view flagged messages from all the mailboxes in one 
list. One feature that I think would be nice to have, is the ability to make 
the changes to the flag stick to the original mailbox. For example, if I 
unflag/ flag a message in the search result (which is a temp mailbox), the 
corresponding changes should be visible in the original mailbox.

Does anyone know if there is some existing script that does this?

I am using maildirs everywhere, so just changing the filename of the 
corresponding file should do it for me. In the case of mboxes though, you would 
need to manipulate the X-Status header. So I guess writing a script that does 
this should be fairly easy, but I dont want to reinvent the wheel.

-- 
Regards,
Ajeet


How to resend message multiple times effectively

2007-09-24 Thread Ajeet
Hi all,

I need to send the same message to multiple recipients. So what I am currently 
doing is invoking resend-message repeatedly and changing the to address. Is 
it possible to do this in one shot? As in fire multiple emails, one for each 
address containing the same body.

Thanks 
-- 
Regards,
Ajeet


pgpItvKLlKwt1.pgp
Description: PGP signature


Re: How to resend message multiple times effectively

2007-09-24 Thread Ajeet

On Mon, 24 Sep 2007 23:00:51 -0500, Kyle Wheeler wrote:
 What's wrong with including them all in the To, CC, or Bcc headers?
 

Well the concern may seem vague to you and you may not agree. I think that in 
certain situations, it pays to make your email seem personal. If I receive an 
email in which I am not any of the addresses (when I am Bcc'ed) or when I am 
one of a large number of recipients, it feels to me like a public broadcast. I 
guess its more of etiquette issue.
-- 
Regards,
Ajeet


pgpyNCYutf2Ac.pgp
Description: PGP signature


mutt port for Symbian?

2007-08-21 Thread Ajeet
Is there a port for any mobile platform?

-- 
Regards,
Ajeet


pgpYrBberhb3l.pgp
Description: PGP signature


Re: How to organize mail in folders?

2007-08-10 Thread Ajeet
On Sat, Jul 21, 2007 at 07:04:07PM +0200, John wrote:
 There is also have an IMAP server running on the same Maildir folders.
 Then I have Portable Thunderbird on the various PCs where I work (on a
 memory stick or in a TrueCrypt container) - this is mainly on Windows
 (or Mac OSX). These connect with OpenVPN to my own server and IMAP over
 that connection.

Why not ssh to your box directly and use mutt ? :-)
-- 
Regards,
Ajeet


pgp3qCc3RinG8.pgp
Description: PGP signature


Re: Multiple email / folder problem

2007-06-26 Thread Ajeet
 
 This is very likely a problem with the sidebar patch, which is not
 well-written. Try reproducing the problem without the patch applied.

You are right. It is a sidebar issue. :-(
Tested without the patch and there is no core dump for the same muttrc.

Isn't something like the sidebar a useful feature though? Shouldn't it be 
included with mutt? I am guessing its one of the more popular patches. 

-- 
Regards,
Ajeet


pgpuiatkJIM03.pgp
Description: PGP signature


Multiple email / folder problem

2007-06-25 Thread Ajeet
Hi All,

I have been using mutt for a while now and I really like it. I have just joined 
this mailing list, so I do not know if this is the right place to post this, as 
my mutt is patched with the sidebar patch.

For my own weird reasons, I want the sidebar to display different sets of email 
folders (for multiple accounts say). For this, I have a folder hook like so

folder-hook . unmailboxes *
folder-hook .  mailboxes =M1 = M2

folder-hook M3 unmailboxes *
folder-hook M3 mailboxes =M3

So, the two mailboxes M1 and M2 form one group(say all my email from the gmail 
account), while M3 is kept separately (say from hotmail). 

However, the above causes mutt to seg-fault. Any idea why this is so? Is this a 
sidebar related thing or a mutt issue?


Thanks for your help.

-- 
Regards,
Ajeet


pgp727gXD8Wrt.pgp
Description: PGP signature