Re: change profile on the fly

2012-08-18 Thread Marcelo Laia
2012/8/15 Marcelo Laia :
> Hi,
>
> How I would change the current profile on the fly?
>

I solved the problem!

I use folder-hook

~/.mutt/folder-hooks
folder-hook .   source ~/.mutt/defaults
folder-hook GMail/* source ~/.mutt/gmail.muttrc
folder-hook Yahoo/* source ~/.mutt/yahoo.muttrc
folder-hook UFVJM/* source ~/.mutt/ufvjm.muttrc

~/.mutt/gmail.muttrc
color status red default

set from  = "myaddr...@gmail.com"
set sendmail  = "/home/me/bin/scripts/mymsmpt.gmail"
set mbox  = "+GMail/Inbox"
unset record
set postponed = "+GMail/Rascunhos"

# Reset any headers that may have been set in other folder-hooks
unmy_hdr From:
unmy_hdr Reply-To:
unmy_hdr Fcc:
unmy_hdr Return-Receipt-To:
unmy_hdr Organization:
unmy_hdr X-URL:

# Now set the headers.
my_hdr From: My Name 
my_hdr Reply-To: My Name 
my_hdr Organization: (My ' Org)
my_hdr X-URL: http://www.nononono.com/

macro index E "+GMail/Inbox~B " "search everything"
macro index,pager D "+GMail/Lixeira""move
message to the trash"

~/.mutt/muttrc
(...)
source ~/.mutt/folder-hooks
(...)
# Send hooks to make replies get the appropriate From field
unhook send-hook
#send-hook . "source ~/.mutt/profile.gmail\n"
send-hook 
^(offlineimap-proj...@lists.alioth.debian.org|debian-u...@lists.debian.org)
'set mime_forward signature="~/.mutt/sig.list"'
send-hook ^('(.*)@ufvjm\.edu\.br') "source ~/.mutt/profile.ufvjm\n"
(...)


I see that save-hook and folder-hook not work together. If I set a
default save-hook, it override folder-hook.

Any suggestion is very welcome!

--
  O__   --- Marcelo


Re: mutt on an IMAP-Server (dovecot): folder names and structure

2012-08-18 Thread Andre Klärner
Hi Martin,

On Sat, Aug 18, 2012 at 01:16:34PM +0200, martin f krafft wrote:
> also sprach Tim Gray  [2012.08.17.1541 +0200]:
> > I can confirm that running dovecot with a line in the conf file like
> > the one above does work.  I use the following with dovecot when I
> > want/need to access my mutt maildir store with clients that can't
> > read directly from the file system.
> > 
> > mail_location = maildir:~/mail:INBOX=~/mail/Inbox:LAYOUT=fs
> > 
> > To be explicitly clear, my maildir structure has IMAP folders as
> > directories on the file system and not encoded in the mailbox name
> > with '.' or some other character:
> > 
> > mail/Inbox
> > mail/lists/mutt
> > mail/lists/offlineimap
> > etc.
> 
> Any idea how to migrate existing users, or how to enable this only
> for a single user?

As I some day also started with default maildir, in non-fs-layout, I also
had to do the migration for my home server. But that were only 2 mailboxes
with ca 200 folders in sum. Therefore I did this only with find, s/./\//g,
and mkdir -p or so..

The config to apply this only for one user might work when you don't use
PAM for the users database. I do this on my hosting setup (a directory like
/etc/vmail/passwd/$domain and /etc/vmail/aliases/$domain) and in these
passwd-like files is room for extra stuff like possibly this.

You might want to read all the stuff under http://wiki2.dovecot.org/UserDatabase
and http://wiki2.dovecot.org/UserDatabase/ExtraFields

Regards,
  Andre



-- 
Andre Klärner

Telefon: 0351/79666546
Fax: 0351/79688547
Mobil:   0172/9838653

Anschrift:
Prohliser Allee 43
01239 Dresden

Diese E-Mail ist mittels S/MIME signiert worden.

Für S/MIME sind die Root-Zertifikate der CAcert.org zu installieren
(unter http://www.cacert.org/index.php?id=3 zu finden), damit mein
Zertifikat als vertrauenswürdig eingestuft wird.
CAcert.org ist eine offene Zertifizierungsstelle für SSL-Zertifikate auf
Basis eines Web-Of-Trust. Weitere Details finden Sie auf der Website. 

Wenn diese E-Mail nicht als authentifiziert angezeigt wird, überprüfen
Sie bitte doppelt die Korrektheit dieser Mail.


smime.p7s
Description: S/MIME cryptographic signature


Re: mutt on an IMAP-Server (dovecot): folder names and structure

2012-08-18 Thread Andre Klärner
Hi Richard,

On Sat, Aug 18, 2012 at 01:17:16PM +0200, Richard wrote:
> On Thu, Aug 16, 2012 at 09:56:09PM +0200, Andre Klärner wrote:
> >Btw: Does anyone have a cool setup that is less dependent on gnome? I'm
> >using awesome for a while now and want to avoid more dependancies on gnome.
> 
> maybe gnupg agent authentification to decrypt a gpg encrypted file?

Well, I am not exactly that GPG guy.. I like SMIME more. And as such I
don't have any infrastructure that supports me with GPG.

Regards, Andre

-- 
Andre Klärner

Telefon: 0351/79666546
Fax: 0351/79688547
Mobil:   0172/9838653


smime.p7s
Description: S/MIME cryptographic signature


Re: mutt on an IMAP-Server (dovecot): folder names and structure

2012-08-18 Thread Richard

On Thu, Aug 16, 2012 at 09:56:09PM +0200, Andre Klärner wrote:


isn't one of the purposes of gnome-keyring daemon to store the passwords
encrypted on disk while they are unused and unlock that keyring once the
user want's to do so?

Btw: Does anyone have a cool setup that is less dependent on gnome? I'm
using awesome for a while now and want to avoid more dependancies on gnome.


maybe gnupg agent authentification to decrypt a gpg encrypted file?

Richard

---
Name and OpenPGP keys available from pgp key servers



Re: mutt on an IMAP-Server (dovecot): folder names and structure

2012-08-18 Thread martin f krafft
also sprach Tim Gray  [2012.08.17.1541 +0200]:
> I can confirm that running dovecot with a line in the conf file like
> the one above does work.  I use the following with dovecot when I
> want/need to access my mutt maildir store with clients that can't
> read directly from the file system.
> 
> mail_location = maildir:~/mail:INBOX=~/mail/Inbox:LAYOUT=fs
> 
> To be explicitly clear, my maildir structure has IMAP folders as
> directories on the file system and not encoded in the mailbox name
> with '.' or some other character:
> 
> mail/Inbox
> mail/lists/mutt
> mail/lists/offlineimap
> etc.

Any idea how to migrate existing users, or how to enable this only
for a single user?

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
la lune, c'est comme les canards
il faut aimer caresser les chats
pour avoir envie d'y aller.
 
spamtraps: madduck.bo...@madduck.net


digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)