06-24-2008
Extract all attachments from unix mailbox file
Hi guys,
I wondering if someone already wrote a script for this, it looks easy for the first shot but I would say it's a bit advanced.
I want to extract all my email attachments from /var/mail/username (Unix mail format) + from my local mails (Maildir format) to a directory with the original filename, and rename it automatically if 2 attachments have the same name. Thunderbird has an extension for it but I would like to do it with shellscript.
If noone knows script for this (tried googling of course) then I write my own.
Pbly sed would be sufficient to process the whole mailbox file and find the attachments as records.
Thanks
Last edited by raynor; 06-24-2008 at 02:21 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Does anyone know where can I find information about UNIX mailbox files' organization? I am willing to develop a file-mailbox-compliant mail agent, but for doing so I need that information. (1 Reply)
Discussion started by: exile
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
I need to send a mail attachment from the UNIX commandline. I'm using Tru64 and the mail client thats supposed receive the attached file (an excel sheet) is Lotus Notes.
Can anybody help me out? (6 Replies)
Discussion started by: Abhishek Ghose
6 Replies
3. UNIX for Dummies Questions & Answers
Another question if you guys don't mind, if you do this:
cat * |mailx -s xxxxx <email>
it will send files to a email address displayed as sdout, is there a quick way to send files to a e-mail address but as a attachement? Say if I renamed files to .xls on unix, and sent them to a e-mail... (4 Replies)
Discussion started by: nj78
4 Replies
4. Shell Programming and Scripting
I'm new to scripting and have been tasked with creating a script that will read a mailbox, such as /var/mail/user1, scan it for new messages, then send those new messages to another file.
It also has to be looped to run almost continuously.
Any help would be greatly appreciated (1 Reply)
Discussion started by: rsw626
1 Replies
5. AIX
I'm trying to send a mailx with an attachment, really I have not do it in a long time. I forgot (3 Replies)
Discussion started by: darioa
3 Replies
6. HP-UX
Hi,
I am executing the following command in order to send a file as an attachment:
mailx -s "Subject" emailID@xyz.com < Testfile.txt
Instead of attaching the file Testfile.txt, it is writing the contents of the file in the email message body. Please advise on how I can send the file as an... (7 Replies)
Discussion started by: sangharsh
7 Replies
7. Shell Programming and Scripting
:wall:hi all,
please somebody can help me out in reading the pop3 mail attachments or saving it locally
i have a mail account where i receive .csv attachments i need to read that attachments and process them.
any sample code can be much appriciated
Removed email
:wall: (3 Replies)
Discussion started by: srikanthkadapal
3 Replies
8. Shell Programming and Scripting
Hi,
Request you to please help on my issue.
My issue is: We are able to send the log files as an email attachment. We are able to get the attachment in our inbox. But when we try to see in web mail, instead of the attachment, junk characters are displaying.
Appreciate your help.
Regards,... (10 Replies)
Discussion started by: gi.srinivas
10 Replies
9. UNIX for Dummies Questions & Answers
OS Linux....Just curious as to why this is not working...
uuencode test.txt "test.xls"|mailx -r xxx@server.com -s "validation report" emailrecipient1,emailrecipient2
Please help....Any other options do we need to use?? (3 Replies)
Discussion started by: saggiboy10
3 Replies
10. Shell Programming and Scripting
I have created a simple log file (abc.log) with Hello World, from my UNIX script. At the end of the script, I have attached the log to my email using uuencode & mailx command.
THe email was send successfully and opening on my desktop without any issues.
I have the email sync with my iPhone... (7 Replies)
Discussion started by: karumudi7
7 Replies
LEARN ABOUT CENTOS
glinvalidatesubframebuffer
GLINVALIDATESUBFRAME(3G) OpenGL Manual GLINVALIDATESUBFRAME(3G)
NAME
glInvalidateSubFramebuffer - invalidate the content of a region of some or all of a framebuffer object's attachments
C SPECIFICATION
void glInvalidateSubFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLint width,
GLint height);
PARAMETERS
target
The target to which the framebuffer is attached. target must be GL_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER, or GL_READ_FRAMEBUFFER.
numAttachments
The number of entries in the attachments array.
attachments
The address of an array identifying the attachments to be invalidated.
x
The X offset of the region to be invalidated.
y
The Y offset of the region to be invalidated.
width
The width of the region to be invalidated.
height
The height of the region to be invalidated.
DESCRIPTION
glInvalidateSubFramebuffer invalidates the content of a region of a specified set of attachments of a framebuffer. The framebuffer whose
content to invalidate is indicated by setting target to the target to which it is bound. target may be GL_FRAMEBUFFER, GL_READ_FRAMEBUFFER
or GL_DRAW_FRAMEBUFFER. GL_FRAMEBUFFER is treated as if it were GL_DRAW_FRAMEBUFFER.
A region within a subset of the framebuffer's attachments may be invalidated. This set of attachments are specified in an array whose
address is given by attachments and which contains numAttachments elements. The elements of attachments must be GL_DEPTH_ATTACHMENT,
GL_STENCIL_ATTACHMENTGL_DEPTH_STENCIL_ATTACHMENT, or GL_COLOR_ATTACHMENTi, where i is between zero and the value of
GL_MAX_FRAMEBUFFER_ATTACHMENTS minus one. Furthermore, if the default framebuffer is bound to target, then attachments may contain
GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_AUXi, GL_ACCUM, GL_COLOR, GL_DEPTH, or GL_STENCIL, identifying that specific
buffer. GL_COLOR, is treated as GL_BACK_LEFT for a double-buffered context and GL_FRONT_LEFT for a single-buffered context.
The region of the framebuffer attachments to be invalidated is specified by x, y, width and height where x and y give the offset from the
origin (with lower-left corner at (0, 0)) and width and height give the size. Any pixels lying outside of the window allocated to the
current GL context, or outside of the attachments of the currently bound framebuffer object, are ignored. After glInvalidateFramebuffer is
executed, the contents of the specified region of the specified attachments become undefined.
ERRORS
GL_INVALID_ENUM is generated if target is not one of the accepted framebuffer target tokens.
GL_INVALID_ENUM is generated if any element of attachments is not one of the accepted framebuffer attachment tokens.
GL_INVALID_OPERATION is generated if element of attachments is GL_COLOR_ATTACHMENTi where i is greater than or equal to the value of
GL_MAX_COLOR_ATTACHMENTS.
ASSOCIATED GETS
glGet() with argument GL_MAX_COLOR_ATTACHMENTS
SEE ALSO
glInvalidateTexSubImage(), glInvalidateTexImage(), glInvalidateBufferSubData(), glInvalidateBufferData(), glInvalidateFramebuffer().
COPYRIGHT
Copyright (C) 2012 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication
License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
AUTHORS
opengl.org
opengl.org 06/10/2014 GLINVALIDATESUBFRAME(3G)