Re: automating move of folders, imap to imap
On Tue, Apr 02, 2002 at 11:47:51AM -0600, David Champion wrote: Err... why are you using Mutt? Why not just set up an NFS share or FTP access, and just *copy* the files from one server to the other? You answered this yourself Reason is that the destination server doesn't store IMAP folders in mbox format, plus it doesn't mount NFS (for other reasons). Or is there a specific reason you need to use an MUA to do it? I can't think of one good reason, unless of course you don't have anything but IMAP access to each server The CGI/Perl script is meant to be generic and run by the user, and IMAP is the only way to access the server. behalf of my users). With access to one hierarchy of mboxes, I use a command like this to transfer them all to an IMAP server: cd .../path/to/folders find . -type f -print | while read folder; do directory=`dirname $folder` folder=`basename $folder` mutt -f $directory/$folder -e push 'tag-pattern~Aentertag-prefixcopy-messagekill-lineimap://SERVER/$directory/$folderenterenterPASSWORDenterexit' echo echo $directory/$folder is transferred. done Thanks. Though I was looking for a better way, knowing that someone else has done it before is good enough. :) It's trivial to extend that to handle multiple users, if you know their passwords. If you don't know their passwords, then it's probably possible to arrange a back-channel transfer not involving IMAP directly. The passwords on either side is the same, so shouldn't be a problem. Thanks everyone. Robert
Re: automating move of folders, imap to imap
On Tue, Apr 02, 2002 at 12:59:13PM -0500, Shawn McMahon wrote: begin quoting what David Champion said on Tue, Apr 02, 2002 at 11:47:51AM -0600: For doing this between two servers *neither* of which you have access to, I don't see a way to automate it, since there's no direct means of getting the folder tree structure in mutt and passing it to a script. But if you can use another IMAP tool (or cobble your own) to get that list, you can use a similar approach. http://search.cpan.org/doc/DJKERNEN/Mail-IMAPClient-2.1.3/IMAPClient.pm I've tried IMAPClient-2.1.4, too. But I don't see a straightforward way of piping an IMAP folder from one server to the other, short of reading every message to a file then appending that file to the destination server, while modifying the headers necessary to complete the operation. I've also e-mailed the author of the module about clarification of the doc, but haven't heard back from him. Robert
Re: Help - basic send-hook not working.
On Tue, Feb 01, 2000 at 01:08:15PM -0600, Larry P. Schrof wrote: What am I missing? send-hook '-t [EMAIL PROTECTED]' 'my_hdr X-Testing: Yes' ^ i think this should be ~ instead. The my_hdr never gets run when I send mail to [EMAIL PROTECTED] . Robert
[little OT] message-id
Hi, I have two general mail questions: 1. can it be guaranteed that _EVERY_ email has a message-id? 2. if not, can you generate a message-id? Background: I'd like to write a perl script whose input is a mail folder, and the script looks at each individual email's message-id and do something with it (if it sees a duplicate, then ignore the duplicate, etc). If it doesn't find one, what should be done? Thanks! Robert
suggestion on mutt's manual
Hi, I'd like to suggest that from now on, whenever a new command/variable is added to mutt, the version number be reflected in mutt's manual accordingly, like this: 6.3 Configuration variables subscribe (version 1.1 and up) blah blah blah ... While mutt's manual (esp. the one on www.mutt.org) should always be concurrent with the latest version, people who use an older version but new to mutt may be less confused this way. Just a thought... Robert
Re: problem with save-hook
On Fri, Dec 10, 1999 at 12:49:52PM +1030, Andrew O'Callaghan wrote: Hi. I have tried to create a save-hook for a mailing list that I am on, but it doesn't seem to work. I may be confusing the way save-hook works though, so please correct me if I am way off. I created a hook in my .muttrc file: save-hook linuxsa +linux Try this instead: save-hook '~C linuxsa*' +linux Robert
Re: problem with save-hook
On Fri, Dec 10, 1999 at 02:07:18PM -0600, David DeSimone wrote: Robert Chien [EMAIL PROTECTED] wrote: Try this instead: save-hook '~C linuxsa*' +linux Is the '*' there so that you can match 'linuxs', 'linuxsa', 'linuxsaa'? That's what it will do for you. Hmm... you're right. Manual says: ~C EXPR Where EXPR, USER, ID, and SUBJECT are regular expressions. I don't remember where I got the '*' from, but it has worked for me all this time. I guess it's not necessary then. Robert
Re: Multiple Personalities
Now when I reply to a message sent to [EMAIL PROTECTED], the custom headers (From, Reply-To and Organization) and other settings for [EMAIL PROTECTED] should be used. Hi Raymond, Check out section 4.4 on "Using Hooks" http://www.mutt.org/doc/manual/manual-4.html#ss4.4 Depending on your situation, hooks can be tricky. A general rule-of-thumb is to remember that hooks are "sticky". In most cases, you want to set up a default hook. Read the manual, it should help. Robert
Re: mutt with transparent background color
On Wed, Dec 01, 1999 at 11:47:52AM +0100, Frank Altpeter wrote: I use mutt-1.0i on both solaris and linux system. On both systems i am using the same .muttrc with some color settings. When i use "color normal white" in it, the mutt on solaris tells me: Error in /home/fa/.muttrc, line 117: color: too few arguments Hi Frank, mutt's manual says the syntax for color statment is: color object foreground background [regexp] So you're missing the background arg. Perhaps mutt's parser see that it's missing and assumes the value "default", which is valid on Eterm but not Solaris. Just my guess. Robert
Re: export message
On Tue, Oct 05, 1999 at 08:42:01PM +0200, Stefan Troeger wrote: Hi, On Mon, Oct 04, 1999 at 17:30 -0600, Allan K. Neal wrote: I was wondering if there is anyway to export a message,thread, and or mailbox without the headers. I would like to export an entire mailbox and a couple of threads but I don't want any headers, only the body of the text. Is there any way to do this, or a program/script that will edit out the headers for me? perl -ne 'if (/^$/ .. s/^From .*$//) { print }' some_mailbox out will strip the headers of an mbox format mailbox. Or use formail (man formail for more details), | formail -I ""#extracts body of current mail robert
Re: whats the -* ??
On Sat, Oct 02, 1999 at 11:29:39PM -0400, Fairlight wrote: On Sat, Oct 02, 1999 at 11:58:58PM +0200, Jan Houtsma thus spoke: In the index with threads what does the star (*) mean in the arrow? for example: message1 bla message2 |- message3 |* message4 | |- message5 |* It means that you have strict_threads UNset, and although the messages with stars do not have Message-ID References that indicate they're part of the Which RFC specifies the format of In-reply-to:? Reason I ask is because dtmail (as well as Eudora Pro, hotmail) doesn't seem to do it and thus breaks my threads in mutt. I would like to submit a bug report and need some references. Thanks, Robert
procmail an IMAP inbox
Hi, How do I run an IMAP inbox through procmail? What I want to do is: 1. mark delete all duplicate messages 2. filter my mail into folders (less important) According to FAQ on www.procmail.org, I could run an existing mailbox file through a procmail recipe with: formail -s procmail experiments.rc test.mbox So I tried saving a message TWICE from IMAP inbox to $HOME/mail/folder, and run this in mutt: | formail -s procmail .procmailrc But it didn't change anything. Here's my .procmailrc --- begin PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=$HOME/mail LOGFILE=$MAILDIR/.procmail/maillog # Keep backups of the last 32 messages in mail/backup directory :0 c .procmail/backup :0 ic | cd .procmail/backup rm -f dummy `ls -t msg.* | sed -e 1,32d` # Filter out duplicate messages from mailing lists. :0 Wh: .procmail/msgid.lock | formail -D 8192 .procmail/msgid.cache --- end Thanks, Robert
Re: possible imap bug?
I haven't heard from anyone yet, so I'm resending this: - On Sat, Aug 07, 1999 at 12:00:12AM +0200, Gero Treuner wrote: Hi! On Fri, Aug 06, 1999 at 02:50:11PM -0700, Robert Chien wrote: If I save it to a file, then attach that file, it sort of works but takes a lot of time, esp. if I'm attaching 3+ emails. Would be nice if I can presss a, and choose files or emails to attach. This is my wish list item. Almost your wish, just add the shift key to press "A". It's in the online help as well as in the manual. You guys are awesome! I did looked at help, but searched for the wrong keyword "forward" and of course didn't see the "A" option. However, now I've found an interesting "bug": if I type "A", it asks for "Open mailbox to attach message from ('?' for list):". But it won't open my IMAP inbox. If I enter {imapserver}inbox, it returns an error: {imapserver}inbox: No such file or directory (errno = 2) Normal folders work just fine. Can other IMAP users verify this please? -- Robert Mutt 0.96.3i (1999-06-03) Copyright (C) 1996-9 Michael R. Elkins and others. Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'. Mutt is free software, and you are welcome to redistribute it under certain conditions; type `mutt -vv' for details. System: SunOS 5.8 Compile options: -DOMAIN -HOMESPOOL -USE_SETGID +USE_DOTLOCK +USE_FCNTL -USE_FLOCK +USE_IMAP -USE_POP +HAVE_REGCOMP -USE_GNU_REGEX +HAVE_COLOR -BUFFY_SIZE -EXACT_ADDRESS +ENABLE_NLS SENDMAIL="/usr/lib/sendmail" MAILPATH="/var/mail" SHAREDIR="/usr/local/share/mutt" SYSCONFDIR="/usr/local/etc" -ISPELL To contact the developers, please mail to [EMAIL PROTECTED].
forward email as attachment?
Hi, Sometimes I need to forward one or more emails to another worker as attachment(s). How do I do that in mutt? If I save it to a file, then attach that file, it sort of works but takes a lot of time, esp. if I'm attaching 3+ emails. Would be nice if I can presss a, and choose files or emails to attach. This is my wish list item. Any suggestions? -- Robert Chien
a hook question
hello mutt users, i need some help with using hook in the following situation: basically, i want to set signature to .signature.work when sending email to people at work, and set signature to just .signature for the rest. i've been playing with different hooks without any success, because it's more difficult than i first thought. when i send email to co-workers, i can address it as "foo" or "foo@west" (notice the unqualified domain name) or "[EMAIL PROTECTED]" or "[EMAIL PROTECTED]". because of this wide variety, i haven't been able to successfully configure my hooks. maybe i overlooked something and the answer is really simple, if so, please point it out to me. robert
Re: filter question
On Thu, Jun 03, 1999 at 02:36:51PM -0500, Jeff Rankin wrote: Is there anyway to have mutt provide some sort of filtering of mail messages in my inbox to a seperate folder based on user-defined criteria? I am using mutt via IMAP and am evaluating it's ability to let users filter or sort mail into folders when they open their IMAP mailbox. Thanks for the help! You can first use T to tag messages with a certain criteria, then use ;s to save all tagged messages to a folder. Robert
Re: moving old mail -- folder-hook problems
On Sat, Apr 24, 1999 at 07:00:51PM +0200, Jan Peter Hecking wrote: Hi, I'm trying to get mutt to automatically save old mail (that is mail that's older than one month) to another folder. What I've come up with so far is the following folder-hook: folder-hook \! 'push "T~d1m\ns=old\n"' It does pretty much what I want it to do execpt for one problem. Whenever there's no old mail in my incoming mailfolder when I open it, mutt saves the last mail to the =old mailfolder. I realize that's because there are no messages to tag and therefore s operates on the current message which happens to be the last one. Is there a way to tell mutt to only do the save operation when there are messages tagged? Or is there maybe a completly different way to achieve what I want to do? I could be wrong, but I believe ";s" instead of just "s" will save the tagged messages. Try it and let me know! :) Robert
Re: limit question
On Sun, Apr 18, 1999 at 04:28:03PM +0200, Stefan `Sec` Zehl wrote: On Fri, Apr 16, 1999 at 06:38:17PM -0700, Robert Chien wrote: This is good, but wouldn't it be more intuitive to show me all messages when the limit is blank? developers, would you consider this? We had this discussion already. I then wrote a patch to do this (for .89 - you could get it from http://sec.42.org/mutt/old/patch-0.89.sec.empty_limit.1 I don't know if it still works) Further discussion showed that more people prefer the current behavior, and you always can add a macro to do "l all\n" to your favourite keybinding. Big thanks to all of you that replied, I've got more solutions than I can remember now.. :) I tried to search the archive for the old thread on this without much success yet. But I'd like to make three suggestions that will make everyone's life easier: 1. I'm sure people will ask this question in the future again, so how about putting this in the doc? I think Section 4. Advanced Usage is suitable. 2. How about a little hint after you press 'l'? like this: Limit to messages matching ("." to unlimit): for more visibility? 3. Binding ^L to unlimit in the source code? so that when you press '?' for help and search for 'limit', it'll come up? I like mutt alot and I hope more people will use mutt. Robert -- "It was so crazy, it just might work." -jwz
Re: IMAP folders
On Sat, Apr 17, 1999 at 09:43:50PM -0400, Dan McDonald wrote: spoolfile to {server}INBOX. However, I cant get any of the other folders to work that are located at {server}mail/folder. If I set the spoolfile to {server}mail/folder it works ok, but i cant set multiple spoolfiles. I tried "set folder" and "set mailboxes" in every combination i can think of, but I still cant get it too work. What am i missing? Can one of the other ppl on this list that use IMAP folders send me the relavant IMAP sections of their .muttrc? Using version 95.4i and 96.1. Browsing works with 96.1, but id rather have a stable 95.4 with a few keyboard bindings to my folders. As far as I know, mutt's imap support is greatly improved in 0.96.1, something you won't find in 0.95.4i unfortunately. And it has been very stable for me since day 1. Robert -- "It was so crazy, it just might work." -jwz
Re: resizing bug
Igor, When I resize my terminal window, mutt doesn't really change size at all, but it doesn't crash after I compose mail either. I'm using: Mutt 0.96.1i Solaris 7 and solaris curses Robert On Fri, Mar 19, 1999 at 10:22:11AM -0500, Igor Schein wrote: Hi, I found out that if you start mutt 0.95.4 in a smaller window, and then make the window wider, mutt crashes next time you send an email out. I'm on Solaris 2.x, linking against Solaris curses library. Thanks Igor